Open smilefish1987 opened 8 years ago
1.查看elasticsearch集群监控状态 http://localhost:8204/_cluster/health?pretty
{ "cluster_name" : "viva", "status" : "green", //green表示健康 yellow表示亚健康 red表示不健康 "timed_out" : false, "number_of_nodes" : 3, "number_of_data_nodes" : 3, "active_primary_shards" : 3, "active_shards" : 3, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0 }
2.查看elasticsearch集群的状态 http://localhost:8204/_cluster/stats?pretty
{ "timestamp" : 1450366439969, "cluster_name" : "viva", "status" : "green", "indices" : { "count" : 64, "shards" : { "total" : 447, "primaries" : 288, "replication" : 0.5520833333333334, "index" : { "shards" : { "min" : 3, "max" : 16, "avg" : 6.984375 }, "primaries" : { "min" : 3, "max" : 8, "avg" : 4.5 }, "replication" : { "min" : 0.0, "max" : 1.0, "avg" : 0.328125 } } }, "docs" : { "count" : 223298454, "deleted" : 10060337 }, "store" : { "size_in_bytes" : 162470487340, "throttle_time_in_millis" : 112550530 }, "fielddata" : { "memory_size_in_bytes" : 29842840, "evictions" : 0 }, "filter_cache" : { "memory_size_in_bytes" : 83533752, "evictions" : 0 }, "id_cache" : { "memory_size_in_bytes" : 0 }, "completion" : { "size_in_bytes" : 0 }, "segments" : { "count" : 1362, "memory_in_bytes" : 880810868, "index_writer_memory_in_bytes" : 683408, "index_writer_max_memory_in_bytes" : 2037731328, "version_map_memory_in_bytes" : 5976, "fixed_bit_set_memory_in_bytes" : 0 }, "percolate" : { "total" : 0, "time_in_millis" : 0, "current" : 0, "memory_size_in_bytes" : -1, "memory_size" : "-1b", "queries" : 0 } }, "nodes" : { "count" : { "total" : 3, "master_only" : 0, "data_only" : 0, "master_data" : 3, "client" : 0 }, "versions" : [ "1.7.1" ], "os" : { "available_processors" : 36, "mem" : { "total_in_bytes" : 202579611648 }, "cpu" : [ { "vendor" : "Intel", "model" : "Xeon", "mhz" : 2001, "total_cores" : 12, "total_sockets" : 12, "cores_per_socket" : 32, "cache_size_in_bytes" : 15360, "count" : 3 } ] }, "process" : { "cpu" : { "percent" : 567 }, "open_file_descriptors" : { "min" : 1303, "max" : 1362, "avg" : 1334 } }, "jvm" : { "max_uptime_in_millis" : 7447032417, "versions" : [ { "version" : "1.8.0_40", "vm_name" : "Java HotSpot(TM) 64-Bit Server VM", "vm_version" : "25.40-b25", "vm_vendor" : "Oracle Corporation", "count" : 3 } ], "mem" : { "heap_used_in_bytes" : 23317137312, "heap_max_in_bytes" : 160739229696 }, "threads" : 460 }, "fs" : { "total_in_bytes" : 4204953993216, "free_in_bytes" : 3968499347456, "available_in_bytes" : 3968499347456, "disk_reads" : 248021, "disk_writes" : 186868283, "disk_io_op" : 187116304, "disk_read_size_in_bytes" : 2672438272, "disk_write_size_in_bytes" : 5486048710656, "disk_io_size_in_bytes" : 5488721148928, "disk_queue" : "0.7", "disk_service_time" : "0.8" }, "plugins" : [ { "name" : "bigdesk", "version" : "NA", "description" : "No description found.", "url" : "/_plugin/bigdesk/", "jvm" : false, "site" : true }, { "name" : "analysis-ik", "version" : "${project.version}", "description" : "ik analysis", "jvm" : true, "site" : false }, { "name" : "sql", "version" : "NA", "description" : "Use sql to query elasticsearch.", "url" : "/_plugin/sql/", "jvm" : true, "site" : true } ] } }
1.查看elasticsearch集群监控状态 http://localhost:8204/_cluster/health?pretty
2.查看elasticsearch集群的状态 http://localhost:8204/_cluster/stats?pretty