I have been wondering this for long time
let's say I run a server where I hosted 2 PHP sites , they are both heavy on database query
server is multi-core , let's say 4 core 8 thread with bunch of RAM spare
frequently, specially during busy hour , I have been observing that in htop
or monitor tools the database process mariadb
was running on high CPU , while overall server load is still low , LA is usually less than 3 and like half of CPU bar is not raise as high as other half do, but both PHP site have been slowed down (like average TTFB jump from 0.x second to 1.x even 2.x seconds) , my guess is database , as both of them are competing for queries
so there comes the wondering , since it is possible to start up multiple database instance or even different database either directly install binary files or indirect means like Docker or Podman.
so I wonder , does it bring any benefit or speed up the query and also site speed ?
like 1 site ties to MariaDB , 1 site ties to MySQL
so they don't compete the query on same DB
I know it might be dumb question , as I think modern software like database should have full multi-core and multi-process support , but just can't stop wondering