-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Any specific reason why uptime-kuma does not support NFS file systems #2668
Comments
also is there any plans to have high availability as a possibility for uptime-kuma. currently, with the single container and built-in database, it does not seem possible for me to run multiple instances with the same data. |
I have uptime kuma running on my clusters with The HA would be awesome, to be precise I ended up on this issue while I was looking for an existing issue about supporting psql or something as database instead of using sqlite. |
Ahhh i I am on another postgesql thread but it's a bigger lift, honestly I
was tempted to do some of the mysql with knex at least to get off of
sqlite.
…On Tue, Feb 28, 2023, 4:55 PM Balazs Nadasdi ***@***.***> wrote:
I have uptime kuma running on my clusters with
nfs-subdir-external-provisioner, it's running in that way ever since I
first deployed. The oldest timestamp on the filesystem is 2021-10-12
17:11:48.039084132 +0000.
The HA would be awesome, to be precise I ended up on this issue while I
was looking for an existing issue about supporting psql or something as
database instead of using sqlite.
—
Reply to this email directly, view it on GitHub
<#2668 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADFF4FTN4YCCL7CX2MK4PWLWZZX5JANCNFSM6AAAAAAUFQKP7A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
“due to SQLite”. Its FAQ warns:
The documentation elaborates:
It would be helpful if Uptime Kuma was clearer about its actual requirements instead of vaguely saying that specific filesystems aren’t “supported”. For example, the documention could say something like:
|
While testing NFS on K8s, I ran into the typical chmod issue due to the fact that the container cannot change the permissions of the NFS share. This is usually solved by using a sub-folder so I tried using Instead, I could get the container started using:
|
Please refer to this article why nfs might corrupt your data: https://www.sqlite.org/howtocorrupt.html However: Running a database on a distributed storage backend has significant performance impacts that could make this app unusable. |
@Maven35 @chevdor Please note that the unofficial helm chart is maintained by the Dennis at https://github.com/dirsigler/uptime-kuma-helm On the topic of the external DB: |
Given the scope and core-engineering of this project (it is not designed to scale, it is not a distributed system) I would be very surprised if the wonderful people at the CNCF would even consider this project. If using CNCF Tooling: |
I come out of a lab where I set up uptime kuma in a highly available environment with auto scaling (with min and max a 1) and docker volume on the AWS EFS (nfs v4) I don't have encountered problems. |
How did you setup high availability when dealing with the sqlite database?
…On Sat, Jun 17, 2023, 1:09 PM Mathieu BEDOS ***@***.***> wrote:
I come out of a lab where I set up uptime kuma in a highly available
environment with auto scaling (with min and max a 1) and docker volume on
the AWS EFS (nfs v4) I don't have encountered problems.
—
Reply to this email directly, view it on GitHub
<#2668 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADFF4FVUIRMFA3PYGLY4C2TXLXQENANCNFSM6AAAAAAUFQKP7A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Maven35 Reasoning:
The general distributed-system drawbacks/advantages don't apply.
|
This is literally the solution, nice one thank you! |
We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days. |
Closing since louislam/uptime-kuma-wiki#68 has been merged, which should solve this. |
I think the blank statement related to NFS is too broad. Indeed, SQLite + NFS 3 is asking for troubles but there is no reason for NFS4+ to be problematic. I am running using NFS4.1 for a while without an issue (I know it does not mean it will never happen but still...). Did anyone ever run into issues using Sqlite over NFS 4+ ? |
While nfs4 has resolved the file locking issue accroding to the mysql docs, I think sharing data directories is still a footgun, the support effort ("help, my db suddenly got corrupted") I would think is substantial. Given how much time tackling the current issue load takes, I am not certain that that would be doable.
|
Considering how simple it is to backup sqlite, I will probably take the risk and make backups often, then see when it breaks, if that ever happens. The benefit of the solution is worth the effort. I also tested in another context and sqlite is much faster than postgres for instance. |
Such benchmarking is highly application-dependent and cannot be generalised to anything. For example:
|
@chevdor I'm using the image louislam/uptime-kuma:1. |
The environment variables can be found here. I don't get what you mean by
docker has the |
🛡️ Security Policy
📝 Describe your problem
im running uptime-kuma in a kubernetes environment, and im wondering what are specific limitations from running with NFS storage. also i've noticed it contains an embedded SQLite database, is there any discussion or thoughts on using an external database or adding that support? also are there any plans to have dedicated kubernetes helm charts it would be cool to have this product on the CNCF since its pretty awesome.
🐻 Uptime-Kuma Version
1.19.6
💻 Operating System and Arch
debian
🌐 Browser
chrome
🐋 Docker Version
kubernetes 1.21
🟩 NodeJS Version
No response
The text was updated successfully, but these errors were encountered: