Presto: is there any way to get the cluster memory information from restful api?

Created on 6 Dec 2018  路  2Comments  路  Source: prestodb/presto

Hello, I am searching a way to get the Memory usage information of cluster
/v1/status only can get the coordinator node's memory usage info, is there any way to get other node's?
thxs

Most helpful comment

Workers also have the /v1/status endpoint. When you run a query and look at its details you will see the list of workers that ran the tasks of that query. If you click on a worker you will see its heap usage and other details. Many of these details are retrieved from the /v1/status endpoint on that particular worker.

If you want to get details about which queries/operators use how much memory on a worker or across the entire cluster, then you can use (note that this memory usage info is tracked by Presto itself),:

  • /v1/cluster/memory => coordinator's view of cluster memory usage (with query/operator details).
  • /v1/memory/{pool_id} => info about a worker's memory pool (with query/operator details). pool_id can be general/reserved/system.

All 2 comments

Workers also have the /v1/status endpoint. When you run a query and look at its details you will see the list of workers that ran the tasks of that query. If you click on a worker you will see its heap usage and other details. Many of these details are retrieved from the /v1/status endpoint on that particular worker.

If you want to get details about which queries/operators use how much memory on a worker or across the entire cluster, then you can use (note that this memory usage info is tracked by Presto itself),:

  • /v1/cluster/memory => coordinator's view of cluster memory usage (with query/operator details).
  • /v1/memory/{pool_id} => info about a worker's memory pool (with query/operator details). pool_id can be general/reserved/system.

It help me a lot,thx

Was this page helpful?
0 / 5 - 0 ratings