Temporary data can expire and should eventually cleaned from the database:
- Sessions
- Registration codes
- Etc
The cleaner task typically runs periodically. It should only run on the cluster DB leader, it's pointless to run it on several nodes. A proper subsystem is needed for detecting leader change, and reacting to that by starting/stopping maintenance tasks.
Temporary data can expire and should eventually cleaned from the database:
The cleaner task typically runs periodically. It should only run on the cluster DB leader, it's pointless to run it on several nodes. A proper subsystem is needed for detecting leader change, and reacting to that by starting/stopping maintenance tasks.