Delete Old Transaction Logs Utility

The Delete Old Transaction Logs utility is a cron job that runs the delete_old_transaction_log.py script with specified options on a regular schedule. There is one version of this job created for each MATRIXX Engine. Transaction Log Deletion Properties describes the available configuration properties.

Table 1. Transaction Log Deletion Properties
Property Description
utilities.delete-old-transaction-logs.enabled If set to true, and the engine.enabled configuration property is also set to true, the job is created. The default value is true.
utilities.delete-old-transaction-logs.schedule The cron expression used to trigger the utility. The default value is the following string:
5 * * * *
That string causes the script to run 5 minutes past the hour, every hour.
utilities.delete-old-transaction-logs.args The arguments passed to the delete_old_transaction_log.py script when executed on a publishing pod. The default value is the argument --min_free=10%.
utilities.delete-old-transaction-logs.maxAttempts The maximum number of times the utility attempts to find an active publishing pod on which to run the script before giving up. The default value is 5.
utilities.delete-old-transaction-logs.retryInterval The number of seconds between each try to find an active publishing pod on which to run the script. The default value is 15.
utilities.delete-old-transaction-logs.image.nameOverride The name to use for the image if different from the released name.
utilities.delete-old-transaction-logs.image.versionOverride The version to use for the image if different from the released version.
utilities.delete-old-transaction-logs.serviceAccount.create When set to true, the ServiceAccount, role, and role bindings are created. The default value is true.
utilities.delete-old-transaction-logs.serviceAccount.name The name of the ServiceAccount to run the cron job. If utilities.delete-old-transaction-logs.serviceaccount.create is set to true, the ServiceAccount is created. Otherwise, set this property to an existing ServiceAccount with the appropriate permissions for searching and executing on pods. The default value is delete-old-transaction-logs-release_name.
Important: You must first grant permissions for the ServiceAccount. See the Red Hat OpenShift documentation for information about setting security context constraints.
utilities.delete-old-transaction-logs.serviceAccount.annotations Any annotations to add to the ServiceAccount. For more information, see the discussion about annotations in Kubernetes documentation.
utilities.delete-old-transaction-logs.podSecurityContext A Kubernetes security context for the pod. For more information, see the discussion about pod security contexts in Kubernetes documentation.
utilities.delete-old-transaction-logs.securityContext A Kubernetes security context for the main container in the pod. For more information, see the discussion about security contexts in Kubernetes documentation.
utilities.delete-old-transaction-logs.resources A Kubernetes resource defined for the main container in the pod. For more information, see the discussion about resources in Kubernetes documentation.
tilities.delete-old-transaction-logs.nodeSelector A Kubernetes node selector defined for the pod. For more information, see the discussion about node selector in Kubernetes documentation.
utilities.delete-old-transaction-logs.tolerations Kubernetes tolerations assigned to the pod. For more information, see the discussion about tolerations in Kubernetes documentation.
utilities.delete-old-transaction-logs.affinity Kubernetes affinity rules assigned to the pod. For more information, see the discussion about affinity rules in Kubernetes documentation.