2015-04-01 43 views
0

我試圖設置如下屬性:一些elasticsearch.yml配置不生效

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這樣的東西是反映,但這些不是......沒有在日誌btw錯誤。

回答

0

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