Get machine learning memory usage info Generally available; Added in 8.2.0
All methods and paths for this operation:
GET /_ml/memory/_stats
GET /_ml/memory/{node_id}/_stats
Get information about how machine learning jobs and trained models are using memory, on each node, both within the JVM heap, and natively, outside of the JVM.
Required authorization
- Cluster privileges:
monitor_ml
Path parameters
-
The names of particular nodes in the cluster to target. For example,
nodeId1,nodeId2
orml:true
Query parameters
-
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
External documentation -
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
External documentation
GET /_ml/memory/{node_id}/_stats
Console
GET _ml/memory/_stats?human
resp = client.ml.get_memory_stats( human=True, )
const response = await client.ml.getMemoryStats({ human: "true", });
response = client.ml.get_memory_stats( human: "true" )
$resp = $client->ml()->getMemoryStats([ "human" => "true", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_ml/memory/_stats?human"