ElasticSearch(一)

ElasticSearch简介

基本介绍

Elastic search 是一个基于Lucene(一个开源的全文搜索引擎工具包)构建的开源、分布式、RESTful接口全文搜索引擎。es还是一个分布式文档数据库,可以扩展至数以百计的服务器存储和处理PB(1024TB)级的数据。

Elasticsearch是一个接近实时的搜索平台。这意味着,从索引一个文档直到这个文档能够被搜索到有一个轻微的延迟(通常是1秒)

Lucene 是一个开源的全文检索引擎工具包, 最初由 Doug Cutting 开发。 早在 1997 年, 资深全文检索专家 Doug Cutting 用一个周末的时间, 使用 Java 语言创作了一个文本搜索的开源函数库, 目的是为各种中小型应用软件加入全文检索功能。 不久之后, Lucene 诞生了, 2000年 Lucene 成为 Apache 开源社区的一个子项目。 随着 Lucene 被人们熟知, 越来越多的用户和研发人员加入其中, 完善并壮大项目的发展, Lucene 已成为最受欢迎的具有完整的查询引擎和索引引擎的全文检索库。

lucene简介

数据库和全文检索的区别

数据库和Lucene建立索引都是为了查找方便,但是数据库仅仅针对部分字段进行建立,且需要把数据转化为格式化信息,并予以保存。而全文检索是将全部信息按照一定方式进行索引。

比较项

Lucene检索

数据库检索

数据检索

从Lucene的索引文件中检出

由数据库索引检索记录

索引结构

Document(文档)

Record(记录)

查询结果

Hit:满足关系的文档组成

查询结果集:包含关键字的记录组成

全文检索

支持

不支持

结果排序

设置权重,进行相关性排序

不能排序

简单来说,数据库是模糊查询:

select * from product where pname like '%服%',速度较慢。且不灵活

全文检索可以快速、准确找到想要的数据

快:先从索引库查找,准确找到数据

准:对查询条件进行分词,然后对查询的结果进行相关度排序,得分越高,排的越靠前。

倒排索引

 文档通常保存在各种数据库管理系统之中, 比如 Oracle、MySQL 等。但是搜索引擎中的数据不能保存到数据库中,主要是因为数据库不能满足搜索引擎的需求,

原因有二:

一是搜索引擎中的数据量非常庞大;

二是搜索引擎使用的数据操作非常简单,一般只需增删改查这几个基本功能,一般的数据库系统则支持大而全的功能,损失了速度和空间,大量用户检索则要求搜索引擎响应时间必须很快,检索效率要非常高,数据库系统在检索响应时间和检索并发度方面都不能满足需求。

   倒排索引 Clnverted index ),也常被称为反向索引,是一种索引方法,被用来存储在全文搜索下某个单词在一个文档或者一组文档中的存储位置的映射,它是文档检索系统中最常用的数据结构。

下面以简单通俗的例子来理解倒排索引 ,假设现在有两个文档 doc1、 doc2, doc1包含3个关键词 :中国、 美国、韩国, doc2 中包含4个关键词:中国、美国、德国、英国,文档和词语的包含关系(也就是正排索引),见表 1-2。

那么词语所属的文档关系,也就是倒排索引,见表 1-3

     如果想查找包含关键词“美国”的文档 那么结果就是 doc1 和 doc2 。这样从文档包含单 词到单词所属文档的转换 就是倒排的由来。我们在搜索引擎中输入关键词进行查询,就是一次查找哪些文档包含查询关键词的过程。

    下面我们通过具体实例深入理解倒排索引,通过简单文档以小见大,体验倒排索引的构建过程。

如表所示,在互联网上找了4条科技新闻作为一个文档集合,我们以新闻标题作为文档内容,给每个文档设置一个连续的整数编号作为文档 ID。

     对于文档内容先要经过词条化处理。和英文不同的是,英文通过空格分隔单词,中文的词与词之间没有明确的分隔符号,经过分词系统进行中文分词以后把矩阵切分成一个个的词条,文档4会被分成“谷歌” “开源” “机器” “学习” “工具” 5个词项。

文档频率也是倒排记录表的长度。依次统计各个词项的文档频率和倒排记录表,构建倒排索引过程如表所示。

检索模型

布尔检索模型等(原理略)

lucene特点

稳定, 索引性能高

  • 现代硬盘上每小时能够索引 150GB 以上的数据。
  • 对内存的要求小:只需要 1MB 的堆内存。
  • 增量索引和批量索引一样快。
  • 索引的大小约为索引文本大小的 20%〜30%。

高效、准确、高性能的搜索算法

  • 搜索排名—最好的结果显示在最前面。
  • 许多强大的查询类型: 短语查询、 通配符查询、 近似查询、 范围查询等。
  • 对字段级别搜索(如标题, 作者, 内容) 。
  • 可以对任意字段排序。
  • 支持搜索多个索引并合并搜索结果。
  • 支持更新操作和查询操作同时进行。
  • 灵活的切面、 高亮、 join 和 group by 功能。
  • 速度快, 内存效率高, 容错性好。
  • 可选排序模型, 包括向量空间模型和 BM25 模型。
  •  可配置存储引擎。

 高效、准确、高性能的搜索算法

  • 作为 Apache 开源许可, 在商业软件和开放程序中都可以使用 Lucene。
  • 100%纯 Java 编写。
  • 对多种语言提供接口。

几个重要概念

 analyzer

       Analyzer是分析器,它的作用是把一个字符串按某种规则划分成一个个词语,并去除其中的无效词语。

 document

       用户提供的源是一条条记录,它们可以是文本文件、字符串或者数据库表的一条记录等等。一条记录经过索引之后,就是以一个Document的形式存储在索引文件中的。用户进行搜索,也是以Document列表的形式返回。

 field

       一个Document可以包含多个信息域,例如一篇文章可以包含“标题”、“正文” 等信息域,这些信息域就是通过Field在Document中存储的。

   Field有两个属性可选:存储和索引。通过存储属性你可以控制是否对这个Field进行存储;通过索引属性你可以控制是否对该Field进行索引。

 term

       term是搜索的最小单位,它表示文档的一个词语,term由两部分组成:它表示的词语和这个词语所出现的field。

 tocken

       tocken是term的一次出现,它包含term文本和相应的起止偏移,以及一个类型字符串。一句话中可以出现多次相同的词语,它们都用同一个term表示,但是用不同的tocken,每个tocken标记该词语出现的地方。

 segment

       添加索引时并不是每个document都马上添加到同一个索引文件,它们首先被写入到不同的小文件,然后再合并成一个大索引文件,这里每个小文件都是一个segment。

索引流程

 

  • 索引过程如下:
    • 创建一个IndexWriter用来写索引文件,它有几个参数,#{INDEX_DIR}是索引文件所存放的位置,Analyzer便是用来对文档进行词法分析和语言处理的。
    • 创建一个Document代表我们要索引的文档。
    • 将不同的Field加入到文档中。我们知道,一篇文档有多种信息,如题目,作者,修改时间,内容等。不同类型的信息用不同的Field来表示。
    • IndexWriter调用函数addDocument()将索引写到索引文件夹中。
  • 搜索过程如下:
    • IndexReader将磁盘上的索引信息读到内存,#{INDEX_DIR}就是索引文件存放的位置。
    • 创建IndexSearcher准备惊醒搜索。
    • 创建Analyzer用来对查询语句进行词法分析和语言处理。
    • 创建QueryParser用来对查询语句进行语法分析。
    • QueryParser调用parser()进行语法分析,形成查询语法树,放到Query中。
    • IndexSearcher调用search()对查询语法树Query进行搜索,得到结果TopScoreDocCollector。

elasticsearch

lucene与elasticsearch关系

如图中Lucene部署在单台机器上,磁盘空间为1T。当数据量很大,超过1T时,在单台机器上是放不了的,需要分布式的散落在多台机器上。如果其中一台机器宕机,将会导致数据丢失;而且自己来实现搜索功能和多台机器通信的过程,比较麻烦。

因此,Elasticsearch应运而生

Elasticsearch:基于Lucene,隐藏复杂性,提供简单易用的restful api接口、Java api接口及其它语言的api接口

elasticsearch特点

  1. 分布式的文档存储引擎,搜索引擎和分析引擎。
  2. 支持PB级数据
  3. 自动维护数据的分布到多个节点的索引的的建立,还有搜索请求分布到多个节点的执行。
  4. 自动维护数据的冗余副本,保证当有机器宕机时不会丢失任何数据
  5. 简单易用的restful api接口
  6. 封装了更多的高级功能,以给我们提供更多高级的支持,让我们快速的开发应用,开发更加复杂的应用,复杂的搜索功能,聚合分析的功能

 

elasticsearch与solr对比

优缺点对比

 

检索速度

  •  当单纯的对已有数据进行搜索时,Solr更快。

  • 当实时建立索引时, Solr会产生io阻塞,查询性能较差, Elasticsearch具有明显的优势。

  • 随着数据量的增加,Solr的搜索效率会变得更低,而Elasticsearch却没有明显的变化。

  • 大型互联网公司,实际生产环境测试,将搜索引擎从Solr转到Elasticsearch以后的平均查询速度有了50倍的提升。

ES VS solr总结

  1. 二者安装都很简单。
  2. Solr 利用 Zookeeper 进行分布式管理,而 Elasticsearch 自身带有分布式协调管理功能。
  3. Solr 支持更多格式的数据,比如JSON、XML、CSV,而 Elasticsearch 仅支持json文件格式。
  4. Solr 官方提供的功能更多,而 Elasticsearch 本身更注重于核心功能,高级功能多有第三方插件提供
  5. Solr 在传统的搜索应用中表现好于 Elasticsearch,但在处理实时搜索应用时效率明显低于 Elasticsearch。
  6. Solr 是传统搜索应用的有力解决方案,但 Elasticsearch 更适用于新兴的实时搜索应用。

elasticsearch核心概念

接近实时(NRT)

Elasticsearch 是一个接近实时的搜索平台。这意味着,从索引一个文档直到这个文档能够被搜索到有一个轻微的延迟(通常是1 秒)。

集群(cluster)

一个集群就是由一个或多个节点组织在一起,它们共同持有你整个的数据,并一起提供索引和搜索功能。一个集群由一个唯一的名字标识,这个名字默认就是“elasticsearch”。

这个名字是重要的,因为一个节点只能通过指定某个集群的名字,来加入这个集群。

节点(node)

一个节点是你集群中的一个服务器,作为集群的一部分,它存储你的数据,参与集群的索引和搜索功能。和集群类似,一个节点也是由一个名字来标识的,默认情况下,这个名字是一个随机的漫威漫画角色的名字,这个名字会在启动的时候赋予节点。

  • 节点集群配置:一个节点可以通过配置集群名称的方式来加入一个指定的集群。默认情况下,每个节点都会被安排加入到一个叫做“elasticsearch”的集群中。
  • 协同工作:节点是Elasticsearch运行中的实例,而集群则包含一个或多个具有相同cluster.name的节点,它们协同工作,共享数据,并共同分担工作负荷。由于节点是从属集群的,集群会自我重组来均匀地分发数据。
  • 选主:集群中的一个节点会被选为master节点,它将负责管理集群范畴的变更,例如创建或删除索引,添加节点到集群或从集群删除节点。master节点无需参与文档层面的变更和搜索,这意味着仅有一个master节点并不会因流量增长而成为瓶颈。任意一个节点都可以成为master节点。我们可以访问包括master节点在内的集群中的任一节点。每个节点都知道各个文档的位置,并能够将我们的请求直接转发到拥有我们想要的数据的节点。无论我们访问的是哪个节点,它都会控制从拥有数据的节点收集响应的过程,并返回给客户端最终的结果。

索引(index)

一个索引就是一个拥有几分相似特征的文档的集合。比如说,你可以有一个客户数据的索引,另一个产品目录的索引,还有一个订单数据的索引。

一个索引由一个名字来标识(必须全部是小写字母的),并且当我们要对对应于这个索引中的文档进行索引、搜索、更新和删除的时候,都要使用到这个名字。在一个集群中,如果你想,可以定义任意多的索引。

类型(type)


在一个索引中,你可以定义一种或多种类型。一个类型是你的索引的一个逻辑上的分类/分区,其语义完全由你来定。

每一个类型都拥有自己的映射(mapping)或者结构定义,它们定义了当前类型下的数据结构,类似于数据库表中的列。所有类型下的文档会被存储在同一个索引下,但是映射会告诉Elasticsearch不同的数据应该如何被索引。

文档(document)

 

一个文档是一个可被索引的基础信息单元。比如,你可以拥有某一个客户的文档,某一个产品的一个文档,当然,也可以拥有某个订单的一个文档。文档以JSON(Javascript Object Notation)格式来表示,而JSON是一个到处存在的互联网数据交互格式。

在一个index/type里面,你可以存储任意多的文档。注意,尽管一个文档,物理上存在于一个索引之中,文档必须被索引/赋予一个索引的type。

索引->数据库

类型->表(es逐步去除type的概念。)

文档->记录

     DB -> Databases -> Tables -> Rows -> Columns 
     ES -> Indices -> Types -> Documents -> Fields

映射(mapping)

mapping相当于表结构/java bean,它定义了索引中的每个字段的类型,和索引范围内的设置。映射可以事先被定义,也可以在第一次存储文档的时候自动识别

分片(shards)


一个索引可以存储超出单个结点硬件限制的大量数据。比如,一个具有10 亿文档的索引占据1TB 的磁盘空间,而任一节点都没有这样大的磁盘空间;或者单个节点的计算能力达不到期望的复杂功能的要求。这种情况下,可以将数据切分,每部分是一个单独的apache lucene索引,称为分片。每个分片可以被存储在集群的不同节点上。

为了解决这个问题,Elasticsearch 提供了将索引划分成多份的能力,这些份就叫做分片。当你创建一个索引的时候,你可以指定你想要的分片的数量。每个分片本身也是一个功能完善并且独立的“索引”,这个“索引”可以被放置到集群中的任何节点上。

分片之所以重要,主要有两方面的原因:
    - 允许你水平分割/扩展你的内容容量
    - 允许你在分片(潜在地,位于多个节点上)之上进行分布式的、并行的操作,进而提高性能/吞吐量

    至于一个分片怎样分布,它的文档怎样聚合回搜索请求,是完全由Elasticsearch 管理的,对于作为用户的你来说,这些都是透明的。

复本(replicas)

在一个网络/云的环境里,失败随时都可能发生,在某个分片/节点不知怎么的就处于离线状态,或者由于任何原因消失了,这种情况下,有一个故障转移机制是非常有用并且是强烈推荐的。为此目的,Elasticsearch 允许你创建分片的一份或多份拷贝,这些拷贝叫做复制分片,或者直接叫复制。

复制之所以重要,有两个主要原因:

  • 在分片/节点失败的情况下,提供了高可用性。因为这个原因,注意到复制分片从不与原/主要(original/primary)分片置于同一节点上是非常重要的。
  • 扩展你的搜索量/吞吐量,因为搜索可以在所有的复制上并行运行

    默认情况下,Elasticsearch 中的每个索引被分片5 个主分片和1 个复制,这意味着,如果你的集群中至少有两个节点,你的索引将会有5 个主分片和另外5 个复制分片(1 个完全拷贝),这样的话每个索引总共就有10 个分片。

River

代表es的一个数据源,也是其它存储方式(如:数据库)同步数据到es的一个方法。它是以插件方式存在的一个es服务,通过读取river中的数据并把它索引到es中,官方的river有couchDB的,RabbitMQ的,Twitter的,Wikipedia的。

Gateway

代表es索引的持久化存储方式,es默认是先把索引存放到内存中,当内存满了时再持久化到硬盘。当这个es集群关闭再重新启动时就会从gateway中读取索引数据。es支持多种类型的gateway,有本地文件系统(默认),分布式文件系统,Hadoop的HDFS和amazon的s3云存储服务。

discovery.zen

代表es的自动发现节点机制,es是一个基于p2p的系统,它先通过广播寻找存在的节点,再通过多播协议来进行节点之间的通信,同时也支持点对点的交互。

Transport

代表es内部节点或集群与客户端的交互方式,默认内部是使用tcp协议(9300端口)进行交互,同时它支持http协议(json格式)(9200端口)、thrift、servlet、memcached、zeroMQ等的传输协议(通过插件方式集成)。

 

elasticsearch核心api介绍

 

elasticsearch提供了 REST API 的操作接口对底层进行了封装,语法采用DSL语法结构。

DSL语法参考:https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html

RESTful接口URL的格式:
http://192.168.10.16:9200/<index>/<type>/[<id>]
其中index、type是必须提供的。
id是可选的,不提供es会自动生成。
index、type将信息进行分层,利于管理。
index可以理解为数据库;type理解为数据表;id相当于数据库表中记录的主键,是唯一的。

新建和删除 Index

新建一个名叫store的 Index。

 

 $ curl -X PUT 'localhost:9200/store'

通常服务器操作成功会返回一个 JSON 对象,里面的acknowledged字段表示操作成功。

 

 {
  "acknowledged":true,
  "shards_acknowledged":true
}

然后,我们发出 DELETE 请求,删除这个 Index。

 

 $ curl -X DELETE 'localhost:9200/store'

简单增删改查

#向store索引中添加一些书籍

curl -XPUT 'http://192.168.10.16:9200/store/books/1' -d '{
"title": "Elasticsearch: The Definitive Guide",
"name" : {
"first" : "Zachary",
"last" : "Tong"
},
"publish_date":"2015-02-06",
"price":"49.99"
}'


 

#在linux中通过curl的方式查询

curl -XGET 'http://192.168.10.18:9200/store/books/1'



#在添加一个书的信息

curl -XPUT 'http://192.168.10.18:9200/store/books/2' -d '{
"title": "Elasticsearch Blueprints",
"name" : {
"first" : "Vineeth",
"last" : "Mohan"
},
"publish_date":"2015-06-06",
"price":"35.99"
}' 


# 通过ID获得文档信息

curl -XGET 'http://192.168.10.18:9200/store/books/1' 

#通过_source获取指定的字段

curl -XGET 'http://192.168.10.16:9200/store/books/1?_source=title'
curl -XGET 'http://192.168.10.16:9200/store/books/1?_source=title,price'
curl -XGET 'http://192.168.10.16:9200/store/books/1?_source' 

#可以通过覆盖的方式更新

 

curl -XPUT 'http://192.168.10.16:9200/store/books/1' -d '{
"title": "Elasticsearch: The Definitive Guide",
"name" : {
"first" : "Zachary",
"last" : "Tong"
},
"publish_date":"2016-02-06",
"price":"99.99"
}' 

# 或者通过 _update API的方式单独更新你想要更新的

curl -XPOST 'http://192.168.10.16:9200/store/books/1/_update' -d '{
"doc": {
"price" : 88.88
}
}' 


#删除一个文档

curl -XDELETE 'http://192.168.10.16:9200/store/books/1' 

基本查询:

  • 查询所有的商品:
GET /product_index/product/_search
{
  "query": {
    "match_all": {}
  }
}

查询商品名称包含 toothbrush 的商品,同时按照价格降序排序

GET /product_index/product/_search
{
  "query": {
    "match": {
      "product_name": "toothbrush"
    }
  },
  "sort": [
    {
      "price": "desc"
    }
  ]
}

  • 分页查询商品:
GET /product_index/product/_search
{
  "query": {
    "match_all": {}
  },
  "from": 0, ## 从第几个商品开始查,最开始是 0
  "size": 1  ## 要查几个结果
}

  • 指定查询结果字段(field)
GET /product_index/product/_search
{
  "query": {
    "match_all": {}
  },
  "_source": [
    "product_name",
    "price"
  ]
}

 
  • 范围查询:例搜索商品名称包含 toothbrush,而且售价大于 400 元,小于 700 的商品

    gte大于或等于
    gt大于
    lte小于或等于
    lt小于

     

GET /product_index/product/_search
{
  "query": {
    "bool": {
      "must": {
        "match": {
          "product_name": "toothbrush"
        }
      },
      "filter": {
        "range": {
          "price": {
            "gt": 400,
            "lt": 700
          }
        }
      }
    }
  }
}

 
  • match 用法(与 term 进行对比):查询的字段内容是进行分词处理的,只要分词的单词结果中,在数据中有满足任意的分词结果都会被查询出来
GET /product_index/product/_search
{
  "query": {
    "match": {
      "product_name": "PHILIPS toothbrush"
    }
  }
}

 
  • match 还有一种情况,就是必须满足分词结果中所有的词,而不是像上面,任意一个就可以的。
    看下面的JSON其实你也可以猜出来,其实上面的JSON和下面的 JSON 本质是operator的差别,上面是or,下面是and关系
GET /product_index/product/_search
{
  "query": {
    "match": {
      "product_name": {
        "query": "PHILIPS toothbrush",
        "operator": "and"
      }
     }
   }
}
 
  • match还还有一种情况,就是必须满足分词结果中百分比的词,假如要求50%命中其中两个词就返回,我们可以这样)
GET /product_index/product/_search
{
  "query": {
    "match": {
      "product_name": {
        "query": "java 程序员 书 推荐",
        "minimum_should_match": "50%"
      }
    }
  }
}

 
  • multi_match用法,查询product_name和product_desc字段中,只要有:toothbrush关键字的就查询出来
GET /product_index/product/_search
{
  "query": {
    "multi_match": {
      "query": "toothbrush",
      "fields": [
        "product_name",
        "product_desc"
      ]
    }
  }
}

 
  • match_phrase 用法(短语搜索)(与match进行对比),对这个查询词不进行分词,必须完全匹配查询词才可以作为结果显示
GET /product_index/product/_search
{
  "query": {
    "match_phrase": {
      "product_name": "PHILIPS toothbrush"
    }
  }
} 
  • term用法(与 match 进行对比)(term一般用在不分词字段上的,因为它是完全匹配查询
GET /product_index/product/_search
{
  "query": {
    "term": {
      "product_name": "PHILIPS toothbrush"
    }
  }
}
 
GET /product_index/product/_search
{
  "query": {
    "constant_score": {
      "filter":{
        "term": {
          "product_name": "PHILIPS toothbrush"
        }
      }
    }
  }
}

 
  • terms用法,类似于数据库的in
GET /product_index/product/_search
{
  "query": {
    "constant_score": {
      "filter": {
        "terms": {
          "product_name": [
            "toothbrush",
            "shell"
          ]
        }
      }
    }
  }
} 
  • query和filter差异,只用query
GET /product_index/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "terms": {
            "product_name": [
              "PHILIPS",
              "toothbrush"
            ]
          }
        },
        {
          "range": {
            "price": {
              "gt": 12.00
            }
          }
        }
      ]
    }
  }
}

 
  • 只用filter, 下面语句使用了 constant_score 查询,它可以包含查询或过滤,为任意一个匹配的文档指定评分1,不需再计算评分
GET /product_index/product/_search
{
  "query": {
    "constant_score": {
      "filter": {
        "range": {
          "price": {
            "gte": 30.00
          }
        }
      }
    }
  }
}

 
  1. query 和 filter 一起使用的话,filter 会先执行
  2. 从搜索结果上看:
    • filter,只查询出搜索条件的数据,不计算相关度分数
    • query,查询出搜索条件的数据,并计算相关度分数,按照分数进行倒序排序
  3. 从性能上看:filter(性能更好,无排序),无需计算相关度分数,也就无需排序,内置的自动缓存最常使用查询结果的数据;
  4. query(性能较差,有排序),要计算相关度分数,按照分数进行倒序排序,没有缓存结果的功能
  5. filter 和 query 一起使用可以兼顾两者的特性,需要具体业务具体分析。

 

多搜索条件组合查询

bool过滤查询,可以做组合过滤查询
SELECT * FROM books WHERE (price = 35.99 OR price = 99.99) AND publish_date != "2016-02-06"
类似的,Elasticsearch也有 and, or, not这样的组合条件的查询方式,格式如下:
 {
"bool" : {
  "must" : [],
  "should" : [],
  "must_not" : [],
 }
}

# must: 条件必须满足,相当于 and
# should: 条件可以满足也可以不满足,相当于 or
# must_not: 条件不需要满足,相当于 not

  • 经常会遇到复杂查询,例如:SELECT * FROM books WHERE price = 35.99 OR ( publish_date = "2016-02-06" AND price = 99.99 )
curl -XGET 'http://localhost:9200/store/books/_search' -d '{
    "query": {
        "bool": {
            "should": [
                {
                    "term": {
                        "price": 35.99
                    }
                },
                {
                    "bool": {
                        "must": [
                            {
                                "term": {
                                    "publish_date": "2016-02-06"
                                }
                            },
                            {
                                "term": {
                                    "price": 99.99
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}' 


elasticsearch常用api:

 

1、获取ElasticSearch信息:集群名称、版本等

GET /

例:

{
    "name": "node-testing",
    "cluster_name": "car-center-cluster-testing",
    "cluster_uuid": "8DOUWUESRe6ot_uc8NxY4Q",
    "version": {
        "number": "5.6.3",
        "build_hash": "1a2f265",
        "build_date": "2017-10-06T20:33:39.012Z",
        "build_snapshot": false,
        "lucene_version": "6.6.1"
    },
    "tagline": "You Know, for Search"
} 

2、获取Elasticsearch状态:分片健康状态、所有索引、每个索引文档数量、存储大小、操作历史等

GET /_stats

例:

{
    "_shards": {
        "total": 152,
        "successful": 76,
        "failed": 0
    },
    "_all": {
        "primaries": {
            "docs": {
                "count": 8664874,
                "deleted": 867686
            },
            "store": {
                "size_in_bytes": 3954289808,
                "throttle_time_in_millis": 0
            },
            "indexing": {
                "index_total": 14492053,
                "index_time_in_millis": 6606577,
                "index_current": 0,
                "index_failed": 3192,
                "delete_total": 6,
                "delete_time_in_millis": 244,
                "delete_current": 0,
                "noop_update_total": 2879619,
                "is_throttled": false,
                "throttle_time_in_millis": 0
            },
            "get": {
                "total": 3083077,
                "time_in_millis": 813894,
                "exists_total": 2988684,
                "exists_time_in_millis": 807991,
                "missing_total": 94393,
                "missing_time_in_millis": 5903,
                "current": 0
            },
            "search": {
                "open_contexts": 0,
                "query_total": 13251297,
                "query_time_in_millis": 3704546,
                "query_current": 0,
                "fetch_total": 2627775,
                "fetch_time_in_millis": 198491,
                "fetch_current": 0,
                "scroll_total": 10,
                "scroll_time_in_millis": 2816,
                "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": 144637,
                "total_time_in_millis": 146224658,
                "total_docs": 16343754570,
                "total_size_in_bytes": 1363356272480,
                "total_stopped_time_in_millis": 0,
                "total_throttled_time_in_millis": 138,
                "total_auto_throttle_in_bytes": 1591929018
            },
            "refresh": {
                "total": 3408545,
                "total_time_in_millis": 20170562,
                "listeners": 0
            },
            "flush": {
                "total": 5636,
                "total_time_in_millis": 134159
            },
            "warmer": {
                "current": 0,
                "total": 3405779,
                "total_time_in_millis": 142188
            },
            "query_cache": {
                "memory_size_in_bytes": 4580435,
                "total_count": 2892463,
                "hit_count": 26321,
                "miss_count": 2866142,
                "cache_size": 1360,
                "cache_count": 2954,
                "evictions": 1594
            },
            "fielddata": {
                "memory_size_in_bytes": 0,
                "evictions": 0
            },
            "completion": {
                "size_in_bytes": 0
            },
            "segments": {
                "count": 270,
                "memory_in_bytes": 11230697,
                "terms_memory_in_bytes": 7450827,
                "stored_fields_memory_in_bytes": 1260368,
                "term_vectors_memory_in_bytes": 0,
                "norms_memory_in_bytes": 245248,
                "points_memory_in_bytes": 200990,
                "doc_values_memory_in_bytes": 2073264,
                "index_writer_memory_in_bytes": 416944,
                "version_map_memory_in_bytes": 107,
                "fixed_bit_set_memory_in_bytes": 964304,
                "max_unsafe_auto_id_timestamp": -1,
                "file_sizes": {}
            },
            "translog": {
                "operations": 2738203,
                "size_in_bytes": 364906674
            },
            "request_cache": {
                "memory_size_in_bytes": 0,
                "evictions": 0,
                "hit_count": 262,
                "miss_count": 258
            },
            "recovery": {
                "current_as_source": 0,
                "current_as_target": 0,
                "throttle_time_in_millis": 0
            }
        },
        "total": {
            "docs": {
                "count": 8664874,
                "deleted": 867686
            },
            "store": {
                "size_in_bytes": 3954289808,
                "throttle_time_in_millis": 0
            },
            "indexing": {
                "index_total": 14492053,
                "index_time_in_millis": 6606577,
                "index_current": 0,
                "index_failed": 3192,
                "delete_total": 6,
                "delete_time_in_millis": 244,
                "delete_current": 0,
                "noop_update_total": 2879619,
                "is_throttled": false,
                "throttle_time_in_millis": 0
            },
            "get": {
                "total": 3083077,
                "time_in_millis": 813894,
                "exists_total": 2988684,
                "exists_time_in_millis": 807991,
                "missing_total": 94393,
                "missing_time_in_millis": 5903,
                "current": 0
            },
            "search": {
                "open_contexts": 0,
                "query_total": 13251297,
                "query_time_in_millis": 3704546,
                "query_current": 0,
                "fetch_total": 2627775,
                "fetch_time_in_millis": 198491,
                "fetch_current": 0,
                "scroll_total": 10,
                "scroll_time_in_millis": 2816,
                "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": 144637,
                "total_time_in_millis": 146224658,
                "total_docs": 16343754570,
                "total_size_in_bytes": 1363356272480,
                "total_stopped_time_in_millis": 0,
                "total_throttled_time_in_millis": 138,
                "total_auto_throttle_in_bytes": 1591929018
            },
            "refresh": {
                "total": 3408545,
                "total_time_in_millis": 20170562,
                "listeners": 0
            },
            "flush": {
                "total": 5636,
                "total_time_in_millis": 134159
            },
            "warmer": {
                "current": 0,
                "total": 3405779,
                "total_time_in_millis": 142188
            },
            "query_cache": {
                "memory_size_in_bytes": 4580435,
                "total_count": 2892463,
                "hit_count": 26321,
                "miss_count": 2866142,
                "cache_size": 1360,
                "cache_count": 2954,
                "evictions": 1594
            },
            "fielddata": {
                "memory_size_in_bytes": 0,
                "evictions": 0
            },
            "completion": {
                "size_in_bytes": 0
            },
            "segments": {
                "count": 270,
                "memory_in_bytes": 11230697,
                "terms_memory_in_bytes": 7450827,
                "stored_fields_memory_in_bytes": 1260368,
                "term_vectors_memory_in_bytes": 0,
                "norms_memory_in_bytes": 245248,
                "points_memory_in_bytes": 200990,
                "doc_values_memory_in_bytes": 2073264,
                "index_writer_memory_in_bytes": 416944,
                "version_map_memory_in_bytes": 107,
                "fixed_bit_set_memory_in_bytes": 964304,
                "max_unsafe_auto_id_timestamp": -1,
                "file_sizes": {}
            },
            "translog": {
                "operations": 2738203,
                "size_in_bytes": 364906674
            },
            "request_cache": {
                "memory_size_in_bytes": 0,
                "evictions": 0,
                "hit_count": 262,
                "miss_count": 258
            },
            "recovery": {
                "current_as_source": 0,
                "current_as_target": 0,
                "throttle_time_in_millis": 0
            }
        }
    },
    "indices": {
        "test": {
            "primaries": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 0,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 2,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 0,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 2,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "axbmonitor": {
            "primaries": {
                "docs": {
                    "count": 1,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 6269,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 0,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 0,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 1,
                    "memory_in_bytes": 3136,
                    "terms_memory_in_bytes": 2474,
                    "stored_fields_memory_in_bytes": 312,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 256,
                    "points_memory_in_bytes": 2,
                    "doc_values_memory_in_bytes": 92,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 1,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 6269,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 0,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 0,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 1,
                    "memory_in_bytes": 3136,
                    "terms_memory_in_bytes": 2474,
                    "stored_fields_memory_in_bytes": 312,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 256,
                    "points_memory_in_bytes": 2,
                    "doc_values_memory_in_bytes": 92,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "inspector_work_order_index": {
            "primaries": {
                "docs": {
                    "count": 488869,
                    "deleted": 36
                },
                "store": {
                    "size_in_bytes": 62444126,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 92098,
                    "index_time_in_millis": 61664,
                    "index_current": 0,
                    "index_failed": 6,
                    "delete_total": 0,
                    "delete_time_in_millis": 0,
                    "delete_current": 0,
                    "noop_update_total": 21609,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 113716,
                    "time_in_millis": 13516,
                    "exists_total": 36551,
                    "exists_time_in_millis": 9616,
                    "missing_total": 77165,
                    "missing_time_in_millis": 3900,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 5760,
                    "query_time_in_millis": 5201,
                    "query_current": 0,
                    "fetch_total": 1634,
                    "fetch_time_in_millis": 238,
                    "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": 2428,
                    "total_time_in_millis": 1318511,
                    "total_docs": 97380126,
                    "total_size_in_bytes": 10408422349,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 23775,
                    "total_time_in_millis": 204709,
                    "listeners": 0
                },
                "flush": {
                    "total": 328,
                    "total_time_in_millis": 7139
                },
                "warmer": {
                    "current": 0,
                    "total": 23755,
                    "total_time_in_millis": 13182
                },
                "query_cache": {
                    "memory_size_in_bytes": 186156,
                    "total_count": 8179,
                    "hit_count": 1320,
                    "miss_count": 6859,
                    "cache_size": 18,
                    "cache_count": 513,
                    "evictions": 495
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 20,
                    "memory_in_bytes": 240190,
                    "terms_memory_in_bytes": 195777,
                    "stored_fields_memory_in_bytes": 14792,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 1280,
                    "points_memory_in_bytes": 4445,
                    "doc_values_memory_in_bytes": 23896,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 62032,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 11,
                    "size_in_bytes": 7915
                },
                "request_cache": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0,
                    "hit_count": 8,
                    "miss_count": 37
                },
                "recovery": {
                    "current_as_source": 0,
                    "current_as_target": 0,
                    "throttle_time_in_millis": 0
                }
            },
            "total": {
                "docs": {
                    "count": 488869,
                    "deleted": 36
                },
                "store": {
                    "size_in_bytes": 62444126,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 92098,
                    "index_time_in_millis": 61664,
                    "index_current": 0,
                    "index_failed": 6,
                    "delete_total": 0,
                    "delete_time_in_millis": 0,
                    "delete_current": 0,
                    "noop_update_total": 21609,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 113716,
                    "time_in_millis": 13516,
                    "exists_total": 36551,
                    "exists_time_in_millis": 9616,
                    "missing_total": 77165,
                    "missing_time_in_millis": 3900,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 5760,
                    "query_time_in_millis": 5201,
                    "query_current": 0,
                    "fetch_total": 1634,
                    "fetch_time_in_millis": 238,
                    "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": 2428,
                    "total_time_in_millis": 1318511,
                    "total_docs": 97380126,
                    "total_size_in_bytes": 10408422349,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 23775,
                    "total_time_in_millis": 204709,
                    "listeners": 0
                },
                "flush": {
                    "total": 328,
                    "total_time_in_millis": 7139
                },
                "warmer": {
                    "current": 0,
                    "total": 23755,
                    "total_time_in_millis": 13182
                },
                "query_cache": {
                    "memory_size_in_bytes": 186156,
                    "total_count": 8179,
                    "hit_count": 1320,
                    "miss_count": 6859,
                    "cache_size": 18,
                    "cache_count": 513,
                    "evictions": 495
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 20,
                    "memory_in_bytes": 240190,
                    "terms_memory_in_bytes": 195777,
                    "stored_fields_memory_in_bytes": 14792,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 1280,
                    "points_memory_in_bytes": 4445,
                    "doc_values_memory_in_bytes": 23896,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 62032,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 11,
                    "size_in_bytes": 7915
                },
                "request_cache": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0,
                    "hit_count": 8,
                    "miss_count": 37
                },
                "recovery": {
                    "current_as_source": 0,
                    "current_as_target": 0,
                    "throttle_time_in_millis": 0
                }
            }
        },
        "test_sink": {
            "primaries": {
                "docs": {
                    "count": 1,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 5555,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 1,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 4,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 1,
                    "memory_in_bytes": 2353,
                    "terms_memory_in_bytes": 1751,
                    "stored_fields_memory_in_bytes": 312,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 192,
                    "points_memory_in_bytes": 6,
                    "doc_values_memory_in_bytes": 92,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 1,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 5555,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 1,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 4,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 1,
                    "memory_in_bytes": 2353,
                    "terms_memory_in_bytes": 1751,
                    "stored_fields_memory_in_bytes": 312,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 192,
                    "points_memory_in_bytes": 6,
                    "doc_values_memory_in_bytes": 92,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "promise": {
            "primaries": {
                "docs": {
                    "count": 313679,
                    "deleted": 8
                },
                "store": {
                    "size_in_bytes": 85359748,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 23406,
                    "index_time_in_millis": 68369,
                    "index_current": 0,
                    "index_failed": 75,
                    "delete_total": 3,
                    "delete_time_in_millis": 122,
                    "delete_current": 0,
                    "noop_update_total": 1399,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 26803,
                    "time_in_millis": 164414,
                    "exists_total": 24611,
                    "exists_time_in_millis": 164245,
                    "missing_total": 2192,
                    "missing_time_in_millis": 169,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 2195,
                    "query_time_in_millis": 1319,
                    "query_current": 0,
                    "fetch_total": 41,
                    "fetch_time_in_millis": 3,
                    "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": 492,
                    "total_time_in_millis": 3423979,
                    "total_docs": 29303430,
                    "total_size_in_bytes": 7937933597,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 22930,
                    "total_time_in_millis": 325904,
                    "listeners": 0
                },
                "flush": {
                    "total": 1659,
                    "total_time_in_millis": 35382
                },
                "warmer": {
                    "current": 0,
                    "total": 22626,
                    "total_time_in_millis": 15771
                },
                "query_cache": {
                    "memory_size_in_bytes": 0,
                    "total_count": 9214,
                    "hit_count": 4848,
                    "miss_count": 4366,
                    "cache_size": 0,
                    "cache_count": 1099,
                    "evictions": 1099
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 23,
                    "memory_in_bytes": 434772,
                    "terms_memory_in_bytes": 319658,
                    "stored_fields_memory_in_bytes": 31480,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 4224,
                    "points_memory_in_bytes": 11166,
                    "doc_values_memory_in_bytes": 68244,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 40296,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 13,
                    "size_in_bytes": 25500
                },
                "request_cache": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0,
                    "hit_count": 254,
                    "miss_count": 216
                },
                "recovery": {
                    "current_as_source": 0,
                    "current_as_target": 0,
                    "throttle_time_in_millis": 0
                }
            },
            "total": {
                "docs": {
                    "count": 313679,
                    "deleted": 8
                },
                "store": {
                    "size_in_bytes": 85359748,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 23406,
                    "index_time_in_millis": 68369,
                    "index_current": 0,
                    "index_failed": 75,
                    "delete_total": 3,
                    "delete_time_in_millis": 122,
                    "delete_current": 0,
                    "noop_update_total": 1399,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 26803,
                    "time_in_millis": 164414,
                    "exists_total": 24611,
                    "exists_time_in_millis": 164245,
                    "missing_total": 2192,
                    "missing_time_in_millis": 169,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 2195,
                    "query_time_in_millis": 1319,
                    "query_current": 0,
                    "fetch_total": 41,
                    "fetch_time_in_millis": 3,
                    "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": 492,
                    "total_time_in_millis": 3423979,
                    "total_docs": 29303430,
                    "total_size_in_bytes": 7937933597,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 22930,
                    "total_time_in_millis": 325904,
                    "listeners": 0
                },
                "flush": {
                    "total": 1659,
                    "total_time_in_millis": 35382
                },
                "warmer": {
                    "current": 0,
                    "total": 22626,
                    "total_time_in_millis": 15771
                },
                "query_cache": {
                    "memory_size_in_bytes": 0,
                    "total_count": 9214,
                    "hit_count": 4848,
                    "miss_count": 4366,
                    "cache_size": 0,
                    "cache_count": 1099,
                    "evictions": 1099
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 23,
                    "memory_in_bytes": 434772,
                    "terms_memory_in_bytes": 319658,
                    "stored_fields_memory_in_bytes": 31480,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 4224,
                    "points_memory_in_bytes": 11166,
                    "doc_values_memory_in_bytes": 68244,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 40296,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 13,
                    "size_in_bytes": 25500
                },
                "request_cache": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0,
                    "hit_count": 254,
                    "miss_count": 216
                },
                "recovery": {
                    "current_as_source": 0,
                    "current_as_target": 0,
                    "throttle_time_in_millis": 0
                }
            }
        },
        "sandbox_debezium.rrc.cp_customer": {
            "primaries": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 1,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 2,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 1,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 2,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "owner_pay_car": {
            "primaries": {
                "docs": {
                    "count": 524911,
                    "deleted": 24297
                },
                "store": {
                    "size_in_bytes": 272674674,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 315,
                    "query_time_in_millis": 317,
                    "query_current": 0,
                    "fetch_total": 3,
                    "fetch_time_in_millis": 66,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 1,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 42,
                    "memory_in_bytes": 1729901,
                    "terms_memory_in_bytes": 1253112,
                    "stored_fields_memory_in_bytes": 75376,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 82304,
                    "points_memory_in_bytes": 27821,
                    "doc_values_memory_in_bytes": 291288,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 524911,
                    "deleted": 24297
                },
                "store": {
                    "size_in_bytes": 272674674,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 315,
                    "query_time_in_millis": 317,
                    "query_current": 0,
                    "fetch_total": 3,
                    "fetch_time_in_millis": 66,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 1,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 42,
                    "memory_in_bytes": 1729901,
                    "terms_memory_in_bytes": 1253112,
                    "stored_fields_memory_in_bytes": 75376,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 82304,
                    "points_memory_in_bytes": 27821,
                    "doc_values_memory_in_bytes": 291288,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "ownerfee": {
            "primaries": {
                "docs": {
                    "count": 4329,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 1312187,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 3870,
                    "index_time_in_millis": 2554,
                    "index_current": 0,
                    "index_failed": 7,
                    "delete_total": 0,
                    "delete_time_in_millis": 0,
                    "delete_current": 0,
                    "noop_update_total": 857,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 3717,
                    "time_in_millis": 1590,
                    "exists_total": 3578,
                    "exists_time_in_millis": 1583,
                    "missing_total": 139,
                    "missing_time_in_millis": 7,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 126370,
                    "query_time_in_millis": 18006,
                    "query_current": 0,
                    "fetch_total": 1421,
                    "fetch_time_in_millis": 1568,
                    "fetch_current": 0,
                    "scroll_total": 10,
                    "scroll_time_in_millis": 2816,
                    "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": 34,
                    "total_time_in_millis": 4273,
                    "total_docs": 32735,
                    "total_size_in_bytes": 13488784,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 1134,
                    "total_time_in_millis": 7889,
                    "listeners": 0
                },
                "flush": {
                    "total": 268,
                    "total_time_in_millis": 5450
                },
                "warmer": {
                    "current": 0,
                    "total": 1120,
                    "total_time_in_millis": 499
                },
                "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": 5,
                    "memory_in_bytes": 73499,
                    "terms_memory_in_bytes": 36379,
                    "stored_fields_memory_in_bytes": 1688,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 960,
                    "points_memory_in_bytes": 308,
                    "doc_values_memory_in_bytes": 34164,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 760,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 215
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 4329,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 1312187,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 3870,
                    "index_time_in_millis": 2554,
                    "index_current": 0,
                    "index_failed": 7,
                    "delete_total": 0,
                    "delete_time_in_millis": 0,
                    "delete_current": 0,
                    "noop_update_total": 857,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 3717,
                    "time_in_millis": 1590,
                    "exists_total": 3578,
                    "exists_time_in_millis": 1583,
                    "missing_total": 139,
                    "missing_time_in_millis": 7,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 126370,
                    "query_time_in_millis": 18006,
                    "query_current": 0,
                    "fetch_total": 1421,
                    "fetch_time_in_millis": 1568,
                    "fetch_current": 0,
                    "scroll_total": 10,
                    "scroll_time_in_millis": 2816,
                    "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": 34,
                    "total_time_in_millis": 4273,
                    "total_docs": 32735,
                    "total_size_in_bytes": 13488784,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 1134,
                    "total_time_in_millis": 7889,
                    "listeners": 0
                },
                "flush": {
                    "total": 268,
                    "total_time_in_millis": 5450
                },
                "warmer": {
                    "current": 0,
                    "total": 1120,
                    "total_time_in_millis": 499
                },
                "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": 5,
                    "memory_in_bytes": 73499,
                    "terms_memory_in_bytes": 36379,
                    "stored_fields_memory_in_bytes": 1688,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 960,
                    "points_memory_in_bytes": 308,
                    "doc_values_memory_in_bytes": 34164,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 760,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 215
                },
                "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
                }
            }
        },
        ".kibana": {
            "primaries": {
                "docs": {
                    "count": 2,
                    "deleted": 1
                },
                "store": {
                    "size_in_bytes": 11506,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 64,
                    "query_time_in_millis": 12,
                    "query_current": 0,
                    "fetch_total": 64,
                    "fetch_time_in_millis": 33,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 20971520
                },
                "refresh": {
                    "total": 3,
                    "total_time_in_millis": 5,
                    "listeners": 0
                },
                "flush": {
                    "total": 1,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 2,
                    "total_time_in_millis": 7
                },
                "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": 2,
                    "memory_in_bytes": 6107,
                    "terms_memory_in_bytes": 4707,
                    "stored_fields_memory_in_bytes": 624,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 448,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 328,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 172
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 2,
                    "deleted": 1
                },
                "store": {
                    "size_in_bytes": 11506,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 64,
                    "query_time_in_millis": 12,
                    "query_current": 0,
                    "fetch_total": 64,
                    "fetch_time_in_millis": 33,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 20971520
                },
                "refresh": {
                    "total": 3,
                    "total_time_in_millis": 5,
                    "listeners": 0
                },
                "flush": {
                    "total": 1,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 2,
                    "total_time_in_millis": 7
                },
                "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": 2,
                    "memory_in_bytes": 6107,
                    "terms_memory_in_bytes": 4707,
                    "stored_fields_memory_in_bytes": 624,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 448,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 328,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 172
                },
                "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
                }
            }
        },
        "car": {
            "primaries": {
                "docs": {
                    "count": 6073126,
                    "deleted": 785026
                },
                "store": {
                    "size_in_bytes": 2921464729,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 37093,
                    "index_time_in_millis": 117612,
                    "index_current": 0,
                    "index_failed": 982,
                    "delete_total": 3,
                    "delete_time_in_millis": 122,
                    "delete_current": 0,
                    "noop_update_total": 7421,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 52037,
                    "time_in_millis": 432609,
                    "exists_total": 46084,
                    "exists_time_in_millis": 431304,
                    "missing_total": 5953,
                    "missing_time_in_millis": 1305,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 20630,
                    "query_time_in_millis": 60654,
                    "query_current": 0,
                    "fetch_total": 6762,
                    "fetch_time_in_millis": 3360,
                    "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": 754,
                    "total_time_in_millis": 297417,
                    "total_docs": 915883,
                    "total_size_in_bytes": 1397698440,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 138,
                    "total_auto_throttle_in_bytes": 102951098
                },
                "refresh": {
                    "total": 29627,
                    "total_time_in_millis": 630724,
                    "listeners": 0
                },
                "flush": {
                    "total": 1686,
                    "total_time_in_millis": 48024
                },
                "warmer": {
                    "current": 0,
                    "total": 28312,
                    "total_time_in_millis": 28403
                },
                "query_cache": {
                    "memory_size_in_bytes": 4394279,
                    "total_count": 258596,
                    "hit_count": 20153,
                    "miss_count": 238443,
                    "cache_size": 1342,
                    "cache_count": 1342,
                    "evictions": 0
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 88,
                    "memory_in_bytes": 5108098,
                    "terms_memory_in_bytes": 2860594,
                    "stored_fields_memory_in_bytes": 971288,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 16960,
                    "points_memory_in_bytes": 84560,
                    "doc_values_memory_in_bytes": 1174696,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 861216,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 23,
                    "size_in_bytes": 197427
                },
                "request_cache": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0,
                    "hit_count": 0,
                    "miss_count": 5
                },
                "recovery": {
                    "current_as_source": 0,
                    "current_as_target": 0,
                    "throttle_time_in_millis": 0
                }
            },
            "total": {
                "docs": {
                    "count": 6073126,
                    "deleted": 785026
                },
                "store": {
                    "size_in_bytes": 2921464729,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 37093,
                    "index_time_in_millis": 117612,
                    "index_current": 0,
                    "index_failed": 982,
                    "delete_total": 3,
                    "delete_time_in_millis": 122,
                    "delete_current": 0,
                    "noop_update_total": 7421,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 52037,
                    "time_in_millis": 432609,
                    "exists_total": 46084,
                    "exists_time_in_millis": 431304,
                    "missing_total": 5953,
                    "missing_time_in_millis": 1305,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 20630,
                    "query_time_in_millis": 60654,
                    "query_current": 0,
                    "fetch_total": 6762,
                    "fetch_time_in_millis": 3360,
                    "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": 754,
                    "total_time_in_millis": 297417,
                    "total_docs": 915883,
                    "total_size_in_bytes": 1397698440,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 138,
                    "total_auto_throttle_in_bytes": 102951098
                },
                "refresh": {
                    "total": 29627,
                    "total_time_in_millis": 630724,
                    "listeners": 0
                },
                "flush": {
                    "total": 1686,
                    "total_time_in_millis": 48024
                },
                "warmer": {
                    "current": 0,
                    "total": 28312,
                    "total_time_in_millis": 28403
                },
                "query_cache": {
                    "memory_size_in_bytes": 4394279,
                    "total_count": 258596,
                    "hit_count": 20153,
                    "miss_count": 238443,
                    "cache_size": 1342,
                    "cache_count": 1342,
                    "evictions": 0
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 88,
                    "memory_in_bytes": 5108098,
                    "terms_memory_in_bytes": 2860594,
                    "stored_fields_memory_in_bytes": 971288,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 16960,
                    "points_memory_in_bytes": 84560,
                    "doc_values_memory_in_bytes": 1174696,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 861216,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 23,
                    "size_in_bytes": 197427
                },
                "request_cache": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0,
                    "hit_count": 0,
                    "miss_count": 5
                },
                "recovery": {
                    "current_as_source": 0,
                    "current_as_target": 0,
                    "throttle_time_in_millis": 0
                }
            }
        },
        "my_index": {
            "primaries": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 360,
                    "query_time_in_millis": 3,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 0,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 360,
                    "query_time_in_millis": 3,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 0,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "owner_pay_car_list": {
            "primaries": {
                "docs": {
                    "count": 524919,
                    "deleted": 26965
                },
                "store": {
                    "size_in_bytes": 282104889,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 315,
                    "query_time_in_millis": 345,
                    "query_current": 0,
                    "fetch_total": 1,
                    "fetch_time_in_millis": 29,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 6,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 36,
                    "memory_in_bytes": 1659386,
                    "terms_memory_in_bytes": 1250494,
                    "stored_fields_memory_in_bytes": 71480,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 74560,
                    "points_memory_in_bytes": 28084,
                    "doc_values_memory_in_bytes": 234768,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 524919,
                    "deleted": 26965
                },
                "store": {
                    "size_in_bytes": 282104889,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 315,
                    "query_time_in_millis": 345,
                    "query_current": 0,
                    "fetch_total": 1,
                    "fetch_time_in_millis": 29,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 6,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 36,
                    "memory_in_bytes": 1659386,
                    "terms_memory_in_bytes": 1250494,
                    "stored_fields_memory_in_bytes": 71480,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 74560,
                    "points_memory_in_bytes": 28084,
                    "doc_values_memory_in_bytes": 234768,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "sandbox_debezium.rrc.cp_used_car": {
            "primaries": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 2,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 5,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 0,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 955,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 2,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 5,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 0,
                    "memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "test_index": {
            "primaries": {
                "docs": {
                    "count": 1,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 4410,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 0,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 0,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 1,
                    "memory_in_bytes": 2042,
                    "terms_memory_in_bytes": 1510,
                    "stored_fields_memory_in_bytes": 312,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 128,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 92,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 1,
                    "deleted": 0
                },
                "store": {
                    "size_in_bytes": 4410,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 0,
                    "index_time_in_millis": 0,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 310,
                    "query_time_in_millis": 0,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 0,
                    "total_time_in_millis": 0,
                    "total_docs": 0,
                    "total_size_in_bytes": 0,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 15,
                    "total_time_in_millis": 0,
                    "listeners": 0
                },
                "flush": {
                    "total": 5,
                    "total_time_in_millis": 0
                },
                "warmer": {
                    "current": 0,
                    "total": 10,
                    "total_time_in_millis": 0
                },
                "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": 1,
                    "memory_in_bytes": 2042,
                    "terms_memory_in_bytes": 1510,
                    "stored_fields_memory_in_bytes": 312,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 128,
                    "points_memory_in_bytes": 0,
                    "doc_values_memory_in_bytes": 92,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 0,
                    "size_in_bytes": 860
                },
                "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
                }
            }
        },
        "owner_pay_car1": {
            "primaries": {
                "docs": {
                    "count": 126891,
                    "deleted": 31304
                },
                "store": {
                    "size_in_bytes": 228272974,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 36337,
                    "index_time_in_millis": 67098,
                    "index_current": 0,
                    "index_failed": 2122,
                    "delete_total": 0,
                    "delete_time_in_millis": 0,
                    "delete_current": 0,
                    "noop_update_total": 2848333,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 2886804,
                    "time_in_millis": 201765,
                    "exists_total": 2877860,
                    "exists_time_in_millis": 201243,
                    "missing_total": 8944,
                    "missing_time_in_millis": 522,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 13093120,
                    "query_time_in_millis": 3618372,
                    "query_current": 0,
                    "fetch_total": 2617849,
                    "fetch_time_in_millis": 193194,
                    "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": 459,
                    "total_time_in_millis": 307252,
                    "total_docs": 875560,
                    "total_size_in_bytes": 1319602844,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 20191,
                    "total_time_in_millis": 268584,
                    "listeners": 0
                },
                "flush": {
                    "total": 1618,
                    "total_time_in_millis": 36540
                },
                "warmer": {
                    "current": 0,
                    "total": 19129,
                    "total_time_in_millis": 1020
                },
                "query_cache": {
                    "memory_size_in_bytes": 0,
                    "total_count": 2616474,
                    "hit_count": 0,
                    "miss_count": 2616474,
                    "cache_size": 0,
                    "cache_count": 0,
                    "evictions": 0
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 27,
                    "memory_in_bytes": 1521635,
                    "terms_memory_in_bytes": 1112140,
                    "stored_fields_memory_in_bytes": 75240,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 62400,
                    "points_memory_in_bytes": 32579,
                    "doc_values_memory_in_bytes": 239276,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 13,
                    "size_in_bytes": 25720
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 126891,
                    "deleted": 31304
                },
                "store": {
                    "size_in_bytes": 228272974,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 36337,
                    "index_time_in_millis": 67098,
                    "index_current": 0,
                    "index_failed": 2122,
                    "delete_total": 0,
                    "delete_time_in_millis": 0,
                    "delete_current": 0,
                    "noop_update_total": 2848333,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 2886804,
                    "time_in_millis": 201765,
                    "exists_total": 2877860,
                    "exists_time_in_millis": 201243,
                    "missing_total": 8944,
                    "missing_time_in_millis": 522,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 13093120,
                    "query_time_in_millis": 3618372,
                    "query_current": 0,
                    "fetch_total": 2617849,
                    "fetch_time_in_millis": 193194,
                    "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": 459,
                    "total_time_in_millis": 307252,
                    "total_docs": 875560,
                    "total_size_in_bytes": 1319602844,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 20191,
                    "total_time_in_millis": 268584,
                    "listeners": 0
                },
                "flush": {
                    "total": 1618,
                    "total_time_in_millis": 36540
                },
                "warmer": {
                    "current": 0,
                    "total": 19129,
                    "total_time_in_millis": 1020
                },
                "query_cache": {
                    "memory_size_in_bytes": 0,
                    "total_count": 2616474,
                    "hit_count": 0,
                    "miss_count": 2616474,
                    "cache_size": 0,
                    "cache_count": 0,
                    "evictions": 0
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 27,
                    "memory_in_bytes": 1521635,
                    "terms_memory_in_bytes": 1112140,
                    "stored_fields_memory_in_bytes": 75240,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 62400,
                    "points_memory_in_bytes": 32579,
                    "doc_values_memory_in_bytes": 239276,
                    "index_writer_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 13,
                    "size_in_bytes": 25720
                },
                "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
                }
            }
        },
        "statistics": {
            "primaries": {
                "docs": {
                    "count": 608145,
                    "deleted": 49
                },
                "store": {
                    "size_in_bytes": 100624921,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 14299249,
                    "index_time_in_millis": 6289280,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 308,
                    "query_time_in_millis": 313,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 140470,
                    "total_time_in_millis": 140873226,
                    "total_docs": 16215246836,
                    "total_size_in_bytes": 1342279126466,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 3310750,
                    "total_time_in_millis": 18732727,
                    "listeners": 0
                },
                "flush": {
                    "total": 31,
                    "total_time_in_millis": 1624
                },
                "warmer": {
                    "current": 0,
                    "total": 3310745,
                    "total_time_in_millis": 83306
                },
                "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": 24,
                    "memory_in_bytes": 449578,
                    "terms_memory_in_bytes": 412231,
                    "stored_fields_memory_in_bytes": 17464,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 1536,
                    "points_memory_in_bytes": 12019,
                    "doc_values_memory_in_bytes": 6328,
                    "index_writer_memory_in_bytes": 416944,
                    "version_map_memory_in_bytes": 107,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 2738143,
                    "size_in_bytes": 364641985
                },
                "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
                }
            },
            "total": {
                "docs": {
                    "count": 608145,
                    "deleted": 49
                },
                "store": {
                    "size_in_bytes": 100624921,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 14299249,
                    "index_time_in_millis": 6289280,
                    "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": 0,
                    "time_in_millis": 0,
                    "exists_total": 0,
                    "exists_time_in_millis": 0,
                    "missing_total": 0,
                    "missing_time_in_millis": 0,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 308,
                    "query_time_in_millis": 313,
                    "query_current": 0,
                    "fetch_total": 0,
                    "fetch_time_in_millis": 0,
                    "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": 140470,
                    "total_time_in_millis": 140873226,
                    "total_docs": 16215246836,
                    "total_size_in_bytes": 1342279126466,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 0,
                    "total_auto_throttle_in_bytes": 104857600
                },
                "refresh": {
                    "total": 3310750,
                    "total_time_in_millis": 18732727,
                    "listeners": 0
                },
                "flush": {
                    "total": 31,
                    "total_time_in_millis": 1624
                },
                "warmer": {
                    "current": 0,
                    "total": 3310745,
                    "total_time_in_millis": 83306
                },
                "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": 24,
                    "memory_in_bytes": 449578,
                    "terms_memory_in_bytes": 412231,
                    "stored_fields_memory_in_bytes": 17464,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 1536,
                    "points_memory_in_bytes": 12019,
                    "doc_values_memory_in_bytes": 6328,
                    "index_writer_memory_in_bytes": 416944,
                    "version_map_memory_in_bytes": 107,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 2738143,
                    "size_in_bytes": 364641985
                },
                "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
                }
            }
        }
    }
}

3、获取节点状态:JVM、GC、进程线程等信息

GET /_nodes/stats

例:

{
    "_nodes": {
        "total": 1,
        "successful": 1,
        "failed": 0
    },
    "cluster_name": "car-center-cluster-testing",
    "nodes": {
        "8CtPz42uQAab70PejJ3gbQ": {
            "timestamp": 1548748993537,
            "name": "node-testing",
            "transport_address": "10.66.38.199:9300",
            "host": "10.66.38.199",
            "ip": "10.66.38.199:9300",
            "roles": [
                "master",
                "data",
                "ingest"
            ],
            "indices": {
                "docs": {
                    "count": 8664851,
                    "deleted": 867693
                },
                "store": {
                    "size_in_bytes": 3958340653,
                    "throttle_time_in_millis": 0
                },
                "indexing": {
                    "index_total": 15890312,
                    "index_time_in_millis": 7369455,
                    "index_current": 0,
                    "index_failed": 4094,
                    "delete_total": 6,
                    "delete_time_in_millis": 244,
                    "delete_current": 0,
                    "noop_update_total": 3375108,
                    "is_throttled": false,
                    "throttle_time_in_millis": 0
                },
                "get": {
                    "total": 5066832,
                    "time_in_millis": 1084971,
                    "exists_total": 3905058,
                    "exists_time_in_millis": 1028359,
                    "missing_total": 1161774,
                    "missing_time_in_millis": 56612,
                    "current": 0
                },
                "search": {
                    "open_contexts": 0,
                    "query_total": 18268267,
                    "query_time_in_millis": 4041373,
                    "query_current": 0,
                    "fetch_total": 3632604,
                    "fetch_time_in_millis": 268812,
                    "fetch_current": 0,
                    "scroll_total": 10,
                    "scroll_time_in_millis": 2816,
                    "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": 172717,
                    "total_time_in_millis": 190927890,
                    "total_docs": 18486733897,
                    "total_size_in_bytes": 1620312602215,
                    "total_stopped_time_in_millis": 0,
                    "total_throttled_time_in_millis": 138,
                    "total_auto_throttle_in_bytes": 5052229818
                },
                "refresh": {
                    "total": 3665744,
                    "total_time_in_millis": 22992057,
                    "listeners": 0
                },
                "flush": {
                    "total": 6406,
                    "total_time_in_millis": 150730
                },
                "warmer": {
                    "current": 0,
                    "total": 3405361,
                    "total_time_in_millis": 142160
                },
                "query_cache": {
                    "memory_size_in_bytes": 4580435,
                    "total_count": 2892461,
                    "hit_count": 26321,
                    "miss_count": 2866140,
                    "cache_size": 1360,
                    "cache_count": 2954,
                    "evictions": 1594
                },
                "fielddata": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0
                },
                "completion": {
                    "size_in_bytes": 0
                },
                "segments": {
                    "count": 269,
                    "memory_in_bytes": 11171637,
                    "terms_memory_in_bytes": 7395254,
                    "stored_fields_memory_in_bytes": 1260056,
                    "term_vectors_memory_in_bytes": 0,
                    "norms_memory_in_bytes": 242944,
                    "points_memory_in_bytes": 200651,
                    "doc_values_memory_in_bytes": 2072732,
                    "index_writer_memory_in_bytes": 417096,
                    "version_map_memory_in_bytes": 107,
                    "fixed_bit_set_memory_in_bytes": 964112,
                    "max_unsafe_auto_id_timestamp": -1,
                    "file_sizes": {}
                },
                "translog": {
                    "operations": 2736611,
                    "size_in_bytes": 364664216
                },
                "request_cache": {
                    "memory_size_in_bytes": 0,
                    "evictions": 0,
                    "hit_count": 262,
                    "miss_count": 258
                },
                "recovery": {
                    "current_as_source": 0,
                    "current_as_target": 0,
                    "throttle_time_in_millis": 0
                }
            },
            "os": {
                "timestamp": 1548748993625,
                "cpu": {
                    "percent": 6,
                    "load_average": {
                        "1m": 0.09,
                        "5m": 0.11,
                        "15m": 0.09
                    }
                },
                "mem": {
                    "total_in_bytes": 8255123456,
                    "free_in_bytes": 241594368,
                    "used_in_bytes": 8013529088,
                    "free_percent": 3,
                    "used_percent": 97
                },
                "swap": {
                    "total_in_bytes": 0,
                    "free_in_bytes": 0,
                    "used_in_bytes": 0
                }
            },
            "process": {
                "timestamp": 1548748993625,
                "open_file_descriptors": 576,
                "max_file_descriptors": 131072,
                "cpu": {
                    "percent": 4,
                    "total_in_millis": 237768860
                },
                "mem": {
                    "total_virtual_in_bytes": 11003351040
                }
            },
            "jvm": {
                "timestamp": 1548748993626,
                "uptime_in_millis": 2248930681,
                "mem": {
                    "heap_used_in_bytes": 1259544232,
                    "heap_used_percent": 29,
                    "heap_committed_in_bytes": 4277534720,
                    "heap_max_in_bytes": 4277534720,
                    "non_heap_used_in_bytes": 139428016,
                    "non_heap_committed_in_bytes": 146370560,
                    "pools": {
                        "young": {
                            "used_in_bytes": 109290880,
                            "max_in_bytes": 139591680,
                            "peak_used_in_bytes": 139591680,
                            "peak_max_in_bytes": 139591680
                        },
                        "survivor": {
                            "used_in_bytes": 3979776,
                            "max_in_bytes": 17432576,
                            "peak_used_in_bytes": 17432576,
                            "peak_max_in_bytes": 17432576
                        },
                        "old": {
                            "used_in_bytes": 1146319120,
                            "max_in_bytes": 4120510464,
                            "peak_used_in_bytes": 3167587288,
                            "peak_max_in_bytes": 4120510464
                        }
                    }
                },
                "threads": {
                    "count": 41,
                    "peak_count": 57
                },
                "gc": {
                    "collectors": {
                        "young": {
                            "collection_count": 459093,
                            "collection_time_in_millis": 8348105
                        },
                        "old": {
                            "collection_count": 52,
                            "collection_time_in_millis": 6567
                        }
                    }
                },
                "buffer_pools": {
                    "direct": {
                        "count": 102,
                        "used_in_bytes": 68346320,
                        "total_capacity_in_bytes": 68346319
                    },
                    "mapped": {
                        "count": 665,
                        "used_in_bytes": 3885061561,
                        "total_capacity_in_bytes": 3885061561
                    }
                },
                "classes": {
                    "current_loaded_count": 12386,
                    "total_loaded_count": 12492,
                    "total_unloaded_count": 106
                }
            },
            "thread_pool": {
                "bulk": {
                    "threads": 2,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 2,
                    "completed": 16561733
                },
                "fetch_shard_started": {
                    "threads": 1,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 4,
                    "completed": 71
                },
                "fetch_shard_store": {
                    "threads": 0,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 0,
                    "completed": 0
                },
                "flush": {
                    "threads": 1,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 1,
                    "completed": 12811
                },
                "force_merge": {
                    "threads": 0,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 0,
                    "completed": 0
                },
                "generic": {
                    "threads": 4,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 5,
                    "completed": 225184
                },
                "get": {
                    "threads": 2,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 2,
                    "completed": 9322
                },
                "index": {
                    "threads": 2,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 2,
                    "completed": 72299
                },
                "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": 299885
                },
                "refresh": {
                    "threads": 1,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 1,
                    "completed": 35793452
                },
                "search": {
                    "threads": 4,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 4,
                    "completed": 25560196
                },
                "snapshot": {
                    "threads": 0,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 0,
                    "completed": 0
                },
                "warmer": {
                    "threads": 1,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 1,
                    "completed": 2365844
                }
            },
            "fs": {
                "timestamp": 1548748993626,
                "total": {
                    "total_in_bytes": 528445005824,
                    "free_in_bytes": 518570262528,
                    "available_in_bytes": 491726843904,
                    "spins": "true"
                },
                "data": [
                    {
                        "path": "/home/work/es-storage/data/nodes/0",
                        "mount": "/ (/dev/vda1)",
                        "type": "ext4",
                        "total_in_bytes": 528445005824,
                        "free_in_bytes": 518570262528,
                        "available_in_bytes": 491726843904,
                        "spins": "true"
                    }
                ],
                "io_stats": {
                    "devices": [
                        {
                            "device_name": "vda1",
                            "operations": 73510875,
                            "read_operations": 66070,
                            "write_operations": 73444805,
                            "read_kilobytes": 1591744,
                            "write_kilobytes": 1984149684
                        }
                    ],
                    "total": {
                        "operations": 73510875,
                        "read_operations": 66070,
                        "write_operations": 73444805,
                        "read_kilobytes": 1591744,
                        "write_kilobytes": 1984149684
                    }
                }
            },
            "transport": {
                "server_open": 143,
                "rx_count": 28687641,
                "rx_size_in_bytes": 7775949255,
                "tx_count": 28673899,
                "tx_size_in_bytes": 9257911502
            },
            "http": {
                "current_open": 4,
                "total_opened": 1245
            },
            "breakers": {
                "request": {
                    "limit_size_in_bytes": 2566520832,
                    "limit_size": "2.3gb",
                    "estimated_size_in_bytes": 0,
                    "estimated_size": "0b",
                    "overhead": 1,
                    "tripped": 0
                },
                "fielddata": {
                    "limit_size_in_bytes": 2566520832,
                    "limit_size": "2.3gb",
                    "estimated_size_in_bytes": 0,
                    "estimated_size": "0b",
                    "overhead": 1.03,
                    "tripped": 0
                },
                "in_flight_requests": {
                    "limit_size_in_bytes": 4277534720,
                    "limit_size": "3.9gb",
                    "estimated_size_in_bytes": 0,
                    "estimated_size": "0b",
                    "overhead": 1,
                    "tripped": 0
                },
                "parent": {
                    "limit_size_in_bytes": 2994274304,
                    "limit_size": "2.7gb",
                    "estimated_size_in_bytes": 0,
                    "estimated_size": "0b",
                    "overhead": 1,
                    "tripped": 0
                }
            },
            "script": {
                "compilations": 4,
                "cache_evictions": 0
            },
            "discovery": {
                "cluster_state_queue": {
                    "total": 0,
                    "pending": 0,
                    "committed": 0
                }
            },
            "ingest": {
                "total": {
                    "count": 0,
                    "time_in_millis": 0,
                    "current": 0,
                    "failed": 0
                },
                "pipelines": {}
            }
        }
    }
}

4、获取集群节点:节点主从关系

GET /_nodes

例:

{
    "_nodes": {
        "total": 1,
        "successful": 1,
        "failed": 0
    },
    "cluster_name": "car-center-cluster-testing",
    "nodes": {
        "8CtPz42uQAab70PejJ3gbQ": {
            "name": "node-testing",
            "transport_address": "10.66.38.199:9300",
            "host": "10.66.38.199",
            "ip": "10.66.38.199",
            "version": "5.6.3",
            "build_hash": "1a2f265",
            "total_indexing_buffer": 427753472,
            "roles": [
                "master",
                "data",
                "ingest"
            ],
            "settings": {
                "cluster": {
                    "name": "car-center-cluster-testing"
                },
                "node": {
                    "name": "node-testing"
                },
                "path": {
                    "data": [
                        "/home/work/es-storage/data"
                    ],
                    "logs": "/home/work/es-storage/logs",
                    "home": "/home/work/elasticsearch-5.6.3"
                },
                "discovery": {
                    "zen": {
                        "minimum_master_nodes": "1",
                        "ping": {
                            "unicast": {
                                "hosts": [
                                    "10.66.38.199"
                                ]
                            }
                        }
                    }
                },
                "action": {
                    "destructive_requires_name": "true"
                },
                "client": {
                    "type": "node"
                },
                "http": {
                    "type": {
                        "default": "netty4"
                    },
                    "port": "9200",
                    "cors": {
                        "allow-origin": "*",
                        "enabled": "true"
                    }
                },
                "bootstrap": {
                    "memory_lock": "false",
                    "system_call_filter": "false"
                },
                "transport": {
                    "type": {
                        "default": "netty4"
                    }
                },
                "gateway": {
                    "recover_after_nodes": "1"
                },
                "network": {
                    "host": "10.66.38.199"
                }
            },
            "os": {
                "refresh_interval_in_millis": 1000,
                "name": "Linux",
                "arch": "amd64",
                "version": "2.6.32-431.23.3.el6.x86_64",
                "available_processors": 2,
                "allocated_processors": 2
            },
            "process": {
                "refresh_interval_in_millis": 1000,
                "id": 7093,
                "mlockall": false
            },
            "jvm": {
                "pid": 7093,
                "version": "1.8.0_74",
                "vm_name": "Java HotSpot(TM) 64-Bit Server VM",
                "vm_version": "25.74-b02",
                "vm_vendor": "Oracle Corporation",
                "start_time_in_millis": 1546500064207,
                "mem": {
                    "heap_init_in_bytes": 4294967296,
                    "heap_max_in_bytes": 4277534720,
                    "non_heap_init_in_bytes": 2555904,
                    "non_heap_max_in_bytes": 0,
                    "direct_max_in_bytes": 4277534720
                },
                "gc_collectors": [
                    "ParNew",
                    "ConcurrentMarkSweep"
                ],
                "memory_pools": [
                    "Code Cache",
                    "Metaspace",
                    "Compressed Class Space",
                    "Par Eden Space",
                    "Par Survivor Space",
                    "CMS Old Gen"
                ],
                "using_compressed_ordinary_object_pointers": "true",
                "input_arguments": [
                    "-Xms4g",
                    "-Xmx4g",
                    "-XX:+UseConcMarkSweepGC",
                    "-XX:CMSInitiatingOccupancyFraction=75",
                    "-XX:+UseCMSInitiatingOccupancyOnly",
                    "-XX:+AlwaysPreTouch",
                    "-Xss1m",
                    "-Djava.awt.headless=true",
                    "-Dfile.encoding=UTF-8",
                    "-Djna.nosys=true",
                    "-Djdk.io.permissionsUseCanonicalPath=true",
                    "-Dio.netty.noUnsafe=true",
                    "-Dio.netty.noKeySetOptimization=true",
                    "-Dio.netty.recycler.maxCapacityPerThread=0",
                    "-Dlog4j.shutdownHookEnabled=false",
                    "-Dlog4j2.disable.jmx=true",
                    "-Dlog4j.skipJansi=true",
                    "-XX:+HeapDumpOnOutOfMemoryError",
                    "-Des.path.home=/home/work/elasticsearch-5.6.3"
                ]
            },
            "thread_pool": {
                "force_merge": {
                    "type": "fixed",
                    "min": 1,
                    "max": 1,
                    "queue_size": -1
                },
                "fetch_shard_started": {
                    "type": "scaling",
                    "min": 1,
                    "max": 4,
                    "keep_alive": "5m",
                    "queue_size": -1
                },
                "listener": {
                    "type": "fixed",
                    "min": 1,
                    "max": 1,
                    "queue_size": -1
                },
                "index": {
                    "type": "fixed",
                    "min": 2,
                    "max": 2,
                    "queue_size": 200
                },
                "refresh": {
                    "type": "scaling",
                    "min": 1,
                    "max": 1,
                    "keep_alive": "5m",
                    "queue_size": -1
                },
                "generic": {
                    "type": "scaling",
                    "min": 4,
                    "max": 128,
                    "keep_alive": "30s",
                    "queue_size": -1
                },
                "warmer": {
                    "type": "scaling",
                    "min": 1,
                    "max": 1,
                    "keep_alive": "5m",
                    "queue_size": -1
                },
                "search": {
                    "type": "fixed",
                    "min": 4,
                    "max": 4,
                    "queue_size": 1000
                },
                "flush": {
                    "type": "scaling",
                    "min": 1,
                    "max": 1,
                    "keep_alive": "5m",
                    "queue_size": -1
                },
                "fetch_shard_store": {
                    "type": "scaling",
                    "min": 1,
                    "max": 4,
                    "keep_alive": "5m",
                    "queue_size": -1
                },
                "management": {
                    "type": "scaling",
                    "min": 1,
                    "max": 5,
                    "keep_alive": "5m",
                    "queue_size": -1
                },
                "get": {
                    "type": "fixed",
                    "min": 2,
                    "max": 2,
                    "queue_size": 1000
                },
                "bulk": {
                    "type": "fixed",
                    "min": 2,
                    "max": 2,
                    "queue_size": 200
                },
                "snapshot": {
                    "type": "scaling",
                    "min": 1,
                    "max": 1,
                    "keep_alive": "5m",
                    "queue_size": -1
                }
            },
            "transport": {
                "bound_address": [
                    "10.66.38.199:9300"
                ],
                "publish_address": "10.66.38.199:9300",
                "profiles": {}
            },
            "http": {
                "bound_address": [
                    "10.66.38.199:9200"
                ],
                "publish_address": "10.66.38.199:9200",
                "max_content_length_in_bytes": 104857600
            },
            "plugins": [
                {
                    "name": "analysis-ik",
                    "version": "5.6.3",
                    "description": "IK Analyzer for Elasticsearch",
                    "classname": "org.elasticsearch.plugin.analysis.ik.AnalysisIkPlugin",
                    "has_native_controller": false
                }
            ],
            "modules": [
                {
                    "name": "aggs-matrix-stats",
                    "version": "5.6.3",
                    "description": "Adds aggregations whose input are a list of numeric fields and output includes a matrix.",
                    "classname": "org.elasticsearch.search.aggregations.matrix.MatrixAggregationPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "ingest-common",
                    "version": "5.6.3",
                    "description": "Module for ingest processors that do not require additional security permissions or have large dependencies and resources",
                    "classname": "org.elasticsearch.ingest.common.IngestCommonPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-expression",
                    "version": "5.6.3",
                    "description": "Lucene expressions integration for Elasticsearch",
                    "classname": "org.elasticsearch.script.expression.ExpressionPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-groovy",
                    "version": "5.6.3",
                    "description": "Groovy scripting integration for Elasticsearch",
                    "classname": "org.elasticsearch.script.groovy.GroovyPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-mustache",
                    "version": "5.6.3",
                    "description": "Mustache scripting integration for Elasticsearch",
                    "classname": "org.elasticsearch.script.mustache.MustachePlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-painless",
                    "version": "5.6.3",
                    "description": "An easy, safe and fast scripting language for Elasticsearch",
                    "classname": "org.elasticsearch.painless.PainlessPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "parent-join",
                    "version": "5.6.3",
                    "description": "This module adds the support parent-child queries and aggregations",
                    "classname": "org.elasticsearch.join.ParentJoinPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "percolator",
                    "version": "5.6.3",
                    "description": "Percolator module adds capability to index queries and query these queries by specifying documents",
                    "classname": "org.elasticsearch.percolator.PercolatorPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "reindex",
                    "version": "5.6.3",
                    "description": "The Reindex module adds APIs to reindex from one index to another or update documents in place.",
                    "classname": "org.elasticsearch.index.reindex.ReindexPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "transport-netty3",
                    "version": "5.6.3",
                    "description": "Netty 3 based transport implementation",
                    "classname": "org.elasticsearch.transport.Netty3Plugin",
                    "has_native_controller": false
                },
                {
                    "name": "transport-netty4",
                    "version": "5.6.3",
                    "description": "Netty 4 based transport implementation",
                    "classname": "org.elasticsearch.transport.Netty4Plugin",
                    "has_native_controller": false
                }
            ],
            "ingest": {
                "processors": [
                    {
                        "type": "append"
                    },
                    {
                        "type": "convert"
                    },
                    {
                        "type": "date"
                    },
                    {
                        "type": "date_index_name"
                    },
                    {
                        "type": "dot_expander"
                    },
                    {
                        "type": "fail"
                    },
                    {
                        "type": "foreach"
                    },
                    {
                        "type": "grok"
                    },
                    {
                        "type": "gsub"
                    },
                    {
                        "type": "join"
                    },
                    {
                        "type": "json"
                    },
                    {
                        "type": "kv"
                    },
                    {
                        "type": "lowercase"
                    },
                    {
                        "type": "remove"
                    },
                    {
                        "type": "rename"
                    },
                    {
                        "type": "script"
                    },
                    {
                        "type": "set"
                    },
                    {
                        "type": "sort"
                    },
                    {
                        "type": "split"
                    },
                    {
                        "type": "trim"
                    },
                    {
                        "type": "uppercase"
                    }
                ]
            }
        }
    }
}

5、获取插件信息

GET /_nodes/plugins

例:

{
    "_nodes": {
        "total": 1,
        "successful": 1,
        "failed": 0
    },
    "cluster_name": "car-center-cluster-testing",
    "nodes": {
        "8CtPz42uQAab70PejJ3gbQ": {
            "name": "node-testing",
            "transport_address": "10.66.38.199:9300",
            "host": "10.66.38.199",
            "ip": "10.66.38.199",
            "version": "5.6.3",
            "build_hash": "1a2f265",
            "roles": [
                "master",
                "data",
                "ingest"
            ],
            "plugins": [
                {
                    "name": "analysis-ik",
                    "version": "5.6.3",
                    "description": "IK Analyzer for Elasticsearch",
                    "classname": "org.elasticsearch.plugin.analysis.ik.AnalysisIkPlugin",
                    "has_native_controller": false
                }
            ],
            "modules": [
                {
                    "name": "aggs-matrix-stats",
                    "version": "5.6.3",
                    "description": "Adds aggregations whose input are a list of numeric fields and output includes a matrix.",
                    "classname": "org.elasticsearch.search.aggregations.matrix.MatrixAggregationPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "ingest-common",
                    "version": "5.6.3",
                    "description": "Module for ingest processors that do not require additional security permissions or have large dependencies and resources",
                    "classname": "org.elasticsearch.ingest.common.IngestCommonPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-expression",
                    "version": "5.6.3",
                    "description": "Lucene expressions integration for Elasticsearch",
                    "classname": "org.elasticsearch.script.expression.ExpressionPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-groovy",
                    "version": "5.6.3",
                    "description": "Groovy scripting integration for Elasticsearch",
                    "classname": "org.elasticsearch.script.groovy.GroovyPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-mustache",
                    "version": "5.6.3",
                    "description": "Mustache scripting integration for Elasticsearch",
                    "classname": "org.elasticsearch.script.mustache.MustachePlugin",
                    "has_native_controller": false
                },
                {
                    "name": "lang-painless",
                    "version": "5.6.3",
                    "description": "An easy, safe and fast scripting language for Elasticsearch",
                    "classname": "org.elasticsearch.painless.PainlessPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "parent-join",
                    "version": "5.6.3",
                    "description": "This module adds the support parent-child queries and aggregations",
                    "classname": "org.elasticsearch.join.ParentJoinPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "percolator",
                    "version": "5.6.3",
                    "description": "Percolator module adds capability to index queries and query these queries by specifying documents",
                    "classname": "org.elasticsearch.percolator.PercolatorPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "reindex",
                    "version": "5.6.3",
                    "description": "The Reindex module adds APIs to reindex from one index to another or update documents in place.",
                    "classname": "org.elasticsearch.index.reindex.ReindexPlugin",
                    "has_native_controller": false
                },
                {
                    "name": "transport-netty3",
                    "version": "5.6.3",
                    "description": "Netty 3 based transport implementation",
                    "classname": "org.elasticsearch.transport.Netty3Plugin",
                    "has_native_controller": false
                },
                {
                    "name": "transport-netty4",
                    "version": "5.6.3",
                    "description": "Netty 4 based transport implementation",
                    "classname": "org.elasticsearch.transport.Netty4Plugin",
                    "has_native_controller": false
                }
            ]
        }
    }
}

6、群集状态:所有分片信息

GET /_cluster/state

例:

 

7、集群健康值:

GET /_cluster/health

例:

{
    "cluster_name": "car-center-cluster-testing",
    "status": "yellow",
    "timed_out": false,
    "number_of_nodes": 1,
    "number_of_data_nodes": 1,
    "active_primary_shards": 76,
    "active_shards": 76,
    "relocating_shards": 0,
    "initializing_shards": 0,
    "unassigned_shards": 76,
    "delayed_unassigned_shards": 0,
    "number_of_pending_tasks": 0,
    "number_of_in_flight_fetch": 0,
    "task_max_waiting_in_queue_millis": 0,
    "active_shards_percent_as_number": 50
}

8、模板:

GET /_template

elasticsearch索引原理

动态更新的 Lucene 索引

Lucene 把每次生成的倒排索引,叫做一个段(segment)。然后另外使用一个 commit 文件,记录索引内所有的 segment。而生成 segment 的数据来源,则是内存中的 buffer。也就是说,动态更新过程如下:

举例,当前索引有 3 个 segment 可用。如下图所示:

 

新接收的数据进入内存 buffer,如下图所示:

 

内存 buffer 刷到磁盘,生成一个新的 segment,commit 文件同步更新。如下图所示:

 

利用磁盘缓存实现的准实时检索

既然涉及到磁盘,那么一个不可避免的问题就来了:磁盘太慢了!对我们要求实时性很高的服务来说,这种处理还不够。所以,在第 3 步的处理中,还有一个中间状态:

  1. 内存 buffer 生成一个新的 segment,刷到文件系统缓存中,Lucene 即可检索这个新 segment。
  2. 文件系统缓存真正同步到磁盘上,commit 文件更新。

 

这一步刷到文件系统缓存的步骤,在 Elasticsearch 中,是默认设置为 1 秒间隔的,对于大多数应用来说,几乎就相当于是实时可搜索了。Elasticsearch 也提供了单独的 /_refresh 接口,用户如果对 1 秒间隔还不满意的,可以主动调用该接口来保证搜索可见。

 

不过对于 Elastic Stack 的日志场景来说,恰恰相反,我们并不需要如此高的实时性,而是需要更快的写入性能。所以,一般来说,我们反而会通过 /_settings 接口或者定制 template 的方式,加大 refresh_interval 参数:

# curl -XPOST http://127.0.0.1:9200/logstash-2015.06.21/_settings -d'
{ "refresh_interval": "10s" }
' 

如果是导入历史数据的场合,那甚至可以先完全关闭掉:

# curl -XPUT http://127.0.0.1:9200/logstash-2015.05.01 -d'
{
  "settings" : {
    "refresh_interval": "-1"
  }
}'


在导入完成以后,修改回来或者手动调用一次即可:

# curl -XPOST http://127.0.0.1:9200/logstash-2015.05.01/_refresh

translog 提供的磁盘同步控制

既然 refresh 只是写到文件系统缓存,那么第 4 步写到实际磁盘又是有什么来控制的?如果这期间发生主机错误、硬件故障等异常情况,数据会不会丢失?

这里,其实有另一个机制来控制。Elasticsearch 在把数据写入到内存 buffer 的同时,其实还另外记录了一个 translog 日志。

在refresh 发生的时候,translog 日志文件依然保持原样,如下图所示:

也就是说,如果在这期间发生异常,Elasticsearch 会从 commit 位置开始,恢复整个 translog 文件中的记录,保证数据一致性。

 

等到真正把 segment 刷到磁盘,且 commit 文件进行更新的时候, translog 文件才清空。这一步,叫做 flush。同样,Elasticsearch 也提供了 /_flush 接口。

对于 flush 操作,Elasticsearch 默认设置为:每 30 分钟主动进行一次 flush,或者当 translog 文件大小大于 512MB (老版本是 200MB)时,主动进行一次 flush。这两个行为,可以分别通过 index.translog.flush_threshold_period 和 index.translog.flush_threshold_size 参数修改。

如果对这两种控制方式都不满意,Elasticsearch 还可以通过 index.translog.flush_threshold_ops 参数,控制每收到多少条数据后 flush 一次。

整个流程可参看下图示例:

 

translog 的一致性

索引数据的一致性通过 translog 保证。那么 translog 文件自己呢?

ES为了数据的安全, 在接受写入的文档的时候, 在写入内存buffer的同时, 会写一份translog日志,从而在出现程序故障/磁盘异常时, 保证数据的完整和安全。

flush会触发lucene commit,并清空translog日志文件。 translog的flush是ES在后台自动执行的,默认情况下ES每隔5s会去检测要不要flush translog,

默认条件是:每 30 分钟主动进行一次 flush,或者当 translog 文件大小大于 512MB主动进行一次 flush。

对应的配置是index.translog.flush_threshold_period 和 index.translog.flush_threshold_size

需要指出的是, 从ES2.0开始,每次 index、bulk、delete、update 完成的时候,一定触发flush translog 到磁盘上,才给请求返回 200 OK。

这个改变提高了数据安全性,但是会对写入的性能造成不小的影响。

如果你不在意这点可能性,还是希望性能优先,可以在 index template 里设置如下参数:

{
    "index.translog.durability": "async"
}

 

总结

translog的功能:

  1. 保证在filesystem cache中的数据不会因为elasticsearch重启或是发生意外故障的时候丢失。
  1. 当系统重启时会从translog中恢复之前记录的操作。
  1. 当对elasticsearch进行CRUD操作的时候,会先到translog之中进行查找,因为tranlog之中保存的是最新的数据。
  1. translog的清除时间时进行flush操作之后(将数据从filesystem cache刷入disk之中)。

flush操作的时间点:

  1. es的各个shard会每个30分钟进行一次flush操作。
  2. 当translog的数据达到某个上限的时候会进行一次flush操作。

有关于translog和flush的一些配置项:

  • index.translog.flush_threshold_ops:当发生多少次操作时进行一次flush。默认是 unlimited。
  • index.translog.flush_threshold_size:当translog的大小达到此值时会进行一次flush操作。默认是512mb。
  • index.translog.flush_threshold_period:在指定的时间间隔内如果没有进行flush操作,会进行一次强制flush操作。默认是30m。
  • index.translog.interval:多少时间间隔内会检查一次translog,来进行一次flush操作。es会随机的在这个值到这个值的2倍大小之间进行一次操作,默认是5s。

segment merge对写入性能的影响

从另一个方面看,开新文件也会给服务器带来负载压力。因为默认每 1 秒,都会有一个新文件产生,每个文件都需要有文件句柄,内存,CPU 使用等各种资源。

一天有 86400 秒,设想一下,每次请求要扫描一遍 86400 个文件,性能一定不好。主动将这些零散的 segment 做数据归并,尽量让索引内只保有少量的,每个都比较大的,segment 文件。

这个过程是有独立的线程来进行的,并不影响新 segment 的产生。如下图,尚未完成的较大的 segment 是被排除在检索可见范围之外的:

 

当归并完成,较大的这个 segment 刷到磁盘后,commit 文件做出相应变更,删除之前几个小 segment,改成新的大 segment。等检索请求都从小 segment 转到大 segment 上以后,删除没用的小 segment。这

时候,索引里 segment 数量就下降了

routing和replica的读写过程

当一个 ES 节点收到一条数据的写入请求时,它是如何确认这个数据应该存储在哪个节点的哪个分片上的?

作为一个没有额外依赖的简单的分布式方案,ES 在这个问题上同样选择了一个非常简洁的处理方式,对任一条数据计算其对应分片的方式如下:

shard = hash(routing) % number_of_primary_shards

每个数据都有一个 routing 参数,默认情况下,就使用其 _id 值。将其 _id 值计算哈希后,对索引的主分片数取余,就是数据实际应该存储到的分片 ID。

副本一致性

作为分布式系统,数据副本可算是一个标配。ES 数据写入流程,自然也涉及到副本。在有副本配置的情况下,数据从发向 ES 节点,到接到 ES 节点响应返回,流向如下图所示:

 

  1. 客户端请求发送给 Node 1 节点,注意图中 Node 1 是 Master 节点,实际完全可以不是。
  2. Node 1 用数据的 _id 取余计算得到应该讲数据存储到 shard 0 上。通过 cluster state 信息发现 shard 0 的主分片已经分配到了 Node 3 上。Node 1 转发请求数据给 Node 3。
  3. Node 3 完成请求数据的索引过程,存入主分片 0。然后并行转发数据给分配有 shard 0 的副本分片的 Node 1 和 Node 2。
  4. 当收到任一节点汇报副本分片数据写入成功,Node 3 即返回给初始的接收节点 Node 1,宣布数据写入成功。Node 1 返回成功响应给客户端。

elasticsearch java api

具体内容略,这里提供java api的官方接口文档:

elasticsearch-javaAPI.pdf

elasticsearch相关插件

elasticsearch head

 Es head插件是维护过程中必不可少的工具,可以方便查看集群运行情况,节点健康状态,浏览数据,查看数据。

ik分词器

支持中文的分词器

elasticsearch-sql

实现sql向DSL语法接口的转换

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值