一些elasticsearch.yml配置没有生效

时间:2015-04-01 12:18:50

标签: elasticsearch

我试图设置以下属性:

bootstrap:
    mlockall: true

index:
    warmer:
        enabled: false

    translog:
        interval: 10s
        flush_threshold_size: 1024mb

    gateway:
        local:
            sync: 10s


indices:
    memory:
        index_buffer_size: 50%
    store:
        throttle.type: none

我甚至尝试过:

bootstrap.mlockall: true

index.warmer.enabled: false

index.translog.interval: 10s

index.gateway.local.sync: 10s

index.translog.flush_threshold_size: 1024mb

indices.memory.index_buffer_size: 50%

indices.store.throttle.type: none

但是GET _cluster/settings有空输出:

{
   "persistent": {},
   "transient": {}
}

GET _settings对于之后创建的所有索引显示没有这些设置的设置:

   "indexName": {
      "settings": {
         "index": {
            "creation_date": "1427893895234",
            "uuid": "lJsmOeOORdOuG7GHbFmmaw",
            "number_of_replicas": "1",
            "number_of_shards": "5",
            "version": {
               "created": "1050099"
            }
         }
      }
   }

GET _nodes/process显示"mlockall": false ...当然我重启了ES。有趣的是,cluster-namediscovery之类的东西被反映出来,但这些都不是......日志中没有错误顺便说一句。

1 个答案:

答案 0 :(得分:0)

我错过了,它是curl -XGET localhost:9200/_nodes?clear&all