Configuring garbage collection
By default, Code Manager retains environment deployments in memory for one hour. You can adjust this by configuring garbage collection.
To configure the frequency of Code Manager garbage collection,
specify the deploy_ttl
parameter in Hiera. This parameter accepts a string that includes one of the following suffixes:
d
: Daysh
: Hoursm
: Minutess
: Secondsms
: Milliseconds
For example, deploy_ttl: '30d'
configures Code Manager to keep deployments in memory for 30 days.
Similarly, deploy_ttl: '48h'
retains deployments in memory for 48
hours.
The default setting is 1h
(one hour).
If the value of
deploy-ttl
is less than the combined
values of timeouts_fetch
, timeouts_sync
, and
timeouts_deploy
, then all completed deployments are retained
indefinitely. This could significantly slow Code Manager's
performance over time. Refer to Code Manager parameters for information
about the timeouts_*
parameters.