Skip to content

Commit ca24ef0

Browse files
committed
Bug 1314564 Add Instructions to Scale EFK Pods When Changes are Made
1 parent cfd5703 commit ca24ef0

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
@@ -1068,6 +1068,51 @@ test-project:
10681068
read_lines_limit: 100
10691069
----
10701070
====
1071+
1072+
When you make changes to any part of the EFK stack, specifically Elasticsearch
1073+
or Fluentd, you should first scale Elasicsearch down to zero and scale Fluentd
1074+
so it does not match any other nodes. Then, make the changes and scale
1075+
Elasicsearch and Fluentd back.
1076+
1077+
To scale Elasicsearch to zero:
1078+
----
1079+
$ oc scale --replicas=0 dc/<ELASTICSEARCH_DC>
1080+
----
1081+
1082+
Change nodeSelector in the daemonset configuration to match zero:
1083+
1084+
.Get the fluentd node selector:
1085+
----
1086+
$ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1087+
nodeSelector:
1088+
logging-infra-fluentd: "true"
1089+
----
1090+
1091+
.Use the `oc patch` command to modify the daemonset nodeSelector:
1092+
----
1093+
$ oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"nonexistlabel":"true"}}}}}'
1094+
----
1095+
1096+
.Get the fluentd node selector:
1097+
----
1098+
$ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1099+
nodeSelector:
1100+
"nonexistlabel: "true"
1101+
----
1102+
1103+
Scale Elastcsearch back up from zero:
1104+
----
1105+
$ oc scale --replicas=# dc/<ELASTICSEARCH_DC>
1106+
----
1107+
1108+
Change nodeSelector in the daemonset configuration back to
1109+
logging-infra-fluentd: "true".
1110+
1111+
Use the `oc patch` command to modify the daemonset nodeSelector:
1112+
----
1113+
oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"logging-infra-fluentd":"true"}}}}}'
1114+
----
1115+
10711116
[[aggregate-logging-kibana]]
10721117
=== Kibana
10731118

0 commit comments

Comments
 (0)