open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[Other]: How is consistent hashing implemented for sharding WebSocket connections in openim k8s?

Open hezhenke opened this issue 1 year ago • 3 comments

What would you like to share?

看代码没有看懂,目前有k8s和zookeeper两种分片逻辑,k8s通过用户id哈希一致性,选定长链接节点。

我的问题是用户建立连接的时候,是在哪里让客户端根据用户ID哈希和对应的websocket服务器节点建立长链接的。

Additional information

No response

hezhenke avatar May 13 '24 11:05 hezhenke

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

kubbot avatar May 13 '24 11:05 kubbot

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot avatar Jul 22 '24 08:07 kubbot

why noboy answer the question ?

hezhenke avatar Jul 26 '24 03:07 hezhenke

A new Kubernetes deployment solution with a consistent hashing approach will be released later. It is not yet complete, but thank you for your attention.

FGadvancer avatar Nov 21 '24 12:11 FGadvancer

We prioritize supporting Kubernetes deployment in the commercial version. In the open-source version, you'll need to write code to support it yourself.

skiffer-git avatar Apr 18 '25 07:04 skiffer-git