Replacing DiscordSRV with ELK and a py-cord bot
Let's be real: DiscordSRV is one of the most popular Java Minecraft Server Plugin (Top 25 - according to bStats). It creates a great bridge between Discord and Minecraft, not only for Chat, but even allows you to manage your Minecraft server from a Discord channel! (or rather 😱)
If you are running a small server, those are all great features, but for our use-case, and also since we switched to Folia, we would like to:
- Keep our attack surface small: with other Plugins causing wide-range hostile server takeovers, how often does DiscordSRV get audited?
- Improve performance: with nearly 10MB in size, DiscordSRV is not only the largest plugin we had on our server, but also it requires quite some resources to maintain a good chat bridge. If Discord had API failures, it was not seldom for our - otherwise healthy - server to crash.
With the help of ELK
So why bother with ELK in the first place?
[18:30:53] [Region Scheduler Thread #0/INFO]: Server Health Report- Online Players: 75- Total regions: 54- Utilisation: 347.8% / 600.0%- Load rate: 226.20, Gen rate: 52.27- Lowest Region TPS: 11.66- Median Region TPS: 20.00- Highest Region TPS: 20.00Highest 3 utilisation regions- Region around block [w:'world',coords-x,coords-y,coords-z]:98.9% util at 84.53 MSPT at 11.66 TPSChunks: 634 Players: 1 Entities: 9,457- Region around block [w:'world',]:27.4% util at 13.73 MSPT at 20.00 TPSChunks: 3,763 Players: 22 Entities: 3,513- Region around block [w:'world',]:18.1% util at 9.06 MSPT at 20.00 TPSChunks: 776 Players: 3 Entities: 1,514
But given these are regions, it will not be easy to right away find the chunk that is causing lag, with ELK it becomes very easy to show me players that have logged in within the area in the past using simple >, < or = operators:
However there is much more that we do with logs today, as well as even more that can still be done. I hope this was an interesting read and inspires you to do more with your server outside of what plugins can offer :)
Shameless plug: if you are searching for a Semi-Anarchy Survival Server, with NO Hacking allowed, no /home, /tpa or similar, join us on Simply Vanilla!
Comments
Post a Comment