[Rebase] Rebase to vllm releases/v0.22.0 (#3891)

Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
Signed-off-by: ZhengWG <zwg0606@gmail.com>
Signed-off-by: david6666666 <530634352@qq.com>
Signed-off-by: Yueqian Lin <linyueqian@outlook.com>
Signed-off-by: nainiu258 <cperfect02@163.com>
Signed-off-by: nainiu258 <101917677+nainiu258@users.noreply.github.com>
Signed-off-by: JasonJ2021 <jasonj@zju.edu.cn>
Signed-off-by: Zhou Taichang <tzhouam@connect.ust.hk>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: skf <54565339+skf-1999@users.noreply.github.com>
Co-authored-by: Zheng Wengang <zwg0606@gmail.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Co-authored-by: WeiQing Chen <40507679+david6666666@users.noreply.github.com>
Co-authored-by: SYLAR <125541396+lishunyang12@users.noreply.github.com>
Co-authored-by: Yueqian Lin <linyueqian@outlook.com>
Co-authored-by: nainiu258 <101917677+nainiu258@users.noreply.github.com>
Co-authored-by: Jason <72191212+JasonJ2021@users.noreply.github.com>
Co-authored-by: Yueqian Lin <70319226+linyueqian@users.noreply.github.com>
This commit is contained in:
62 files changed
+998 -354

No files matched your search

@@ -43,17 +43,20 @@ class OmniCoordinator:
heartbeat_timeout: Seconds before a replica is considered
unhealthy if no heartbeat / update is received.
"""
self._router_zmq_addr = router_zmq_addr
self._pub_zmq_addr = pub_zmq_addr
self._heartbeat_timeout = heartbeat_timeout
# Dedicated ZMQ context for this coordinator instance.
self._ctx = zmq.Context()
self._router = self._ctx.socket(zmq.ROUTER)
self._router.bind(self._router_zmq_addr)
self._router.bind(router_zmq_addr)
# Recover the actual bound address (port=0 → real port).
self.router_zmq_addr = self._router.getsockopt_string(zmq.LAST_ENDPOINT)
self._pub_zmq_addr = pub_zmq_addr # keep original for internal use
self._pub = self._ctx.socket(zmq.PUB)
self._pub.bind(self._pub_zmq_addr)
self._pub.bind(pub_zmq_addr)
# Recover the actual bound address (port=0 → real port).
self.pub_zmq_addr = self._pub.getsockopt_string(zmq.LAST_ENDPOINT)
self._replicas: dict[str, ReplicaInfo] = {}
self._lock = threading.Lock()