I have a single node ODFE running and all my indexes (except for internal ones) are yellow. the replica count is set to 1.
Guessing they are yellow because of replica count of 1 instead of 0.
So, trying to figure out HOW and WHERE to set the replica count to 0 at creation time.
I already have index templates for deletion of older indexes. This works fine.
PUT _index_template/dev_5day
{
“index_patterns”: [“dev*”],
“template”: {
“settings”: {
“opendistro.index_state_management.policy_id”: “DELETE_DEV_5day_policy”
}
}
}
– DEV 5 day policy
{
“policy”: {
“policy_id”: “DELETE_DEV_5day_policy”,
“description”: “Delete DEV indexes older than 5 days.”,
“last_updated_time”: 1610981377958,
“schema_version”: 1,
“error_notification”: null,
“default_state”: “open”,
“states”: [
{
“name”: “open”,
“actions”: [
{
“open”: {}
}
],
“transitions”: [
{
“state_name”: “delete”,
“conditions”: {
“min_index_age”: “5d”
}
}
]
},
{
“name”: “delete”,
“actions”: [
{
“delete”: {}
}
],
“transitions”:
}
]
}
}