Indices stats store values seem not coherent

Hello, i've been using the /_stats endpoint to recover the size of my indices, however it seems that the values are not the same between GET /_stats/store?expand_wildcards=all and GET /_stats?expand_wildcards=all, i'm only interested in the total store value. The results look like this:

GET /_stats/store?expand_wildcards=all

".ds-test-1" : {
      "primaries" : {
        "store" : {
          "size_in_bytes" : 303107785212,
          "total_data_set_size_in_bytes" : 303107785212,
          "reserved_in_bytes" : 0
        }
      },
      "total" : {
        "store" : {
          "size_in_bytes" : 509955534347,
          "total_data_set_size_in_bytes" : 509955534347,
          "reserved_in_bytes" : 168212146305
        }
      }
    },
GET /_stats?expand_wildcards=all
".ds-test-1" : {
      "primaries" : {
        "store" : {
          "size_in_bytes" : 303113948595,
          "total_data_set_size_in_bytes" : 303113948595,
          "reserved_in_bytes" : 0
        }
      },
      "total" : {
        "store" : {
          "size_in_bytes" : 303113948595,
          "total_data_set_size_in_bytes" : 303113948595,
          "reserved_in_bytes" : 0
        },
      }
    }

Is there a reason for this values to be different? and what is the actual meaning of reserved in bytes and its relation to the rest of the values?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.