Configuring file purge policies
Introduction
To prevent excessive disk consumption, you can configure purge policies that define the file retention criteria.
The purge function has the following configurable policies:
-
global policy of default parameters; applies to all File Server directories except directories in the global Ignore List and override policies
-
one or more override policies for directories that require purge settings that differ from the global settings; the override policy settings for a directory take precedence over the global settings
The settings are configurable in the NSP File Server UI, as described in How do I configure file purge policies?.
The settings are also configurable using an NSP RESTCONF API; see the Network Developer Portal for information.
Consider the following:
-
The global policy is always enabled, and cannot be disabled or deleted.
-
Files are purged first based on the retention time and then by the disk space usage threshold. If disk usage remains above the critical threshold, a specified cleanup percentage of the oldest files are purged.
Ignore Lists
In each policy type, you can specify an exclusion list of directories called an Ignore List. The directories in an Ignore List are unaffected by the settings in the associated policy.
Special global Ignore List consideration
The global Ignore List includes the following default directories, which must not be removed from the list:
If you accidentally remove a default directory from the global Ignore List, you must return the directory to the list before you complete your configuration activity.
Also, if you use the RESTCONF API to add a directory to an Ignore List, you must include all current directories in the list, and append any new directories to the list, for example:
"ignoreFileList": "/lsom/neSoftware,/lsom/neUpgrade,/nokia/nsp/cam, /nokia/nsp/faultManagement/sounds,/nokia/nsp/i18n,/nokia/nsp/mdm, /ztp,internal,new_directory_1,new_directory_2"