From eca7f75f0ed4bcf8cfadd173344b45efa38592a1 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Thu, 9 Jan 2020 01:29:02 +0000 Subject: [PATCH] =?UTF-8?q?Write=20=E2=80=9Creplica=E2=80=9D=20rather=20th?= =?UTF-8?q?an=20=E2=80=9Cslave=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Leave "slave" intact where this is a technical term / meaningful to the code. --- .../run-application/run-replicated-stateful-application.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/en/docs/tasks/run-application/run-replicated-stateful-application.md b/content/en/docs/tasks/run-application/run-replicated-stateful-application.md index 593dc6b212..8d9e754c2e 100644 --- a/content/en/docs/tasks/run-application/run-replicated-stateful-application.md +++ b/content/en/docs/tasks/run-application/run-replicated-stateful-application.md @@ -69,7 +69,7 @@ kubectl apply -f https://k8s.io/examples/application/mysql/mysql-configmap.yaml ``` This ConfigMap provides `my.cnf` overrides that let you independently control -configuration on the primary MySQL server and replicas. +configuration on the primary MySQL server and its replicas. In this case, you want the primary server to be able to serve replication logs to replicas and you want replicas to reject any writes that don't come via replication. @@ -418,8 +418,9 @@ kubectl uncordon ## Scaling the number of replicas -With MySQL replication, you can scale your read query capacity by adding replicas. -With StatefulSet, you can do this with a single command: +When you use MySQL replication, you can scale your read query capacity by +adding replicas. +For a StatefulSet, you can achieve this with a single command: ```shell kubectl scale statefulset mysql --replicas=5