I'm using MariaDB slave(Read only) for my web server and other services. Which works fine for few weeks and suddenly MariaDB stops responding to pdo requests. Web servers also start running at high CPU usage(100%) at the same time. MariaDB serving other services but not the pdo. Everything starts working again if I disconnect pdo session from the MariaDB process list or restart MariaDB service. Please help me figuring out this issue.
OS: Debian 10 Buster Server version: 10.5.5-MariaDB-1:10.5.5 nginx version: nginx/1.20.2 php7.1-fpm
Restarting the web services does not help. Network connectivity is fine, there is nothing in the error logs (all nginx, php and mysql).