TypechoJoeTheme

IT技术分享

统计

12. ES查询集群节点监控详细信息——ElasticSearch基础专栏

2022-09-12
/
0 评论
/
1,767 阅读
/
正在检测是否收录...
09/12

一、查询语句

GET _nodes/stats?pretty

二、返回值详解

{
  "_nodes": {
    "total": 1,
    "successful": 1,
    "failed": 0
  },
  "cluster_name": "elasticsearch", // 节点名称
  "nodes": { // 节点详细信息
    "snuKnU6JTza8C3S6SmfzJw": {
      "timestamp": 1664578055989,
      "name": "30.48.156.219node1",
      "transport_address": "30.48.156.219:7300", // 服务内部访问地址
      "host": "30.48.156.219", // 节点服务地址
      "ip": "30.48.156.219:7300",
      "roles": [ // 节点的角色类型
        "data",
        "data_cold",
        "data_content",
        "data_hot",
        "data_warm",
        "ingest",
        "master",
        "ml",
        "remote_cluster_client",
        "transform"
      ],
      "attributes": {
        "ml.machine_memory": "8589934592",
        "xpack.installed": "true",
        "transform.node": "true",
        "ml.max_open_jobs": "20",
        "ml.max_jvm_size": "1037959168",
        "tag": "new"
      },
      "indices": {
        "docs": {
          "count": 59561, // 索引文档总数量
          "deleted": 106
        },
        "store": {
          "size_in_bytes": 9785636,
          "reserved_in_bytes": 0
        },
        "indexing": {
          "index_total": 7386, // 索引文档数量
          "index_time_in_millis": 12910, // 使用索引总耗时
          "index_current": 0,
          "index_failed": 0,
          "delete_total": 0,
          "delete_time_in_millis": 0,
          "delete_current": 0,
          "noop_update_total": 0,
          "is_throttled": false,
          "throttle_time_in_millis": 0
        },
        "get": {
          "total": 2696, // get请求的数量
          "time_in_millis": 452, // get请求的总耗时
          "exists_total": 229,
          "exists_time_in_millis": 199,
          "missing_total": 2467,
          "missing_time_in_millis": 253,
          "current": 0
        },
        "search": {
          "open_contexts": 0,
          "query_total": 9230, // search请求的总数
          "query_time_in_millis": 4290, // search请求的总耗时
          "query_current": 0,
          "fetch_total": 2170, // fetch请求的总数量
          "fetch_time_in_millis": 2736, // fetch请求的总耗时
          "fetch_current": 0,
          "scroll_total": 0,
          "scroll_time_in_millis": 0,
          "scroll_current": 0,
          "suggest_total": 0,
          "suggest_time_in_millis": 0,
          "suggest_current": 0
        },
        "merges": { // 数据合并的详细信息
          "current": 0,
          "current_docs": 0,
          "current_size_in_bytes": 0,
          "total": 738,
          "total_time_in_millis": 10734,
          "total_docs": 242444,
          "total_size_in_bytes": 122734895,
          "total_stopped_time_in_millis": 0,
          "total_throttled_time_in_millis": 0,
          "total_auto_throttle_in_bytes": 1677721600
        },
        "refresh": { // 数据refresh操作的详细信息
          "total": 31949,
          "total_time_in_millis": 63809,
          "external_total": 29426,
          "external_total_time_in_millis": 68345,
          "listeners": 0
        },
        "flush": { // 服务flush操作的详细信息
          "total": 2604,
          "periodic": 0,
          "total_time_in_millis": 71727
        },
        "warmer": {
          "current": 0,
          "total": 10245,
          "total_time_in_millis": 1880
        },
        "query_cache": { // 查询时使用缓存的信息
          "memory_size_in_bytes": 0,
          "total_count": 0,
          "hit_count": 0,
          "miss_count": 0,
          "cache_size": 0,
          "cache_count": 0,
          "evictions": 0
        },
        "fielddata": {
          "memory_size_in_bytes": 0,
          "evictions": 0
        },
        "completion": {
          "size_in_bytes": 0
        },
        "segments": { // 数据段信息
          "count": 143, // 节点中段的总数量
          "memory_in_bytes": 1017828,
          "terms_memory_in_bytes": 678912,
          "stored_fields_memory_in_bytes": 71000,
          "term_vectors_memory_in_bytes": 0,
          "norms_memory_in_bytes": 84288,
          "points_memory_in_bytes": 0,
          "doc_values_memory_in_bytes": 183628,
          "index_writer_memory_in_bytes": 0,
          "version_map_memory_in_bytes": 0,
          "fixed_bit_set_memory_in_bytes": 24816,
          "max_unsafe_auto_id_timestamp": 1,
          "file_sizes": {

          }
        },
        "translog": { // translog详细信息
          "operations": 0,
          "size_in_bytes": 2475,
          "uncommitted_operations": 0,
          "uncommitted_size_in_bytes": 2475,
          "earliest_last_modified_age": 5
        },
        "request_cache": {
          "memory_size_in_bytes": 0,
          "evictions": 0,
          "hit_count": 0,
          "miss_count": 0
        },
        "recovery": {
          "current_as_source": 0,
          "current_as_target": 0,
          "throttle_time_in_millis": 0
        }
      },
      "os": { // 操作系统相关信息
        "timestamp": 1664578056004,
        "cpu": {
          "percent": 10,
          "load_average": {
            "1m": 0.39,
            "5m": 0.41,
            "15m": 0.38
          }
        },
        "mem": {
          "total_in_bytes": 8589934592,
          "free_in_bytes": 5715800064,
          "used_in_bytes": 2874134528,
          "free_percent": 67,
          "used_percent": 33
        },
        "swap": {
          "total_in_bytes": 0,
          "free_in_bytes": 0,
          "used_in_bytes": 0
        }
      },
      "process": {
        "timestamp": 1664578056005,
        "open_file_descriptors": 568,
        "max_file_descriptors": 1048576,
        "cpu": {
          "percent": 0,
          "total_in_millis": 12892060
        },
        "mem": {
          "total_virtual_in_bytes": 4966445056
        }
      },
      "jvm": { // Java中的jvm相关信息
        "timestamp": 1664578056006,
        "uptime_in_millis": 9275250725,
        "mem": { // java中的内存信息
          "heap_used_in_bytes": 202887200,
          "heap_used_percent": 19, // 内存的使用百分比
          "heap_committed_in_bytes": 1037959168,
          "heap_max_in_bytes": 1037959168,
          "non_heap_used_in_bytes": 192127528,
          "non_heap_committed_in_bytes": 212828160,
          "pools": { // Java堆内存信息
            "young": { // GC 中年轻代内存信息
              "used_in_bytes": 56212568,
              "max_in_bytes": 286326784,
              "peak_used_in_bytes": 286326784,
              "peak_max_in_bytes": 286326784
            },
            "survivor": { // GC 中辛存者内存信息
              "used_in_bytes": 677872,
              "max_in_bytes": 35782656,
              "peak_used_in_bytes": 35782656,
              "peak_max_in_bytes": 35782656
            },
            "old": { // GC 中老年代内存信息
              "used_in_bytes": 145996760,
              "max_in_bytes": 715849728,
              "peak_used_in_bytes": 538911064,
              "peak_max_in_bytes": 715849728
            }
          }
        },
        "threads": { // 线程使用情况
          "count": 119,
          "peak_count": 129
        },
        "gc": {
          "collectors": {
            "young": {
              "collection_count": 1933, // 年轻代垃圾回收次数
              "collection_time_in_millis": 8845 // 年轻代垃圾回收总耗时。
            },
            "old": {
              "collection_count": 4, // 老年代垃圾回收次数
              "collection_time_in_millis": 379 // 老年代垃圾回收总耗时
            }
          }
        },
        "buffer_pools": {
          "direct": {
            "count": 114,
            "used_in_bytes": 18094024,
            "total_capacity_in_bytes": 18094023
          },
          "mapped": {
            "count": 424,
            "used_in_bytes": 6254058,
            "total_capacity_in_bytes": 6254058
          }
        },
        "classes": {
          "current_loaded_count": 22211,
          "total_loaded_count": 22780,
          "total_unloaded_count": 569
        }
      },
      "thread_pool": { // 表示线程池的一些信息
        "analyze": {
          "threads": 0,
          "queue": 0, // 线程队列数
          "active": 0, // 激活的线程数
          "rejected": 0, // 被拒绝线程数量
          "largest": 0,
          "completed": 0
        },
        "ccr": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "fetch_shard_started": {
          "threads": 1,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 12,
          "completed": 20
        },
        "fetch_shard_store": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "flush": {
          "threads": 5,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 5,
          "completed": 501194
        },
        "force_merge": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "generic": {
          "threads": 20,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 20,
          "completed": 11104649
        },
        "get": {
          "threads": 1,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 1,
          "completed": 1
        },
        "listener": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "management": {
          "threads": 5,
          "queue": 0,
          "active": 1,
          "rejected": 0,
          "largest": 5,
          "completed": 9244195
        },
        "ml_datafeed": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "ml_job_comms": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "ml_utility": {
          "threads": 2,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 2,
          "completed": 9274543
        },
        "refresh": {
          "threads": 8,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 8,
          "completed": 646636
        },
        "rollup_indexing": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "search": {
          "threads": 25,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 25,
          "completed": 20719
        },
        "search_throttled": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "searchable_snapshots_cache_fetch_async": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "searchable_snapshots_cache_prewarming": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "securitycrypto": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "securitytokenkey": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "snapshot": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "system_read": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "system_write": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "transform_indexing": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "warmer": {
          "threads": 1,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 5,
          "completed": 55650
        },
        "watcher": {
          "threads": 0,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 0,
          "completed": 0
        },
        "write": {
          "threads": 16,
          "queue": 0,
          "active": 0,
          "rejected": 0,
          "largest": 16,
          "completed": 7566
        }
      },
      "fs": {
        "timestamp": 1664578056008,
        "total": {
          "total_in_bytes": 53687091200,
          "free_in_bytes": 50597752832,
          "available_in_bytes": 50597752832
        },
        "data": [
          {
            "path": "/data/release/gdt/app/data/node1/nodes/0",
            "mount": "/ (overlay)",
            "type": "overlay",
            "total_in_bytes": 53687091200,
            "free_in_bytes": 50597752832,
            "available_in_bytes": 50597752832
          }
        ],
        "io_stats": {

        }
      },
      "transport": {
        "server_open": 0,
        "total_outbound_connections": 0,
        "rx_count": 0,
        "rx_size_in_bytes": 6078,
        "tx_count": 30,
        "tx_size_in_bytes": 720
      },
      "http": {
        "current_open": 9,
        "total_opened": 3143613
      },
      "breakers": {
        "request": {
          "limit_size_in_bytes": 622775500,
          "limit_size": "593.9mb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 1,
          "tripped": 0
        },
        "fielddata": {
          "limit_size_in_bytes": 415183667,
          "limit_size": "395.9mb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 1.03,
          "tripped": 0
        },
        "in_flight_requests": {
          "limit_size_in_bytes": 1037959168,
          "limit_size": "989.8mb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 2,
          "tripped": 0
        },
        "model_inference": {
          "limit_size_in_bytes": 518979584,
          "limit_size": "494.9mb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 1,
          "tripped": 0
        },
        "accounting": {
          "limit_size_in_bytes": 1037959168,
          "limit_size": "989.8mb",
          "estimated_size_in_bytes": 1014044,
          "estimated_size": "990.2kb",
          "overhead": 1,
          "tripped": 0
        },
        "parent": {
          "limit_size_in_bytes": 986061209,
          "limit_size": "940.3mb",
          "estimated_size_in_bytes": 202903600,
          "estimated_size": "193.5mb",
          "overhead": 1,
          "tripped": 0
        }
      },
      "script": {
        "compilations": 1,
        "cache_evictions": 0,
        "compilation_limit_triggered": 0
      },
      "discovery": {
        "cluster_state_queue": {
          "total": 0,
          "pending": 0,
          "committed": 0
        },
        "published_cluster_states": {
          "full_states": 2,
          "incompatible_diffs": 0,
          "compatible_diffs": 133
        }
      },
      "ingest": {
        "total": {
          "count": 0,
          "time_in_millis": 0,
          "current": 0,
          "failed": 0
        },
        "pipelines": {
          "xpack_monitoring_6": {
            "count": 0,
            "time_in_millis": 0,
            "current": 0,
            "failed": 0,
            "processors": [
              {
                "script": {
                  "type": "script",
                  "stats": {
                    "count": 0,
                    "time_in_millis": 0,
                    "current": 0,
                    "failed": 0
                  }
                }
              },
              {
                "gsub": {
                  "type": "gsub",
                  "stats": {
                    "count": 0,
                    "time_in_millis": 0,
                    "current": 0,
                    "failed": 0
                  }
                }
              }
            ]
          },
          "xpack_monitoring_7": {
            "count": 0,
            "time_in_millis": 0,
            "current": 0,
            "failed": 0,
            "processors": [

            ]
          }
        }
      },
      "adaptive_selection": {
        "snuKnU6JTza8C3S6SmfzJw": {
          "outgoing_searches": 0,
          "avg_queue_size": 0,
          "avg_service_time_ns": 237138,
          "avg_response_time_ns": 294050,
          "rank": "0.3"
        }
      },
      "script_cache": {
        "sum": {
          "compilations": 1,
          "cache_evictions": 0,
          "compilation_limit_triggered": 0
        },
        "contexts": [
          {
            "context": "aggregation_selector",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "aggs",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "aggs_combine",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "aggs_init",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "aggs_map",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "aggs_reduce",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "analysis",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "boolean_script_field_script_field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "bucket_aggregation",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "date_script_field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "double_script_field_script_field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "filter",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "geo_point_script_field_script_field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "ingest",
            "compilations": 1,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "interval",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "ip_script_field_script_field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "long_script_field_script_field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "movingfunction",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "number_sort",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "painless_test",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "processor_conditional",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "score",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "script_heuristic",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "similarity",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "similarity_weight",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "string_script_field_script_field",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "string_sort",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "template",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "terms_set",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "update",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "watcher_condition",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "watcher_transform",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          },
          {
            "context": "xpack_template",
            "compilations": 0,
            "cache_evictions": 0,
            "compilation_limit_triggered": 0
          }
        ]
      },
      "indexing_pressure": {
        "memory": { // 内存使用情况
          "current": {
            "combined_coordinating_and_primary_in_bytes": 0,
            "coordinating_in_bytes": 0,
            "primary_in_bytes": 0,
            "replica_in_bytes": 0,
            "all_in_bytes": 0
          },
          "total": { // 集群相关的统计信息
            "combined_coordinating_and_primary_in_bytes": 14775070,
            "coordinating_in_bytes": 14775070,
            "primary_in_bytes": 13053390,
            "replica_in_bytes": 0,
            "all_in_bytes": 14775070,
            "coordinating_rejections": 0,
            "primary_rejections": 0,
            "replica_rejections": 0
          },
          "limit_in_bytes": 103795916
        }
      }
    }
  }
}
朗读
赞 · 0
版权属于:

IT技术分享

本文链接:

https://idunso.com/archives/2893/(转载时请注明本文出处及文章链接)