HomePhorge

Run the agent in a child process during catalog application
6812ee9fc51fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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.

Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>

Details

Provenance
Brice Figureau <brice-puppet@daysofwonder.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUf5d8f30679ad: Refactor: configurer now returns report.exit_status
Branches
Unknown
Tags
Unknown

Event Timeline

Brice Figureau <brice-puppet@daysofwonder.com> committed rPU6812ee9fc51f: Run the agent in a child process during catalog application (authored by Brice Figureau <brice-puppet@daysofwonder.com>).Jan 21 2012, 11:35 PM