Clear trained model deployment cache Added in 8.5.0
Cache will be cleared on all nodes where the trained model is assigned. A trained model deployment may have an inference cache enabled. As requests are handled by each allocated node, their responses may be cached on that individual node. Calling this API clears the caches without restarting the deployment.
Path parameters
-
The unique identifier of the trained model.
POST /_ml/trained_models/{model_id}/deployment/cache/_clear
curl \
-X POST http://api.example.com/_ml/trained_models/{model_id}/deployment/cache/_clear
Response examples (200)
{
"cleared": true
}