-
-
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
On Page reload monitors do not load #3494
Comments
How many monitors do you have? (might this be fixed by one of the performance fixes which have gone into |
eMMC is faster than a harddrive and faster than an SD card. |
You are not comparing in the right direction: => you are limited to SC-Card IO speeds If you like, you could help us in evaluating if the suggestions in #3286 or the performance fixes which have gone into Note that this might also be a symptom of #3463 |
It should be noted that by viewing |
So likely this is one of the symptoms of #3463? |
One thing that does not quite fit into the puzzle (as far as I understand it), though:
=> I think after #3463 there might be another problem (I hope not) which will then become evident |
One thing I forgot to say as well is that docker logs while it doesn't contain any useful information- it does continue the monitors @CommanderStorm Did you catch the first thing I said with the |
What do you mean? I might not have. The Running Hypothesis from Nelson seems logical. |
On page reload I get in the console log when monitors do not load. To add to what I said originally the restarting the docker container will work no matter what even if on a new computer with no web page open or with the page open and then restarting
|
That is why I said it *might be (I find this unlikely) a different issue. A better solution than accepting the current behaviour could be:
|
@CommanderStorm @louislam I am facing a similar issue on my local pc. i pull latest code of git & try to run with I did a load test with 410 URL monitoring including 40 URLs that are down. I debug code & I found that. uptime-kuma-serever.js
monitor.toJSON() is taking time around 3 minute. frontend taking time around 20~30 sec after emit monitorList |
I don't think the |
@chakflying i just commented query still it’s slow improve performance 2x. Current: 1 sec it proceed 4 to 5 urls I checked with putting log |
Yes, a bunch of db-queries are done in that. If by |
@CommanderStorm Which code we have to move in promise.all? After comment means not commit. Removed code of query & asign blank array. i am ruby on rails developer. So i heard that it call N+ 1 query problem. we need to take all data in single query. |
I would try moving the promises from this loop behind a uptime-kuma/server/uptime-kuma-server.js Lines 222 to 224 in bab771d
All data in a single query might not be possible. |
@CommanderStorm should we register new issue? |
@CommanderStorm total time i have changed logic like below. it reduces time by 4.86x.
uptime-kuma/server/server.js
I am trying to debug more for |
tens of seconds is still unacceptably slow, but a very nice improvement for little effort 👍🏻 |
ok, i will do pr ASAP for code review. I already optimized the query also. so it will reduce to 10 to 11 sec. but I need to test more because it will depend on network speed. |
I have generated pr. performance improved 10.4x. I am ready to change if you guys found wrong in my pr. still, I suggest improving add/update/delete monitor. Currently, we have to wait until all monitors are reloaded after crud. I am not debugged yet. but I will definitely spend time on it. hope to find something. monitor url count: 415 after changes database: aws rds marinadb db.t3.micro(memory: 1gb, cpu: 2vcpu) with docker run on mac: with ESC Farget(Linux/ARM64): |
🛡️ Security Policy
Description
I'm using the docker image on a Nvidia TX2. Ubuntu 22.04. ARM64 with eMMC for storage
It should be noted I have 400+ monitors with groups. Storing data for 32 days
On page reload I get in the console log
nothing useful in docker logs
On
docker restart <container id>
uptime kuma will load monitors👟 Reproduction steps
1.) Use docker image,
2.) load monitors
3.) Reload page
4.) Find monitors do not load and console log message will appear every minute
👀 Expected behavior
Monitors should load
😓 Actual Behavior
They do not
🐻 Uptime-Kuma Version
1.22.1
💻 Operating System and Arch
Ubuntu 22.04
🌐 Browser
Chrome Version 115.0.5790.110 (Official Build) (64-bit)
🐋 Docker Version
Version: 20.10.21
🟩 NodeJS Version
No response
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: