@@ -16,50 +16,82 @@ You can view the status of your Elasticsearch cluster.
16
16
Run the following command to view the Elasticsearch status:
17
17
18
18
----
19
- $ oc get elasticsearch elasticsearch -o yaml
19
+ $ oc get Elasticsearch elasticsearch -n openshift-logging -o yaml
20
20
21
- nodes:
22
- - deploymentName: elasticsearch-clientdatamaster-0-1
23
- podName: elasticsearch-clientdatamaster-0-1-84d764899d-bh7jl
24
- replicaSetName: elasticsearch-clientdatamaster-0-1-84d764899d
25
- roles:
26
- - client
27
- - data
28
- - master
29
- status: Running
30
- upgradeStatus:
31
- underUpgrade: "False"
32
- - deploymentName: elasticsearch-data-1-1
33
- podName: elasticsearch-data-1-1-77ffddbf7b-zdd76
34
- replicaSetName: elasticsearch-data-1-1-77ffddbf7b
35
- roles:
36
- - data
37
- status: Running
38
- upgradeStatus:
39
- underUpgrade: "False"
40
- - podName: elasticsearch-client-2-1-0
41
- roles:
42
- - client
43
- statefulSetName: elasticsearch-client-2-1
44
- status: Running
45
- upgradeStatus:
46
- underUpgrade: "False"
47
- pods:
48
- client:
49
- failed: []
50
- notReady:
51
- - elasticsearch-client-1-1-0
52
- - elasticsearch-client-2-1-0
53
- ready: []
54
- data:
55
- failed: []
56
- notReady:
57
- - elasticsearch-data-1-1-77ffddbf7b-zdd76
58
- ready: []
59
- master:
60
- failed: []
61
- notReady: []
62
- ready: []
63
- shardAllocationEnabled: "True"
21
+ status:
22
+ clusterHealth: green <1>
23
+ conditions: <2>
24
+ .....
25
+ nodes: <2>
26
+ .....
27
+ pods: <3>
28
+ .....
29
+ shardAllocationEnabled: "True" <4>
64
30
----
65
-
31
+ <1> The status of the Elasticsearch cluster, `green`, `red`, `yellow`.
32
+ <2> Conditions
33
+ <3> The Elsticsearch nodes in the cluster, with `upgradeStatus`.
34
+ <4> The Elasticsearch client, data, and master pods in the cluster, listed under 'failed`, `notReady` or `ready` state.
35
+
36
+ oc get deployment --selector component=elasticsearch -n openshift-logging -o name
37
+
38
+ https://github.com/openshift/elasticsearch-operator/pull/92
39
+
40
+ ----
41
+ conditions:
42
+ - lastTransitionTime: 2019-03-06T23:33:00Z
43
+ message: Invalid master nodes count. Please ensure there are no more than 3 total
44
+ nodes with master roles
45
+ reason: Invalid Settings
46
+ status: "True"
47
+ type: InvalidMasters
48
+ - lastTransitionTime: 2019-03-06T23:28:37Z
49
+ status: "False"
50
+ type: InvalidData
51
+ - lastTransitionTime: 2019-03-06T23:28:38Z
52
+ status: "False"
53
+ type: InvalidRedundancy
54
+ - lastTransitionTime: 2019-03-06T23:30:35Z
55
+ message: Config Map is different
56
+ reason: ConfigChange
57
+ status: "True"
58
+ type: UpdatingSettings
59
+ - lastTransitionTime: 2019-03-06T23:28:52Z
60
+ status: "False"
61
+ type: ScalingUp
62
+ - lastTransitionTime: 2019-03-06T23:28:52Z
63
+ status: "False"
64
+ type: ScalingDown
65
+ - lastTransitionTime: 2019-03-06T23:28:52Z
66
+ status: "False"
67
+ type: Restarting
68
+ ----
69
+
70
+ Example conditions
71
+
72
+ ----
73
+ nodes:
74
+ - conditions:
75
+ - lastTransitionTime: 2019-03-15T15:57:22Z
76
+ message: Disk storage usage for node is 27.5gb (36.74%). Shards will be not
77
+ be allocated on this node.
78
+ reason: Disk Watermark Low
79
+ status: "True"
80
+ type: NodeStorage
81
+ deploymentName: example-elasticsearch-clientdatamaster-0-1
82
+ upgradeStatus: {}
83
+ ----
84
+
85
+ ----
86
+ nodes:
87
+ - conditions:
88
+ - lastTransitionTime: 2019-03-15T16:04:45Z
89
+ message: Disk storage usage for node is 27.5gb (36.74%). Shards will be relocated
90
+ from this node.
91
+ reason: Disk Watermark High
92
+ status: "True"
93
+ type: NodeStorage
94
+ deploymentName: example-elasticsearch-clientdatamaster-0-1
95
+ upgradeStatus: {}
96
+ ----
97
+
0 commit comments