博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ES集群
阅读量:2388 次
发布时间:2019-05-10

本文共 2197 字,大约阅读时间需要 7 分钟。

官方网址:

1、集群健康

Let’s start with a basic health check, which we can use to see how our cluster is doing. We’ll be using curl to do this but you can use any tool that allows you to make HTTP/REST calls. Let’s assume that we are still on the same node where we started Elasticsearch on and open another command shell window.

当我们进行基本运行状况检查时,我们可以使用它来查看集群的运行情况。 我们将使用curl来执行此操作,但您可以使用任何允许您进行HTTP / REST调用的工具。 假设我们仍然在我们启动Elasticsearch的同一节点上打开另一个命令shell窗口。

To check the cluster health, we will be using the _cat API. 要检查群集运行状况,我们将使用_cat API。

GET /_cat/health?v

在Kibana控制台中运行以下命令,执行结果如下:

epoch      timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent1545892680 14:38:00  es      green           3         3     22  11    0    0        0             0                  -                100.0%

Whenever we ask for the cluster health, we either get green, yellow, or red.

每当我们要求群集健康时,我们要么获得绿色,黄色或红色。

  • Green - everything is good (cluster is fully functional). 绿色 - 一切都很好(集群功能齐全)
  • Yellow - all data is available but some replicas are not yet allocated (cluster is fully functional). 黄色 - 所有数据都可用,但尚未分配一些副本(群集功能齐全)
  • Red - some data is not available for whatever reason (cluster is partially functional) . 红色 - 某些数据由于某种原因不可用(群集部分功能)

2、节点

We can also get a list of nodes in our cluster as follows:

我们还可以获得群集中的节点列表,如下所示:

GET /_cat/nodes?v
ip           heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name10.11.13.104           48          23   0    0.00    0.01     0.05 mdi       -      elastic310.11.13.102           30          35   0    0.04    0.03     0.05 mdi       *      elastic110.11.13.103           49          23   0    0.00    0.01     0.05 mdi       -      elastic2

3、查看集群索引

GET /_cat/indices?v
health status index   uuid                   pri rep docs.count docs.deleted store.size pri.store.sizegreen  open   test    GHdZr5owTwexU_RJsasSJw   5   1         31            0      293kb        146.5kbgreen  open   .kibana AV5KHChzRzubIwZQ3_SqKg   1   1          1            0        8kb            4kbgreen  open   news    3kNoB5ORS2-XasQuf6pCdA   5   1          0            0      2.5kb          1.2kb

转载地址:http://xrvab.baihongyu.com/

你可能感兴趣的文章
kmalloc详解
查看>>
linux下gdb单步调试(中)
查看>>
写一个块设备驱动-第9章
查看>>
JDBC数据库开发技术
查看>>
oracle表分区详解
查看>>
从头做leetcode之leetcode 5 最长回文子串
查看>>
从头做leetcode之leetcode 6 Z字形变换
查看>>
将无符号偏移量添加到...溢出到...
查看>>
从头做leetcode之leetcode 11 盛最多水的容器
查看>>
设计模式、框架和架构的联系
查看>>
安装VMware虚拟机
查看>>
常用的设计模式和代码
查看>>
桥接模式-通俗的理解(转)
查看>>
MXML 文件中的xmlns是什么意思?
查看>>
Flex Builder 中的工作空间、项目
查看>>
Flex 获得远程数据
查看>>
Flex 添加效果的两种方法
查看>>
Flash Builder 4字体设置
查看>>
Actionscript 3.0 笔记一
查看>>
图像处理库OpenCV参考网址
查看>>