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

多个网关部署,怎么保证哈希环一致? #62

Open
huanongzhangbin opened this issue Dec 3, 2023 · 1 comment
Open

多个网关部署,怎么保证哈希环一致? #62

huanongzhangbin opened this issue Dec 3, 2023 · 1 comment

Comments

@huanongzhangbin
Copy link

huanongzhangbin commented Dec 3, 2023

你好,想问个问题。
如果部署了多个网关,但是由于网关通信出现问题没有受到websocket-server实例上线的消息,过了一会之后通信又恢复了,那怎么保证网关的哈希环一致?

@la3rence
Copy link
Owner

la3rence commented Dec 3, 2023

哈希环本身要序列化存储到 redis 或 db, 网关实例加锁读写哈希环。

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

2 participants