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

Too many zk watchers created by Console #364

Closed
kfchu opened this issue Feb 27, 2018 · 1 comment
Closed

Too many zk watchers created by Console #364

kfchu opened this issue Feb 27, 2018 · 1 comment

Comments

@kfchu
Copy link
Contributor

kfchu commented Feb 27, 2018

现状:

exec_num = e
job_num = j
console_watcher = 30j + 5e + 8je + 7

(1)
/$Jobs/<job_name>/config
(28)
/$Jobs/<job_name>/config/xxx

(8)
/$Jobs/<job_name>/servers/<server_name> /
/$Jobs/<job_name>/servers/<server_name> /processSuccessCount
/$Jobs/<job_name>/servers/<server_name> /processFailureCount
/$Jobs/<job_name>/servers/<server_name> /sharding
/$Jobs/<job_name>/servers/<server_name> /ip
/$Jobs/<job_name>/servers/<server_name> /jobversion
/$Jobs/<job_name>/servers/<server_name> /version
/$Jobs/<job_name>/servers/<server_name> /status

(1)
/vip.job.facm/$Jobs/<job_name>/servers/

(5)
/$SaturnExecutors/executors/<server_name>/
/$SaturnExecutors/executors/<server_name>/lastBeginTime
/$SaturnExecutors/executors/<server_name>/clean
/$SaturnExecutors/executors/<server_name>/ip
/$SaturnExecutors/executors/<server_name>/version

-- common (7)--
/$SaturnExecutors/sharding
/$SaturnExecutors/sharding/content
/$SaturnExecutors/sharding/count

/$SaturnExecutors/leader
/$SaturnExecutors/leader/host
/$SaturnExecutors/leader/latch
/$SaturnExecutors/executors

@kfchu kfchu added this to the 3.0.0-M2 milestone Feb 27, 2018
kfchu added a commit that referenced this issue Feb 28, 2018
@kfchu kfchu self-assigned this Mar 1, 2018
kfchu added a commit that referenced this issue Mar 2, 2018
@kfchu
Copy link
Contributor Author

kfchu commented Mar 2, 2018

改造方案:

针对 /$Jobs/<job_name>/config 的children节点,只保留2个(每个作业减少了26个):

  • /$Jobs/<job_name>/config/enabled
  • /$Jobs/<job_name>/config/forceshard

针对/$SaturnExecutors/executors/<server_name>/的children节点,只保留1个(每作业 X Executor减少了6个):

  • /$Jobs/<job_name>/servers/<server_name>/status

因此 修改后的console_watcher=4j + 5e + 2je + 7

@kfchu kfchu added the done label Mar 7, 2018
heziai added a commit that referenced this issue Mar 27, 2018
kfchu added a commit that referenced this issue Mar 27, 2018
heziai added a commit that referenced this issue Mar 29, 2018
kfchu added a commit that referenced this issue Apr 3, 2018
kfchu added a commit that referenced this issue Apr 3, 2018
@kfchu kfchu closed this as completed Apr 9, 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

2 participants