System tuning
We offer you several steps to achieve maximum performance of the system.Â
If your network is small and your server has no problem with high CPU load - you can skip this page
Hardware
The first and main recommendation is to keep Grusher and operating system up-to-date. Today not possible to use "install and forget" principle. Updates are released help to improve performance and resolve issues.
Second recommendation for highly loaded systems is to separate the web server (Application) and database (DB) on different servers or virtual machines. This will help balance processor time and memory for each machine, and there will be no competition for a shared pool of capacity.
Software
MariaDB tuning
At the time of writing this article latest version was 11.3.2.
MariaDB Server 11.0 brings many significant improvements to the query optimizer!Â
Try it out and please let us know of your experience. We aim to incorporate all the feedback we receive.Â
Read this articlesÂ
- https://mariadb.com/kb/en/optimization-and-tuning/Â
- https://www.cloudways.com/blog/mariadb-performance-tuning/Â
- https://galeracluster.com/
- https://www.server-world.info/en/note?os=Ubuntu_22.04&p=mariadb&f=5
Â
Ngnix
If you have a lot of active system users (more than 10) or you actively use the Grusher API, you need to configure php-fpm.
Otherwise, requests submitted to the web will take a long time to be processed.
Â
Grusher
- Disable poller logging. This option disable writing to disk poller logs (up to ~ -15% for CPU load in some case)
- Switch session to "cookie"
- https://grusher.gviabcua.in.ua/link/63#bkmrk-typical-file-configÂ
-
SESSION_DRIVER = 'cookie'
- https://grusher.gviabcua.in.ua/link/63#bkmrk-typical-file-configÂ
- Don't use too many pollers. Everything should be in moderation. Do experiment with different numbers of pollers and determine the most optimal count.
- Don't run heavy tasks too often via scheduler