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
What are theses mysql requests ? #1675
Comments
SSB does not save the last update time if it's the same or set to -1, which is very odd. |
If you run |
|
Keep the stack trace enable, but also run |
With query_database : https://paste.helpch.at/rehodegaha.php |
Check out latest dev build, let me know if it is better. |
LuckPerms tracks much less data? Anyways, I will look into making it saving the block counts less frequent. |
…one, potentially decreasing the amount of updates that are sent to the DB (#1675)
Check out latest dev build, hopefully that's better. |
It sends them for different islands tho. |
I didn't see a lot of dirty chunk requests, so seems fine for me on this, maybe just cache block counts and I'll check after the number of requests to see if it's fine |
@WarnDa I added configurable block counts save threshold, where you can configure how often block counts will be saved to DB. Let me know if it's better. |
Thanks will try it this weekend. |
Of course. |
Perfect, just hope I won't get too much data to save and it won't make data loss. |
Until now it would only save block counts to the island that hit 50 block updates globally, which means it was like a round robin between islands. |
Every time that a block is placed at an empty chunk, it will update the DB. Players can also cause DB updates by spamming commands. |
Better hardware ? Already got the best one with NVME Samsung 990 pro and 13900K, but even with the best hardware if you spam it with requests it decrease his performances as the disk spend too much time on the queries and get less performances for the server. |
You have many islands, it means many requests. |
Yes there is 140 players online so many islands loaded |
You can use |
Okay it was their automatic farms in the other dimensions (melon, sugar cane, other cactus) That's why an option to save islands every X second would be better than a block thresold :/ |
You can remove the crops from having worth value or anything like that. |
Also, having a timer will not fix the issue, as you'll deal with the same issue - islands will be saved all the time because they have block changes due to your farms all the time. |
Yes but they would be saved only once every 5mn, not every thresold. I tried to remove all useless farms blocks, will try |
Edit : there is still an issue : |
Try replicating the issue yourself. |
Will check with a dev to change the cache to add a customisable delay instead of a threshold, that would be large better and avoid island being in cache for 10hr without change or islands to be pushed every 10s if it's too active... |
There is a reason why it's always the same single island.. or you could add a delay and islands can't being push to database unless a certain amount of time :/ |
Let me know how to replicate the issue myself. |
I managed to replicate the issue, good job. |
Grown structures will not save block counts anymore, only if the threshold was reached. Let me know if it is still an issue. |
Seems fixed, no spamming today, if it happens again I'll open another issue :) |
Minecraft's Version
1.19.3 pufferfish
Plugin's Version
2023.1
Describe the bug
I checked mysql logs and saw that you send a lot of query about each island members, it makes 1 request per player online and per second, I don't think it's normal, and maybe it could be reduced
To Reproduce
enable log on mariadb
Additional Information
No response
The text was updated successfully, but these errors were encountered: