“indices.memory.index_buffer_size”: “20%”
}}’
curl -XPOST ‘127.0.0.1:9200/_cluster/settings’ -d '{
“transient” :
{
“index.search.slowlog.threshold.query.warn”: “10s”,
“”: “5s”,
“index.search.slowlog.threshold.query.debug”: “2s”,
“index.search.slowlog.threshold.query.trace”: “500ms”,
“index.search.slowlog.threshold.fetch.warn”: “1s”,
“”: “800ms”,
“index.search.slowlog.threshold.fetch.debug”: “500ms”,
“index.search.slowlog.threshold.fetch.trace”: “200ms”
}}’
–节点下线时,把所有后缀为 -2的从集群中排除
curl -XPUT http://127.0.0.1:9200/_cluster/settings
{ “transient” :
{“cluster.routing.allocation.enable” : “all”, “cluster.routing.allocation.exclude._name”:“.*-2”}
}curl -XPUT ip:9200/_cluster/settings -d
‘{
“transient”: {
“logger.discover”: “DEBUG”
}
“persistent”: {
“discovery.zen.minimum_master_nodes”: 2
}
}’—批量指定节点下线
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
“transient”: {
“cluster.routing.allocation.exclude._name”: “atest11-2,atest12-2,anatest13-2,antest14-2”
}}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
“transient”: {
“cluster.routing.allocation.exclude._name”: “test_aa73_2,test_aa73”
}}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
“transient”: {
“cluster.routing.allocation.exclude._name”: “”
}}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
“transient”: {
“cluster.routing.allocation.cluster_concurrent_rebalance”: 10
}}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
“transient”: {
“indices.store.throttle.type”: “none”,
“index.store.type”: “niofs”,
“index.cache.field.type”: “soft”,
“indices.store.throttle.max_bytes_per_sec”: “500mb”,
“index.translog.flush_threshold_size”: “600MB”,
“threadpool.flush.type”: “fixed”,
“threadpool.flush.size”: 32,
“threadpool.flush.queue_size”: 1000
}}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
“transient”: {
“index.indexing.slowlog.level”: “warn”
}}’
curl -XGET 127.0.0.1:9200/_cluster/health?level=shards
curl -XGET 127.0.0.1:9200/_cluster/settings?pretty
curl -XGET 127.0.0.1:9200/_cluster/pending_tasks?pretty
curl -XGET 127.0.0.1:9200/_cat/aliases
curl -XGET 127.0.0.1:9200/_cat/plugins
curl -XGET 127.0.0.1:9200/_cat/nodes
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
/_cat/segments
/_cat/segments/{index}
/_cat/count
/_cat/count/{index}
/_cat/recovery
/_cat/recovery/{index}
/_cat/health
/_cat/pending_tasks
/_cat/aliases
/_cat/aliases/{alias}
/_cat/thread_pool
/_cat/plugins
/_cat/fielddata
/_cat/fielddata/{fields}shard的移动
curl -XPOST ‘localhost:9200/_cluster/reroute’ -d ‘{
“commands” : [ {
“move” :
{
“index” : “test_aa_20160529”, “shard” : 4,
“from_node” : “node1”, “to_node” : “node2”
}
},
{
“allocate” : {
“index” : “test”, “shard” : 1, “node” : “node3”
}
}
]
}’curl -XPUT 127.0.0.1:9200/_cluster/settings -d ’
{
“transient”: {
“logger.indices.recovery”: “DEBUG”
}
}’curl -XPUT 127.0.0.1:9200/_cluster/settings -d ’
{
“transient”: {
“cluster.routing.allocation.node_initial_primaries_recoveries”: “100”
}
}’curl -XPOST ‘127.0.0.1:9200/_cluster/settings’ -d '{
“transient” :
{
“indices.memory.index_buffer_size”: “20%”
}}’
curl -XPOST ‘127.0.0.1:9200/_cluster/settings’ -d '{
“transient” :
{
“index.indexing.slowlog.level” : “info”
}}’esheader连接不上es
转载文章标签 esheader连接不上es elasticsearch 大数据 搜索引擎 IT 文章分类 架构 后端开发
-
MQTT服务器连接不上的问题
解决客户端连不上MQTT服务器的问题
Ubuntu 22.04.3 LTS 阿里云 mosquitto MQTT 1883 -
PCB盲埋孔、通孔与阶梯孔的适配场景
PCB堆叠过孔类型选择指南 PCB堆叠
pcb工艺 制造 捷配 智能手表 汽车电子 -
图观 流渲染打包服务器
图观流渲染场景打包服务器支持自动编译、打包、版本管理及多任务调度,提升场景发布效率。
#服务器 #前端 #github #数据可视化 服务器
















