In this chapter, we will discuss the administration tools used in Presto. Let’s start with the Web Interface of Presto.
Presto provides a web interface for monitoring and managing queries. It can be accessed from the port number specified in the coordinator Config Properties.
Start Presto server and Presto CLI. Then you can access the web interface from the following url − http://localhost:8080/
The output will be similar to the above screen.
Here, the main page has a list of queries along with information like unique query ID, query text, query state, percentage completed, username and source from which this query is originated. Latest queries are running first, then completed or not completed queries are displayed at the bottom.
If Presto cluster is having any performance-related issues, change your default configuration settings to the following settings.
task. info -refresh-max-wait − Reduces coordinator work load.
task.max-worker-threads − Splits the process and assigns to each worker nodes.
distributed-joins-enabled − Hash-based distributed joins.
node-scheduler.network-topology − Sets network topology to scheduler.
Change your default JVM settings to the following settings. This will be helpful for diagnosing garbage collection issues.
-XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCCause -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintReferenceGC -XX:+PrintClassHistogramAfterFullGC -XX:+PrintClassHistogramBeforeFullGC -XX:PrintFLSStatistics = 2 -XX:+PrintAdaptiveSizePolicy -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount = 1