我们使用以下集群配置在Elasticsearch中拥有300GB的数据。
2个索引,每个索引包含5个分片和1个副本。
主节点:-4核,8GB RAM
第一个数据节点:-8核,20GB RAM
第二个数据节点:-4核,8GB RAM
{
"_nodes": {
"total": 3,
"successful": 3,
"failed": 0
},
"cluster_name": "1-production",
"timestamp": 1556190450696,
"status": "green",
"indices": {
"count": 2,
"shards": {
"total": 20,
"primaries": 10,
"replication": 1,
"index": {
"shards": {
"min": 10,
"max": 10,
"avg": 10
},
"primaries": {
"min": 5,
"max": 5,
"avg": 5
},
"replication": {
"min": 1,
"max": 1,
"avg": 1
}
}
},
"docs": {
"count": 196200579,
"deleted": 51077913
},
"store": {
"size": "317.2gb",
"size_in_bytes": 340646738562
},
"fielddata": {
"memory_size": "0b",
"memory_size_in_bytes": 0,
"evictions": 0
},
"query_cache": {
"memory_size": "871.7mb",
"memory_size_in_bytes": 914092266,
"total_count": 18181769,
"hit_count": 6761967,
"miss_count": 11419802,
"cache_size": 70029,
"cache_count": 174509,
"evictions": 104480
},
"completion": {
"size": "0b",
"size_in_bytes": 0
},
"segments": {
"count": 500,
"memory": "465.8mb",
"memory_in_bytes": 488502637,
"terms_memory": "229.6mb",
"terms_memory_in_bytes": 240763546,
"stored_fields_memory": "50.8mb",
"stored_fields_memory_in_bytes": 53353648,
"term_vectors_memory": "0b",
"term_vectors_memory_in_bytes": 0,
"norms_memory": "583.5kb",
"norms_memory_in_bytes": 597504,
"points_memory": "40.3mb",
"points_memory_in_bytes": 42324123,
"doc_values_memory": "144.4mb",
"doc_values_memory_in_bytes": 151463816,
"index_writer_memory": "117.3mb",
"index_writer_memory_in_bytes": 123077658,
"version_map_memory": "2.4kb",
"version_map_memory_in_bytes": 2464,
"fixed_bit_set": "59mb",
"fixed_bit_set_memory_in_bytes": 61945904,
"max_unsafe_auto_id_timestamp": -1,
"file_sizes": {}
}
},
"nodes": {
"count": {
"total": 3,
"data": 2,
"coordinating_only": 0,
"master": 1,
"ingest": 3
},
"versions": [
"6.4.3"
],
"os": {
"available_processors": 16,
"allocated_processors": 16,
"names": [
{
"name": "Linux",
"count": 3
}
],
"mem": {
"total": "46.9gb",
"total_in_bytes": 50465730560,
"free": "753.7mb",
"free_in_bytes": 790405120,
"used": "46.2gb",
"used_in_bytes": 49675325440,
"free_percent": 2,
"used_percent": 98
}
},
"process": {
"cpu": {
"percent": 9
},
"open_file_descriptors": {
"min": 295,
"max": 508,
"avg": 398
}
},
"jvm": {
"max_uptime": "58.8d",
"max_uptime_in_millis": 5083532179,
"versions": [
{
"version": "1.8.0_161",
"vm_name": "Java HotSpot(TM) 64-Bit Server VM",
"vm_version": "25.161-b12",
"vm_vendor": "Oracle Corporation",
"count": 1
},
{
"version": "1.8.0_191",
"vm_name": "Java HotSpot(TM) 64-Bit Server VM",
"vm_version": "25.191-b12",
"vm_vendor": "Oracle Corporation",
"count": 2
}
],
"mem": {
"heap_used": "11.9gb",
"heap_used_in_bytes": 12859976288,
"heap_max": "31.8gb",
"heap_max_in_bytes": 34220277760
},
"threads": 297
},
"fs": {
"total": "1.7tb",
"total_in_bytes": 1897155366912,
"free": "1.1tb",
"free_in_bytes": 1284989382656,
"available": "1.1tb",
"available_in_bytes": 1231235182592
},
"plugins": [],
"network_types": {
"transport_types": {
"security4": 3
},
"http_types": {
"security4": 3
}
}
}
}
Socket hangs up on the search.
帮我配置集群
任何建议都会感激