Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance #79

Open
gbloquel opened this issue Oct 3, 2016 · 4 comments
Open

Performance #79

gbloquel opened this issue Oct 3, 2016 · 4 comments

Comments

@gbloquel
Copy link
Contributor

gbloquel commented Oct 3, 2016

At each call of puppet master, the processing of puppet catalog takes 90% CPU for 10 min.

After investigation, it seems that the recurse parameter causes problem.

  # NOTE: $nexus_work_dir in later releases was moved to a directory not
  # under the application.  This is why we do not make recursing optional
  # for this resource but do for $nexus_work_dir.
  file{ $nexus_home_real:
    ensure                  => directory,
    owner                   => $nexus_user,
    group                   => $nexus_group,
    recurse                 => true,
    selinux_ignore_defaults => $nexus_selinux_ignore_defaults,
    require                 => Exec[ 'nexus-untar']
}

My platform is centos 7.2. My nexus data folder has nearly 70000 files.

How to fix this problem ?
Does this step is mandatory ?

@kenbreeman
Copy link
Contributor

recurse in puppet is very slow and implemented poorly. We should definitely remove it.

I think the intention was to only have it run recursively on the first run to ensure permissions are set correctly on all sub-directories, but since we're manually creating each sub-directory it's no longer needed.

@tmclaugh
Copy link
Contributor

tmclaugh commented Oct 3, 2016

@gbloquel
Copy link
Contributor Author

gbloquel commented Oct 3, 2016

Any clarification I use Nexus 3 and as mentioned into the readme the parameter nexus_work_dir_manage must be set to false.
In this case, no way to desactivate the recursive into the data folder.

To conclude this defect affects the usage of nexus 3

@nomoresecrets
Copy link

Had the same problem. After setting "nexus_work_recurse => false" everything is okay now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants