-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Postgres support #959
Comments
This comment was marked as outdated.
This comment was marked as outdated.
I have made branch with mysql support in my fork. See my comment in #953. |
This comment was marked as spam.
This comment was marked as spam.
Postgres should be possible in my fork, you can try it out. Just edit |
There are people who would love to use |
The usecase here is to allow multiple sources to write/update uptime-kuma concurrently. I imagine the reason why a lot of interest in Postgres exists is to allow concurrent writes and people are ready to employ Postgres instead of trying to scale SQLite. Is that why you too added Postgres support? I believe there's a way where we can just continue to use the current SQLite integration and also allow concurrent writes. Here's how: There is a copy of SQLite that has fantastic concurrent write support. This is a great article by itself but feel free to jump to the last paragraph https://blog.expensify.com/2018/01/08/scaling-sqlite-to-4m-qps-on-a-single-server/amp/
Again - Thank You for your contributions and time! |
If by concurrent writes you mean running multiple instances of kuma on a single database, then I think that will break a lot of things in kuma. I am afraid kuma will not opt to use this copy (fork) of SQLite by default, as it seems to solve only one peculiar requirment, which might collide with another requirment of another user. I personally am wary of using smaller forks of software, as many times they lack support and maintenance of the original. Why do you need concurrent writes to kuma database? What is your "business case"? |
Yesterday I started to consolidate my PostgreSQL Servers into a hosted Database Service to remove the burden of managing multiple server instances. |
Any hope of this, or MySQL, being merged in any time soon? I'm running Uptime Kuma locally with a database size of approx. 700MB (around 50 separate checks so far), and I'm finding the performance worsens over time at about the same rate I experienced with Grafana before I moved that service to using a separate database. I'd really like to move Uptime Kuma to using my Postgres or MySQL/MariaDB servers, for better interactive performance. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
@trogper you are correct, but getting off of SQLite is at least a step toward that. I'm aware that there would have to be other serious architectural changes to the application to support multiple instances of the application running concurrently. |
This comment was marked as resolved.
This comment was marked as resolved.
Edit (@CommanderStorm): Updated this comment to reflect the current release planning @Milo123459 if you mean Postgres support, people have already done it, but it is not merged. You can subscribe to #3748 or to this issue to get notified once this is the case |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
Not really a database issue, more a "how do we use the db"- issue. If you are running into problems with 160 monitors, something fishy is going on. Normally, users report problems after 500-800 monitors. |
🏷️ Feature Request Type
Other
🔖 Feature description
Allow users to use an external Postgres database to store all configuration/info for Uptime Kuma
✔️ Solution
Add support for Postgred databases
❓ Alternatives
Add support for MySQL though personally, I think Postgres is better.
📝 Additional Context
I think currently, data is store with sqlite? I would rather store my data on my existing database server because I have backup routines, etc, which will protect the data. I like to keep the dat a spearate from the app so I can just reinstall the app, point it at the correct database
The text was updated successfully, but these errors were encountered: