Skip to content
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

增加 Kubernetes 上 pump 部署最佳实践 #2073

Closed
tennix opened this issue Nov 25, 2019 · 1 comment
Closed

增加 Kubernetes 上 pump 部署最佳实践 #2073

tennix opened this issue Nov 25, 2019 · 1 comment
Assignees

Comments

@tennix
Copy link
Member

tennix commented Nov 25, 2019

Feature Request

This repository is ONLY used to solve problems related to DOCS-CN.
For other issues (TiDB, TiKV, etc), please move to other repositories.

  1. Did you encounter a certain issue about the documentation? If yes, please describe the issue that relates to your feature request.

    部署 TiDB Binlog 时,Pump 组件与 TiDB 组件并不是一一对应的,如果将 TiDB 与 Pump 分开部署,在 TiDB 与 Pump 网络隔离时,如果 TiDB Binlog 还开了 ignore-error,会导致 TiDB 丢失 Binlog。

  2. Please describe your suggestion or addition.

    生产上最佳实践是将 TiDB 与 Pump 部署在同一台机器上,减少 TiDB 与 Pump 因网络隔离造成的影响。即使 TiDB 与远程的 Pump 出现网络隔离,TiDB 也仍然可以通过与本地的 Pump 写 Binlog。所以生产上最好保证 TiDB 机器上有 Pump 组件。K8s 中可通过 Affinity 规则为 TiDB 设置调度亲和性,要求 TiDB 运行的节点上有该集群的 Pump 组件。同时 Pump 之间可以设置反亲和,因为单台机器上部署多个 Pump 意义不大。

  3. If convenient, please provide reference materials (Blog, Stack Overflow, etc).

    为 Pod 设置 Affinity 调度规则可以参考 https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity

@lilin90
Copy link
Member

lilin90 commented Dec 16, 2019

已在 #2083 中增加至文档。

@lilin90 lilin90 closed this as completed Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants