-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use two different database files for config and history #2496
Comments
I strongly support this. Moving to a time series database like InfluxDB could be the next big step. |
Right now, Uptime Kuma hammers my disks so badly, it literally cannot perform its own checks because it has to wait for its database to finish its operations. |
I'd go even further and use a sqlite database per monitor. |
that's obvious |
This would also be really useful for anyone who backs up their configs with |
No, for that you would use a git-ops based notification system instead. |
If this is in response to my comment, I might have been misunderstood. I meant by splitting data/history from the config, you could backup the settings of UptimeKuma without backing up any data it's pings/requests/tests aggregate by running. I.e. you could backup the settings of the app (like dark mode, light mode, which hosts to ping, etc.) without any of the data it produces. Unless I misunderstand, gatus is for an entirely different purpose than version control so I am assuming I was unclear before. |
🏷️ Feature Request Type
Other
🔖 Feature description
I would like to be able to store the configuration of Uptime Kuma and the history data in two different database files. Ideally, the history database can be thrown away at any time (while Uptime Kuma is not running) without causing any problems.
✔️ Solution
A database file in
/app/data/config/kuma.config.db
(with-shm
,-wat
etc.) containing all of Uptime Kuma’s configuration, and a database file in/app/data/history/kuma.history.db
(with-shm
,-wat
etc.) containing all of Uptime Kuma’s saved history information, the latter of which can be safely discarded of whenever Uptime Kuma is not running, and is silently recreated if missing at the next startup.❓ Alternatives
For backups of the Uptime Kuma configuration, I considered
📝 Additional Context
Currently, all information, including history, appears to be stored in the
/app/data/kuma.db
database. I would like to include the configuration information in my server’s incremental backups, so that after restoring the server from a backup, Uptime Kuma continues to work without any additional effort. The history information in the same database howeverso I end up with either large incremental backups every day or no backup of my configuration at all.
The proposed solution can be used to bind the docker container’s
/app/data/config
to some folder in my home directory, which is backed up regularly, while the docker container’s/app/data/history
would be bound to some unimportant directory like/var/cache
that is excluded from backups.The text was updated successfully, but these errors were encountered: