Elasticsearch maintain translog files for each shard , does replica shard has translog files ?
{
"_shards" : {
"total" : 2,
"successful" : 2,
"failed" : 0
},
"_all" : {
"primaries" : {
"translog" : {
"operations" : 0,
"size_in_bytes" : 55,
"uncommitted_operations" : 0,
"uncommitted_size_in_bytes" : 55,
"earliest_last_modified_age" : 3625527568
}
},
"total" : {
"translog" : {
"operations" : 0,
"size_in_bytes" : 110,
"uncommitted_operations" : 0,
"uncommitted_size_in_bytes" : 110,
"earliest_last_modified_age" : 3625520206
}
}
},
}
}
}
I can't see replica detail in above query result. Elasticsearch version 7.16
CodePudding user response:
Yes, Elasticsearch maintain translog
for all shards including replica as well, and total
is showing information of all shards, you can notice its double in your query response.
My Guess is that you have 1 replica configured .