IBM Cloud Docs
QHMM

QHMM

Query History Monitoring and Management (QHMM) is a service that stores and manages the diagnostic data such as, heap dumps, thread dumps, queries history and query event-related information of the Presto(Java) and Presto(C++) engine in a storage bucket that you define. You can retrieve the stored history files for analysis, debugging and monitoring purpose.

QHMM primarily aims to address the issue of data persistence for serviceability data. When the engine restarts or goes offline, there are chances of losing valuable diagnostic data they generate. QHMM resolves the issue by storing such data in Hive storage bucket that you define. The data is organized in a structured folder hierarchy, making it easily accessible for users to retrieve and analyze.

QHMM allows to retrieve the following diagnostic data:

  • Events generated against a running query in Presto, following are the query events:
    • Query created event - event logged when a query is initiated.
    • Split completed event - split correspond to an individual task in a query execution. An event is logged when a split or a task is completed.
    • Query completed event - event logged when a query execution is completed.
    • Query Optimiser event - event logged when the query optimizer is enabled.
  • Histories of the queries executed by Presto in the form of a json file.
  • Query history table created where user can execute a query to view the histories of the queries executed by Presto.
  • Heap dump by using API.

Enabling QHMM feature

You can enable the QHMM functionality in one of the following ways:

Related topics