Slow UI Performance?
ClusterControl consists of several components. We have an Apache server where the web client is served from, the web client in turn is fetching data and performs operations using two REST based APIs which operates on a MySQL server and also on the Controller/CMON Process (RPC port 9500).
In order to track where a potential bottleneck might be in the front-end we need to see how much time is spent where:
- Response time from the web client to the Apache server
- Response time from the Apache server to the CMONAPI/CMON process (RPC)
- SQL query performance from the Apache server to the MySQL server
Enable Response Time Tracking
Available from build: clustercontrol-1.2.9-136 and clustercontrol-cmonapi-1.2.9-31.
You need to enable this for both the web client and the REST/CMONAPI.
Enable it by adding:
define('TRACE_TIME_CALL', 1);
To:
# Track CMONAPI/CMON RPC calls
/var/www/html/clustercontrol/bootstrap.php
# Track SQL query performance
/var/www/html/cmonapi/config/bootstrap.php
(Assuming the web root directory is /var/www/html)
Log files and Web console output
The following log files are then created:
# Response times from the Apache server to the CMONAPI/CMON RPC
/tmp/cc_time.log
# SQL query performance from the Apache server to the MySQL server
/tmp/cmonapi_time.log
In your browser's web console we're logging the response time from the Web client to the Apache server.
Chrome: View->Developer->JavaScript Console (Windows: "More Tools" -> JavaScript Console)
FireFox: Tools -> Web Console
Please provide the log files and the output of the web console when contacting Severalnines's support if you have UI performance issues.
Comments
0 comments
Article is closed for comments.