乱读天书, 不求甚解
周祎骏的个人云笔记
Toggle navigation
乱读天书, 不求甚解
主页
Linux:系统配置
Linux:用户管理
Linux:优化排错
Linux:进程调度
Linux:文件系统
Linux:网络
Linux:系统服务
Linux:安全
Linux:内核
容器:Docker
容器:containerd
容器编排:Kubernetes
IAC:Terraform
大数据:Hadoop
大数据:Zookeeper
大数据:Hbase
消息队列:rsyslog
消息队列:kafka
数据库:MySQL
数据库:MongoDB
搜索引擎:Elasticsearch
时序数据库:OpenTSDB
网站服务:Nginx
编程:Bash
编程:Perl
编程:Python
编程:C
编程:JAVA
编程:Rust
版本控制:gitlab
知识管理:docusaurus
常用小工具
关于我
标签
Elasticsearch 3.0 管理Elasticsearch集群
2016-12-25 08:17:33
68
0
0
admin
> 这里介绍Elasticsearch 集群的管理 小贴士: 在url 后面加上?v 或者?pretty 可以更清晰的显示数据 *** #查看集群状态 集群状态有三中颜色:红,黄,绿。 **绿色**:一切安好。 **黄色**:数据都在,但是一些replica 有问题,会自动修复。 **红色**:可能已经丢失数据。 ``` [es@hadoop1 config]$ curl localhost:9200/_cat/health?v epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent 1482663185 18:53:05 test green 2 2 0 0 0 0 0 0 - 100.0% [es@hadoop1 config]$ curl localhost:9200/_cluster/health?pretty { "cluster_name" : "test", "status" : "green", "timed_out" : false, "number_of_nodes" : 2, "number_of_data_nodes" : 2, "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "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" : 100.0 } ``` **查看节点** ``` [es@hadoop1 config]$ curl localhost:9200/_cat/nodes?v ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name 192.168.0.105 3 94 0 0.00 0.00 0.00 mdi * es1 192.168.0.107 3 94 0 0.02 0.01 0.00 mdi - es2 ```
上一篇:
Elasticsearch 1.5 Mapping
下一篇:
Elasticsearch 4.0 安全
文档导航