Issue #11044 has been updated by Josh Cooper.

Status changed from Needs Decision to Merged - Pending Release
Assignee deleted (Brice Figureau)
Target version changed from 3.x to 3.0.0

Nevermind, this was merged in 3.0rc1 in 
<https://github.com/puppetlabs/puppet/commit/fa4a1d9>

<pre>
    Run the agent in a child process during catalog application
    
    The idea is that during catalog application the puppet heap
    might grow quite large. And unfortunately in MRI the heap never
    decreases, so you're stuck with a large process doing nothing and
    not using the memory it allocated until the next run.
    
    The solution is to fork and do the puppet run in a child process.
    At the end of the catalog run, the process exits freeing memory to
    the OS until the next run.

    This is not supported on Windows
</pre>


----------------------------------------
Feature #11044: Puppet agent should fork when applying the catalog
https://projects.puppetlabs.com/issues/11044#change-69304

Author: Brice Figureau
Status: Merged - Pending Release
Priority: Normal
Assignee: 
Category: agent
Target version: 3.0.0
Affected Puppet version: 
Keywords: 
Branch: https://github.com/masterzen/puppet/tree/tickets/2.7.x/11044


The current best practice among Puppet users is to run the puppet agent out of 
cron with --onetime. The rationale is that the puppet agent is a memory hog 
during a run, but due to the way the ruby interpreter works this memory can 
never be returned to the OS between runs. Running on cron makes sure puppet 
doesn't hold this memory for more than the run.

A simple solution to this issue is to fork into a child process and do the 
catalog run. This process would exit at the end of the catalog execution, thus 
freeing the memory used during the run.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to