| Summary: | [DOCS] Scale the EFK pods when changes are made | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Eric Jones <erjones> |
| Component: | Documentation | Assignee: | Brandi Munilla <bmcelvee> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Anping Li <anli> |
| Severity: | low | Docs Contact: | Vikram Goyal <vigoyal> |
| Priority: | low | ||
| Version: | 3.1.0 | CC: | aos-bugs, bmcelvee, erjones, jokerman, mmccomas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
OpenShift Enterprise 3.1.1.6
|
|
| Last Closed: | 2018-03-08 15:04:14 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Eric Jones
2016-03-03 22:58:09 UTC
Hi Eric and Anping, I opened the following PR with a note instructing readers to scale Elasticsearch and Fluentd as recommended: https://github.com/openshift/openshift-docs/pull/7281 Brandi,
Fluentd is deployed as daemonset. you couldn't scale down fluentd. The correct way is to make the fluentd don't match any nodes.
To scale to zero:
+----
+$ oc scale --replicas=0 dc/<ELASTICSEARCH_DC>
$ get the fluentd node selector
oc get ds logging-fluentd -o yaml |grep -A 1 Selector
nodeSelector:
logging-infra-fluentd: "true"
$ Change nodeSelector in daemonset configure to match zero node
+----
+
+To scale to back up from zero:
+----
+$ oc scale --replicas=# dc/<ELASTICSEARCH_DC>
+ Change the nodeSelector back in daemonset configure.
You can use oc patch command to modify the daemonset nodeSelector.
oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"nonexistlabel":"true"}}}}}'
Brandi,
How about change as the following?
+Change nodeSelector in the daemonset configuration to match zero:
+----
$ get the fluentd node selector
$ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
nodeSelector:
logging-infra-fluentd: "true"
Use the `oc patch` command to modify the daemonset nodeSelector:
oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"nonexistlabel":"true"}}}}}'
$ get the fluentd node selector
$ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
nodeSelector:
"nonexistlabel: "true"
To scale Elastcsearch back up from zero:
----
$ oc scale --replicas=# dc/<ELASTICSEARCH_DC>
----
change nodeSelector in the daemonset configuration to back to logging-infra-fluentd: "true
Use the `oc patch` command to modify the daemonset nodeSelector:
----
oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"logging-infra-fluentd":"true"}}}}}'
Thanks, Anping! I updated the PR: https://github.com/openshift/openshift-docs/pull/7281 Looks good to me now. Commits pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/ca24ef03bbd5d32000b35fa52537ec2a8e6ead81 Bug 1314564 Add Instructions to Scale EFK Pods When Changes are Made https://github.com/openshift/openshift-docs/commit/cf6b546a9f96c9bfbce20cc5834eb8e0e2a81314 Merge pull request #7778 from bmcelvee/BZ1314564 Bug 1314564 Add Instructions to Scale EFK Pods When Changes are Made Link to documentation on the Customer Portal: https://access.redhat.com/documentation/en-us/openshift_enterprise/3.1/html-single/installation_and_configuration/#fluentd |