More Than 600000 Querys per day from one Frontend

Hi,

I am currently working on a clustered Kaltura 12.2.0 Community Edition.

Since round about one week one of our Databases-Servers (Master) make some Problems.
The Server refusing connection to the Port.
After restarting mariadb the Problem seems to disappear but after ~1 Day the problems are comming again.

This is not a Kaltura Bug but after some researching i have some Questions.

Is it normal that Kaltura have over 600000 requests per day to the database?

After Some Monitoring it seems that the request dont are generated from “Video Load”.
The System have anytime the same requests per seconds.

After 24 h:
Fri Jan 13 13:01:00 CET 2017
IP: Transcoding_1 Querys: 0
IP: Database_1 Querys: 0
IP: DWH_1 Querys: 2453
IP: Sphinx_1 Querys: 81404
IP: Frontende_1 Querys: 655257
IP: Transcoding_2 Querys: 0
IP: Database_2 Querys: 30
IP: DWH_2 Querys: 2407
IP: Sphinx_2 Querys: 81611
IP: Frontende_2 (Failover) Querys: 0

Connections (not Queries) :

The cut down is a restart of the Server.

Is this a Normal Situation with Kaltura?

Raumen837

Hello @Raumen837,

The amount of requests is in direct correlation to the amount of actions being done from the various interfaces, obviously.

Where it makes sense, the API requests do get cached, of course but still with a big enough load, yes, it can reach that number. I would make sure Memcache is correctly set up and that the permissions on the various cache directories are such that they can be written to from both the Apache [‘apache’ on RHEL/CentOS, www-data on Debian/Ubuntu] and ‘kaltura’ user, if there is an issue there, then obviously requests will not be cached and that can be a problem.