2
  file { '/opt/graphite/storage':
    ensure  => directory,
    recurse => true,
    owner   => 'www-data',
    group   => 'www-data',
  }

I have about 50G files in '/opt/graphite/storage' directory.

And it took about 300 seconds to finish this puppet code.

Is there a way I can speed up it?

checksum => none didn't fix my problem...

Andreas
  • 5,393
  • 9
  • 44
  • 53
user1859451
  • 1,215
  • 2
  • 11
  • 11
  • 1
    I think it simply executes: chown www-data:www-data -R /opt/graphite/storage , how much time does it take on your 50G directory? – LiorH May 21 '13 at 10:32
  • take a look at [this suggested solution](http://stackoverflow.com/a/16049356/547020). – Eliran Malka Sep 05 '16 at 13:09

1 Answers1

2

Pretty sure there's no way around this. Bottom line is puppet sucks at recursively setting permissions/attributes on a large directory tree.

You might be better off setting these permissions in a cronjob, or if you're looking for immediate updates, create a separate exec to take care of this.

Marvin Pinto
  • 30,138
  • 7
  • 37
  • 54