Greetings.
Having mariadb105-server-10.5.13 running on FreeBSD 13 with ZFS. (A physical, dedicated server: CPU: AMD Ryzen 5 3600 6-Core 3593.32-MHz CPU and 64 GB RAM)
My WordPress website sometimes getting random-visitors attacks/DDoS (hundreds of http GET requests instantly towards randomly,
but valid URLs/posts on my website) and MariaDB fills all my CPU cores up to 100% during so.
My server has 64 GB of RAM. And whole sql dump of my website is around 220 MBs.
So it seems my DB is not really fully loaded into RAM and it forces CPU too much on such attacks (reads)?
Any idea on how to make sure MariaDB loads all my tables into RAM and it uses RAM instead of disk? (Got fast NVMe disks anyway)
In such moments, I get the IP from nginx logs and then blacklist the IP with PF, then the server gets "relaxed" back again.
But I'd love to learn the actual "solution" to this case.
Thanks in advance.
Having mariadb105-server-10.5.13 running on FreeBSD 13 with ZFS. (A physical, dedicated server: CPU: AMD Ryzen 5 3600 6-Core 3593.32-MHz CPU and 64 GB RAM)
My WordPress website sometimes getting random-visitors attacks/DDoS (hundreds of http GET requests instantly towards randomly,
but valid URLs/posts on my website) and MariaDB fills all my CPU cores up to 100% during so.
My server has 64 GB of RAM. And whole sql dump of my website is around 220 MBs.
So it seems my DB is not really fully loaded into RAM and it forces CPU too much on such attacks (reads)?
Any idea on how to make sure MariaDB loads all my tables into RAM and it uses RAM instead of disk? (Got fast NVMe disks anyway)
In such moments, I get the IP from nginx logs and then blacklist the IP with PF, then the server gets "relaxed" back again.
But I'd love to learn the actual "solution" to this case.
Thanks in advance.