Skip to content

Translog size is larger than the default index.translog.flush_threshold_size of 512mb #38541

@ialidzhikov

Description

@ialidzhikov

Describe the feature:

Elasticsearch version (bin/elasticsearch --version): 6.5.4

Plugins installed: []

JVM version (java -version): jdk-11.0.1

OS version (uname -a if on a Unix-like system): Linux 4.14.88-coreos #1 SMP Mon Jan 7 23:48:02 -00 2019 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:

GET logstash-2019.02.06/_settings
{
  "logstash-2019.02.06" : {
    "settings" : {
      "index" : {
        "refresh_interval" : "60s",
        "number_of_shards" : "3",
        "translog" : {
          "durability" : "async"
        },
        "provided_name" : "logstash-2019.02.06",
        "creation_date" : "1549411253895",
        "number_of_replicas" : "0",
        "uuid" : "ozXK8lszSbmQn_Qbn3oiGQ",
        "version" : {
          "created" : "6050499"
        }
      }
    }
  }
}
$ pwd
/data/nodes/0/indices/ozXK8lszSbmQn_Qbn3oiGQ
$ du -mh .
567M	./0/translog
1.4G	./0/index
8.0K	./0/_state
2.0G	./0
571M	./2/translog
1.4G	./2/index
8.0K	./2/_state
2.0G	./2
569M	./1/translog
1.4G	./1/index
8.0K	./1/_state
2.0G	./1
8.0K	./_state
5.8G	.

As you can see the translog files' sizes are more than the default 512mb. I expect the translog files to be flushed when their total size per shard reaches 521mb. In the snippet you can see than the total sizes are 567mb, 571mb and 569mb.

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

Provide logs (if relevant):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions