Frontend performance tracing
There are two possible ways to record performance logging for the frontend:
- Offline: where the values are stored in a .csv file.
- Online: using New Relic.
This frontend performance logging can be enabled by setting frontend.performance option to true, in the configuration service.
To enable online performance logging (using New Relic), please set the frontend.new_relic option to true.
In case the frontend.performance option is set to true and frontend.new_relic is set to false, then offline logging will take place.
You can read more how to update configuration options here.
Backend performance tracing
Install jaeger
$ sudo yum install squirro-jaeger
Configure the firewall
$ iptables -I INPUT -p tcp -m tcp --dport 14267 -j ACCEPT -s localhost -d localhost $ iptables -I INPUT -p tcp -m tcp --dport 14268 -j ACCEPT -s localhost -d localhost $ iptables -I INPUT -p tcp -m tcp --dport 16686 -j ACCEPT -s localhost -d localhost
Enable tracing, ensure the following section is in /etc/squirro/common.ini
[jaeger] tracing = true
Restart the the services you want to trace, e.g.:
$ service sqtopicd restart $ service sqfrontend restart
Start the collector, agent and query sevices:
$ /opt/squirro/jaeger/start_jaeger.sh http://<localhost or ip of your storagenode>:9200
The jaeger GUI now is available at http://127.0.0.1:16686