Skip to content

Node Stats : last index and last delete timestamps added #3933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

meconlin
Copy link

Needed this during some debugging of "stuck" current index counts.
I thought it might be useful to others.

It is also nice to have the last indexed info available if you want to use it as a check for an external caches potential staleness.

Example node stats output

{
  "cluster_name" : "yourcluster",
  "nodes" : {
    "P7R8Cdi_RRqdEFaOgiqdNg" : {
      "timestamp" : 1381956529533,
      "name" : "nodename",
      "transport_address" : "inet[/0.0.0.0:9300]",
      "hostname" : "hostname",
      "attributes" : {
        "master" : "true"
      },
      "indices" : {
        "docs" : {
          "count" : 24954926,
          "deleted" : 174148
        },
        "store" : {
          "size" : "22.6gb",
          "size_in_bytes" : 24365314778,
          "throttle_time" : "5.9m",
          "throttle_time_in_millis" : 357469
        },
        "indexing" : {
          "index_total" : 2642838,
          "index_time" : "16.6m",
          "index_time_in_millis" : 1000743,
          "index_current" : 0,
          "last_index_timestamp" : 1381956529533,
          "delete_total" : 0,
          "delete_time" : "0s",
          "delete_time_in_millis" : 0,
          "delete_current" : 0,
          "last_delete_timestamp" : 1381956527890
        },
        "flush" : {
          "total" : 115,
          "total_time" : "2.9m",
          "total_time_in_millis" : 178234
        }
      }
    },

@clintongormley
Copy link
Contributor

Hi @meconlin

Thanks for the PR. For caching purposes, I think the new query cache will be a nicer solution than external caching, #7161 (even though it only does aggs so far, docs will follow). Also, we are planning on adding sequence IDs which will be a better indicator of change, so I'm going to close this.

thanks anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants