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

Extraction and recovery of executor's traffic #290

Closed
heziai opened this issue Nov 14, 2017 · 0 comments
Closed

Extraction and recovery of executor's traffic #290

heziai opened this issue Nov 14, 2017 · 0 comments
Assignees
Milestone

Comments

@heziai
Copy link
Member

heziai commented Nov 14, 2017

背景

当一台机有问题,需要摘取这台机的流量。重启后,这台机的流量可以恢复。

实现方式

  • saturn-console的Executor总览页,增加“流量摘取”或“流量恢复”按钮。
  • 点击“流量摘取”,新建永久结点$SaturnExecutor/executors/executor/noTraffic,点击“流量恢复”,删除该结点。
  • 如果noTraffic结点不存在,saturn-console只显示“流量摘取”按钮,反之,显示只“流量恢复”按钮。
  • NamespaceSharding监听该结点的新增和删除事件。如果该executor在线,新增时,移除该executor上的所有分片;删除时,平均分配适量的分片给该executo,视为每个作业的jobServerOnline事件r。
  • 所有的sharding事件,都需要对executor的noTraffic做处理。
  • saturn-console优先executor的选择,流量被摘取的executor的显示。
@heziai heziai added the feature label Nov 14, 2017
@heziai heziai added this to the 2.1.6 milestone Nov 14, 2017
@heziai heziai self-assigned this Nov 14, 2017
heziai added a commit that referenced this issue Nov 16, 2017
heziai added a commit that referenced this issue Nov 17, 2017
@heziai heziai added the done label Nov 20, 2017
@lanjane lanjane added the tested label Nov 22, 2017
@kfchu kfchu closed this as completed Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants