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

how to choose db for monitor 2000+ or more #5412

Open
2 tasks done
oldthreefeng opened this issue Dec 5, 2024 · 2 comments
Open
2 tasks done

how to choose db for monitor 2000+ or more #5412

oldthreefeng opened this issue Dec 5, 2024 · 2 comments
Labels

Comments

@oldthreefeng
Copy link

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I am currently managing a large number of monitors, which could potentially reach 2000 or more. I am seeking advice on which database would be best suited to handle this scale efficiently.

📝 Error Message(s) or Log

no

🐻 Uptime-Kuma Version

1.22.1

💻 Operating System and Arch

centos 7.9

🌐 Browser

chrome

🖥️ Deployment Environment

  • Runtime: k8s
  • Database: sqlite
  • Filesystem used to store the database on: ssd
  • number of monitors: 700+

very slow.

@CommanderStorm
Copy link
Collaborator

CommanderStorm commented Dec 6, 2024

use mariadb and use https://github.com/louislam/uptime-kuma/releases/tag/2.0.0-beta.0
We have not benchmarked the system this far, but would be happy to hear how well it holds up.
The performance improvments in v2.0 should make this possible.

@KLVN
Copy link

KLVN commented Dec 7, 2024

We've recently migrated to 2.0.0-beta.0 and an external MariaDB. Even though it's the first beta we're very happy with it. 1.x was struggling with 40+ monitor and was veeeery slow. The SQLite database got corrupted twice so we had to restore from backups.

The wiki isn't updated yet so we had to look at the code to see how it should be configured.

db-config.json:

{
  "type": "mariadb",
  "hostname": "XXX",
  "port": "3306",
  "username": "XXX",
  "password": "XXX",
  "dbName": "XXX"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants