Hi everyone,
I'm new to Elasticsearch and have not been able to find a definite answer to this question: can I set translog flush settings per index or are they only available at the node level?
I have several index templates with the following settings:
"settings": {
"index": {
"refresh_interval": "15s",
"number_of_shards": "2",
"translog": {
"flush_threshold_size": "2048mb",
"sync_interval": "15s",
"flush_threshold_period": "30m",
"durability": "async"
},
"number_of_replicas": "2"
}
},
All other settings (like the number of shards/replicas or the refresh interval) apply correctly but I've seen the transaction log for several indices grow well past the defined limit (and I mean 3-4 times bigger).
I know the translog fsync settings are definitely per index but for some reason this little detail leaves me confused. The "flush_threshold_size" setting seems to work fine if defined in the elasticsearch.yml file.
Are these settings meant to be set only in the node configuration file or do I not understand something about how they work?