User story #2978
closedHandle automatic reports cleaning properties
Description
In #2973 we add an automatic report cleaner in Rudder.
To make it work we set up some new properties in rudder configuration file (/opt/rudder/etc/rudder-webapp.conf).
We should add a migration script that add the new properties and set them to the default value.
Here is the extract of the property file concerning the automatic process
########################### # Automatic reports cleaning ########################################################### ########################### # # Automatic reports cleaning # This allows you to schedule automatically clean reports (archive or delete) # # # TTL are the maximum age (in days) of reports before archiving (archive.TTL) # or deleting (delete.TTL) # # A value equal to 0 or lower means disable automatic archiving/deleting. # # If the archive TTL is greater than the delete TTL then archiving will be disabled # as there will be no reports to archive (they would be deleted first). # # Defaults: archive after 30 days, delete after 90 days. # rudder.batch.reportscleaner.archive.TTL=30 rudder.batch.reportscleaner.delete.TTL=90 # # Schedule option for automatic cleaning # Automatic cleaning can be scheduled: # - every hour at the minute past the hour of your choice # - every day at the time of your choice # - every week on the day at the time of your choice # # Default frequency: daily rudder.batch.reportscleaner.frequency=daily # Defaults: minute=0, hour=0, day=Sunday # Which minute the cleaner should be run on. # Values : [0-59] # Default : 0 rudder.batch.databasecleaner.runtime.minute=0 # Which hour the cleaner should be run on. # Values : [0-23] # Default : 0 rudder.batch.databasecleaner.runtime.hour=0 # Which day the cleaner should be run on. # Values : monday | tuesday | wednesday | thursday | friday | saturday | sunday # Default : sunday rudder.batch.databasecleaner.runtime.day=sunday
We should at least add the property and maybe some comments :
########################### # Automatic reports cleaning ########################################################### ########################### # Defaults: archive after 30 days, delete after 90 days. rudder.batch.reportscleaner.archive.TTL=30 rudder.batch.reportscleaner.delete.TTL=90 # Default frequency: daily rudder.batch.reportscleaner.frequency=daily # Values : [0-59] # Default : 0 rudder.batch.databasecleaner.runtime.minute=0 # Values : [0-23] # Default : 0 rudder.batch.databasecleaner.runtime.hour=0 # Values : monday | tuesday | wednesday | thursday | friday | saturday | sunday # Default : sunday rudder.batch.databasecleaner.runtime.day=sunday
Updated by Vincent MEMBRÉ almost 12 years ago
This is not to be pushed until #2973 has not been accepted.
I'll update that ticket when it will be the case.
Updated by Nicolas PERRON almost 12 years ago
- Target version changed from 2.4.0~rc1 to 2.5.0~beta1
The new feature about automation of DB management tasks will not be included in Rudder 2.4. Then, postponed to Rudder 2.5
Updated by Vincent MEMBRÉ over 11 years ago
- Target version deleted (
2.5.0~beta1) - Parent task set to #2997
This issue is the integration part of #2997.
Updated by François ARMAND over 11 years ago
- Tracker changed from Bug to Enhancement
Updated by François ARMAND over 11 years ago
- Tracker changed from Enhancement to 6
Updated by Jonathan CLARKE over 11 years ago
- Status changed from New to 8
- Assignee changed from Nicolas PERRON to Matthieu CERDA
This can be done by checking for the properties in rudder-upgrade.
Updated by Matthieu CERDA over 11 years ago
- Status changed from 8 to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- % Done changed from 0 to 100
Ready to review here: https://github.com/Normation/rudder-packages/pull/6
Updated by Jonathan CLARKE over 11 years ago
- Status changed from Pending technical review to 12
Matthieu CERDA wrote:
Ready to review here: https://github.com/Normation/rudder-packages/pull/6
Looks fine to me.
Updated by Matthieu CERDA over 11 years ago
- Status changed from 12 to Pending release
Applied in changeset commit:3e5b87bbf46993034d646ebb96d0b9390394c40e.
Updated by Matthieu CERDA over 11 years ago
- Status changed from Pending release to Released
Updated by Nicolas PERRON over 11 years ago
- Project changed from Rudder to 34
- Category deleted (
11) - Parent task deleted (
#2997)
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging
Updated by Benoît PECCATTE over 9 years ago
- Tracker changed from 6 to User story