Management Center feature allow Administrators to keep a previous copies of policies (e.g. CPL, VPM, Universal VPM etc) and scripts after saving iteration of policy or script. The default are set 0 (unlimited) and can be changed as needed.
There are two areas "Maximum number of policy revisions to store" where it can be set , they are :
You can not use CLI to configure any of the settings above.
Management Center (MC) "Maximum number of policy revisions to store" was left to default or set with very high numbers
Depends on the size of policy and how often policy change, leaving the settings to default and/or keeping hundreds of policy versions can be problematic with subtle symptoms, such as:
- Disk usage nearing 85%, close to getting full or full. Any of these condition could also cause inability to create MC backups.
- Slow page rendering when navigating, editing, saving policies.
- Slow repository index rebuild, and may cause UI access to fail.
- In rare cases viewing/searching, loading or editing a very large policy that has hundreds of versions will cause a high disk paging that could also lead to out of memory java heap space crashes.
- For deployment that has failover, we also seen that after fully-synced-failover got disabled, the secondary MC experienced a very slow ( i.e. > 30 minutes) repository index rebuild leading to MC UI not accessible (i.e. serving 404 HTTP response).
1. Set the global settings as 100 (or lower), save and activate. Set a number globally (e.g. 100) even if you choose to configure the number per policy or not.
Note: Setting the number globally or per policy does NOT purge the older version on its own. Purging old policy versions happens every time a policy is saved.
2. Edit and save the policy to start purging the old versions . Changing a reference device and save or; adding / removing unused shared object from policy and save or; launching / saving VPM should trigger the actual purge of older versions for said policy.
Note: Dependent on policy size and versions to purge, the initial purge may take a while and could cause browser connection to timeout (sample screenshot below) but the purge should continue at the background. Clicking "save" whenever error appears or simply waiting for several minutes until MC becomes responsive again.
3. Rebuild repository index by running "service-action rebuild-repository-index" in MC CLI/SSH privilege/enable mode.
Note: depends on the policy got purge in previous steps, rebuilding the repository index should NOT take more than 30 minutes.
Future MC releases may change the Global default of "Maximum number of policy revisions to store" to 100 (TBD). This is planned to only affect new deployments.
The current behavior of MC for "Maximum number of policy/script revisions to store" (along with other settings) is to preserve its setting when doing upgrades, backup/ restore and replicated when using failover. No plan to change this current behavior in future releases.