Elasticsearch Persistent

By Opster Team

Updated: Jan 28, 2024

| 1 min read

Overview

In Elasticsearch, persistent refers to cluster settings that persist across cluster restarts. This setting is used in Cluster Update API calls. Persistent settings can also be configured in the elasticsearch.yml file.

Examples

## enable shard routing
PUT /_cluster/settings
{
    "persistent" : {
        "cluster.routing.allocation.enable" : "all"
    }
}
## enable rebalancing of shards
PUT /_cluster/settings
{
    "persistent" : {
        "cluster.routing.rebalance.enable" : "all"
    }
}
## limit the heap size for fielddata
PUT /_cluster/settings
{
    "persistent" : {
                 “indices.breaker.fielddata.limit”: "30%"
    }
}

Related log errors to this ES concept


TransformId Failed to cancel persistent task that could
Failed to reschedule persistent tasks rechecker
Ignoring persistent setting
Ignoring persistent setting not dynamically updateable
Failed to set task
Failed to start task
Timeout waiting for task
Task with id taskId already exist
The task with id id and allocation id allocationId not found
The task with id doesn t exist
The task with id and allocation id doesn t exist
Trying to override task with id taskId

< Page: 3 of 4 >