Should all settings in elasticsearch.yml file appear when queried via the rest API?


(Chris Neal) #1

...because mine do not.

When I bring up my cluster, and query the cluster settings api via Sense:

GET /_cluster/settings?v

I get

{}

Then if I update the cluster settings via the API call like:

PUT /_cluster/settings?master_timeout=3000000
{
    "persistent" : {
        "cluster.routing.allocation.cluster_concurrent_rebalance" : 6,
        "indices.store.throttle.type" : "none",
        "indices.store.throttle.max_bytes_per_sec" : "50mb"
    }
}

Then I only see those settings:

{
   "persistent": {
      "indices": {
         "store": {
            "throttle": {
               "type": "none",
               "max_bytes_per_sec": "50mb"
            }
         },
      },
      "cluster": {
         "routing": {
            "allocation": {
               "cluster_concurrent_rebalance": "6",
               "disk": {
                  "watermark": {
                     "low": "98%"
                  }
               }
            }
         }
      }
   },
   "transient": {}
}

Is this expected behavior? I was definitely thinking I would see everything in my .yml file reflected in the API query!

Thanks!
Chris


(Mark Walkom) #2

No, it doesn't show everything.

There's no single place to get all the config options, but I have FR in for it so hopefully we'll see something :slight_smile:


(Chris Neal) #3

Thank you sir :smile:
I'll assume that if I put it in the .yml file, it really did get applied! :wink:

Chris


(Mark Walkom) #4

It will, yes.


(system) #5