Skip to content

Support using the ring hash balancer without xDS #33356

@atollena

Description

@atollena

It is currently not possible to use the ring_hash balancer without xDS. As far as I can tell (from the Go code and the A42 gRFC), there is no strong ties between xDS and the ring_hash balancer: the only missing piece to use it directly via service config is that there is no public interface to set the hash code in the request context (or equivalent, e.g. CallConfig in c-core and CallOption in Java).

So the main thing to define would be the interface to set the hash on a per-request basis, across language. That may warrant another gRFC.

The alternative for gRPC users that want to use consistent hashing is to either build an xDS infrastructure, or copy paste the ring_hash balancer code just to expose a way to set the hash, which is not ideal.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions