Skip to content

Commit cf6b546

Browse files
authored
Merge pull request #7778 from bmcelvee/BZ1314564
Bug 1314564 Add Instructions to Scale EFK Pods When Changes are Made
2 parents a6215c6 + ca24ef0 commit cf6b546

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

0 commit comments

Comments
 (0)