Skip to content
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

system-status: log DB size #24

Closed
wants to merge 2 commits into from
Closed

Conversation

matttbe
Copy link
Member

@matttbe matttbe commented Jun 11, 2024

The DB might get info about subtests when available. It is then important to monitor the DB size, to quickly take actions if it grows too fast.

Here, the system-status script will check the size once per day. The size of the last 40 days are written in the JSON, that could be displayed in the status page later.

The user and password for the DB are no longer needed.

Fixes: 15d89a7 ("contest: backend: switch queries to PostgreSQL")
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
The DB might get info about subtests when available. It is then
important to monitor the DB size, to quickly take actions if it grows
too fast.

Here, the system-status script will check the size once per day. The
size of the last 40 days are written in the JSON, that could be
displayed in the status page later.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
@matttbe matttbe requested a review from kuba-moo June 11, 2024 21:15
@kuba-moo kuba-moo closed this Jun 11, 2024
@kuba-moo
Copy link
Contributor

Merged and amended with fixes, thanks!

@matttbe matttbe deleted the monitor-size branch June 12, 2024 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants