zoukankan      html  css  js  c++  java
  • ES基础(六十四)监控 Elasticsearch 集群

     

     

     

    课程demo

    # Node Stats:
    GET _nodes/stats
    
    #Cluster Stats:
    GET _cluster/stats
    
    #Index Stats:
    GET kibana_sample_data_ecommerce/_stats
    
    #Pending Cluster Tasks API:
    GET _cluster/pending_tasks
    
    # 查看所有的 tasks,也支持 cancel task
    GET _tasks
    
    
    GET _nodes/thread_pool
    GET _nodes/stats/thread_pool
    GET _cat/thread_pool?v
    GET _nodes/hot_threads
    GET _nodes/stats/thread_pool
    
    
    # 设置 Index Slowlogs
    # the first 1000 characters of the doc's source will be logged
    PUT my_index/_settings
    {
      "index.indexing.slowlog":{
        "threshold.index":{
          "warn":"10s",
          "info": "4s",
          "debug":"2s",
          "trace":"0s"
        },
        "level":"trace",
        "source":1000  
      }
    }
    
    # 设置查询
    DELETE my_index
    //"0" logs all queries
    PUT my_index/
    {
      "settings": {
        "index.search.slowlog.threshold": {
          "query.warn": "10s",
          "query.info": "3s",
          "query.debug": "2s",
          "query.trace": "0s",
          "fetch.warn": "1s",
          "fetch.info": "600ms",
          "fetch.debug": "400ms",
          "fetch.trace": "0s"
        }
      }
    }
    
    GET my_index
    # Node Stats:
    GET _nodes/stats
    
    #Cluster Stats:
    GET _cluster/stats
    
    #Index Stats:
    GET kibana_sample_data_ecommerce/_stats
    
    #Pending Cluster Tasks API:
    GET _cluster/pending_tasks
    
    # 查看所有的 tasks,也支持 cancel task
    GET _tasks
    
    
    GET _nodes/thread_pool
    GET _nodes/stats/thread_pool
    GET _cat/thread_pool?v
    GET _nodes/hot_threads
    GET _nodes/stats/thread_pool
    
    
    # 设置 Index Slowlogs
    # the first 1000 characters of the doc's source will be logged
    PUT my_index/_settings
    {
      "index.indexing.slowlog":{
        "threshold.index":{
          "warn":"10s",
          "info": "4s",
          "debug":"2s",
          "trace":"0s"
        },
        "level":"trace",
        "source":1000  
      }
    }
    
    # 设置查询
    DELETE my_index
    //"0" logs all queries
    PUT my_index/
    {
      "settings": {
        "index.search.slowlog.threshold": {
          "query.warn": "10s",
          "query.info": "3s",
          "query.debug": "2s",
          "query.trace": "0s",
          "fetch.warn": "1s",
          "fetch.info": "600ms",
          "fetch.debug": "400ms",
          "fetch.trace": "0s"
        }
      }
    }
    
    GET my_index
  • 相关阅读:
    MutationObserver DOM变化的观察
    lspci详解分析
    dpdk快速编译使用
    bonding的系统初始化介绍
    fio测试nvme性能
    [驱动] 一个简单内核驱动,通过qemu调试(1)
    qemu启动vm后,如何host上使用ssh连接?
    Linux C下变量和常量的存储的本质
    从计算机中数据类型的存储方式,思考理解原码,反码,补码
    Linux C动态链接库实现一个插件例子
  • 原文地址:https://www.cnblogs.com/qiu-hua/p/14198887.html
Copyright © 2011-2022 走看看