-
Notifications
You must be signed in to change notification settings - Fork 36
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
mcollective plugins create many http requests due to many file resources #269
Comments
…many file resources as mentioned in the linked issue choria-io#269, this PR switches the file resource in the defined resource mcollective::module_plugin from the source parameter to content. This heavily reduces the number of http calls.
Can't say I am aware thats the current best practise? it would lead to huge catalogs and big increases in memory use in the agent. |
it's always a trade off. Some people tend to sync huge binary blobs via puppet. In those cases it's probably better to stick with |
I was working on shipping plugins as part of the ruby compat gem which would long term be better, but not really worked on that for a while :( So maybe we make it a configurable behaviour? So people can pick an approach for now |
sure, I can implement a param to switch to |
…many file resources as mentioned in the linked issue choria-io#269, this PR switches the file resource in the defined resource mcollective::module_plugin from the source parameter to content. This heavily reduces the number of http calls.
(#269) mcollective plugins create many http requests due to many file resources
thank you |
…many file resources as mentioned in the linked issue choria-io#269, this PR switches the file resource in the defined resource mcollective::module_plugin from the source parameter to content. This heavily reduces the number of http calls.
…many file resources as mentioned in the linked issue choria-io#269, this PR switches the file resource in the defined resource mcollective::module_plugin from the source parameter to content. This heavily reduces the number of http calls.
(#269) mcollective plugins create many http requests due to many file resources
…many file resources as mentioned in the linked issue choria-io#269, this PR switches the file resource in the defined resource mcollective::module_plugin from the source parameter to content. This heavily reduces the number of http calls.
(#269) mcollective plugins create many http requests due to many file resources
Hi!,
this module has a defined resource which is used by all mcollective/choria plugins. The main purpose is to copy a file from the plugin module to the puppet agent. With multiple plugins installed, this leads to a huge number of file resources which gets multiplied with the number of puppet agents. This itself isn't a problem. But if the file resource uses
source
, each resource creates an additional http call which adds heavy load to the puppetservers.The current best practice for file resources is to use
content => file()
which reads a file from thefiles/
directory of a module and inlines it into the catalog. This has two advantages:The text was updated successfully, but these errors were encountered: