-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tidb-in-kubernetes: update offline pump doc #1940
Merged
junlan-zhang
merged 10 commits into
pingcap:master
from
junlan-zhang:add-offline-pump-doc-(update)
Oct 29, 2019
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8bfe295
tidb-in-kubernetes: wording edits
junlan-zhang 8222541
Delete crowdin.yml
junlan-zhang 6291c3a
Merge branch 'master' into add-offline-pump-doc-(update)
lilin90 3c2364b
Merge branch 'master' into add-offline-pump-doc-(update)
junlan-zhang 935a9a4
tidb-in-kubernetes: wording edits
junlan-zhang bef541f
tidb-in-kubernetes: wording edits
junlan-zhang 8729833
Merge branch 'master' into add-offline-pump-doc-(update)
junlan-zhang 6fae114
Merge branch 'master' into add-offline-pump-doc-(update)
yikeke 99fc5cc
Merge branch 'master' into add-offline-pump-doc-(update)
junlan-zhang d82fe56
Merge branch 'master' into add-offline-pump-doc-(update)
junlan-zhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -140,31 +140,29 @@ kubectl get pvc -n <namespace> -l app.kubernetes.io/component=backup,pingcap.com | |||||
|
||||||
### Pump 缩容 | ||||||
|
||||||
缩容 Pump 需要挨个先将 Pump 节点从集群中下线之后操作 `helm upgrade` 进行缩容。 | ||||||
缩容 Pump 需要**挨个**将 Pump 节点从集群中下线,然后操作 `helm upgrade` 将对应的 Pump Pod 删除。 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
1. 下线 Pump 节点: | ||||||
|
||||||
假设现在有 3 个 Pump 节点,我们需要下线第 3 个 Pump 节点,将 `<ordinal-id>` 替换成 `2`,操作方式是: | ||||||
假设现在有 3 个 Pump 节点,我们需要下线第 3 个 Pump 节点,将 `<ordinal-id>` 替换成 `2`,操作方式如下(`<version>` 为当前 TiDB 的版本)。 | ||||||
|
||||||
{{< copyable "shell-regular" >}} | ||||||
|
||||||
```shell | ||||||
kubectl run offline-pump-<ordinal-id> --image=pingcap/tidb-binlog:<version> --namespace=<namespace> --restart=OnFailure -- /binlogctl -pd-urls=http://<release-name>-pd:2379 -cmd offline-pump -node-id <release-name>-pump-<ordinal-id>:8250 | ||||||
``` | ||||||
|
||||||
`<version>` 为当前 TiDB 的版本。 | ||||||
|
||||||
然后查看 Pump 的日志输出,确认输出 `pump offline, please delete my pod` 后即可确认该节点已经成功下线。 | ||||||
然后查看 Pump 的日志输出,输出 `pump offline, please delete my pod` 后即可确认该节点已经成功下线。 | ||||||
|
||||||
{{< copyable "shell-regular" >}} | ||||||
|
||||||
```shell | ||||||
kubectl logs -f -n <namespace> <release-name>-pump-<ordinal-id> | ||||||
``` | ||||||
|
||||||
2. 缩容 Pump: | ||||||
2. 删除对应的 Pump Pod: | ||||||
|
||||||
修改 `values.yaml` 文件中 `binlog.pump.replicas` 为 `2`,然后执行缩容操作: | ||||||
修改 `values.yaml` 文件中 `binlog.pump.replicas` 为 `2`,然后执行如下命令来删除 Pump Pod: | ||||||
|
||||||
{{< copyable "shell-regular" >}} | ||||||
|
||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To scale in Pump, for each Pump node, make the node offline and delete the corresponding Pump Pod instead of making all the unwanted nodes offline and deleting the corresponding Pump Pods.
To make it clearer, how about "缩容 Pump 需要先将单个 Pump 节点从集群中下线,然后操作
helm upgrade
将对应的 Pump Pod 删除,并对每个节点重复上述步骤。"?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juliezhang1112 Agree.