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

Support white list of replica-servers in meta-server #238

Closed
qinzuoyan opened this issue Dec 19, 2018 · 1 comment
Closed

Support white list of replica-servers in meta-server #238

qinzuoyan opened this issue Dec 19, 2018 · 1 comment
Assignees
Labels
type/enhancement Indicates new feature requests

Comments

@qinzuoyan
Copy link
Contributor

No description provided.

@qinzuoyan qinzuoyan added the type/enhancement Indicates new feature requests label Dec 19, 2018
@vagetablechicken vagetablechicken self-assigned this Dec 19, 2018
@vagetablechicken vagetablechicken changed the title Support write list of replica-servers in meta-server Support white list of replica-servers in meta-server Dec 19, 2018
@vagetablechicken
Copy link
Contributor

vagetablechicken commented Feb 18, 2019

failure_detector类可以设置use_allow_list为true,也就是开启allow list功能。当allow list功能开启时,收到new worker的ping时,会查询worker是否是allow list中的:

  • 如果不在allow list中,就将其reject,并且不允许该worker再次ping;
  • 如果在allow list中,则标记worker connected。

因此,meta-server要实现白名单功能,只允许指定的replica-servers与其连接,只需要开启meta-server持有的failure detector的allow list功能。

配置说明:将replica-servers白名单写入配置中,重启meta-server使其生效。

[meta_server]   
  enable_white_list = true  
  replica_white_list = %{replica.server.list}

辅助工具:

  • 增加remote_command “meta.fd.allow_list”来查询meta-server现在的replica白名单。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants