Skip to content

Commit da3b1ef

Browse files
authored
Merge pull request #8059 from openshift-cherrypick-robot/cherry-pick-7778-to-enterprise-3.9
[enterprise-3.9] Bug 1314564 Add Instructions to Scale EFK Pods When Changes are Made
2 parents 8b4cfa4 + 37ee86d commit da3b1ef

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

install_config/aggregate_logging.adoc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,51 @@ test-project:
11781178
read_lines_limit: 100
11791179
----
11801180
====
1181+
1182+
When you make changes to any part of the EFK stack, specifically Elasticsearch
1183+
or Fluentd, you should first scale Elasicsearch down to zero and scale Fluentd
1184+
so it does not match any other nodes. Then, make the changes and scale
1185+
Elasicsearch and Fluentd back.
1186+
1187+
To scale Elasicsearch to zero:
1188+
----
1189+
$ oc scale --replicas=0 dc/<ELASTICSEARCH_DC>
1190+
----
1191+
1192+
Change nodeSelector in the daemonset configuration to match zero:
1193+
1194+
.Get the fluentd node selector:
1195+
----
1196+
$ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1197+
nodeSelector:
1198+
logging-infra-fluentd: "true"
1199+
----
1200+
1201+
.Use the `oc patch` command to modify the daemonset nodeSelector:
1202+
----
1203+
$ oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"nonexistlabel":"true"}}}}}'
1204+
----
1205+
1206+
.Get the fluentd node selector:
1207+
----
1208+
$ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1209+
nodeSelector:
1210+
"nonexistlabel: "true"
1211+
----
1212+
1213+
Scale Elastcsearch back up from zero:
1214+
----
1215+
$ oc scale --replicas=# dc/<ELASTICSEARCH_DC>
1216+
----
1217+
1218+
Change nodeSelector in the daemonset configuration back to
1219+
logging-infra-fluentd: "true".
1220+
1221+
Use the `oc patch` command to modify the daemonset nodeSelector:
1222+
----
1223+
oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"logging-infra-fluentd":"true"}}}}}'
1224+
----
1225+
11811226
[[aggregate-logging-kibana]]
11821227
=== Kibana
11831228

0 commit comments

Comments
 (0)