Skip to content

teivah/tourniquet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tourniquet

gRPC load-balancing on Kubernetes can be painful: https://kubernetes.io/blog/2018/11/07/grpc-load-balancing-on-kubernetes-without-tears/

Instead of having to rely on a service-mesh, a cheap alternative is to manage client-side load balancing.

In Kubernetes, we have to configure a Service on top of a Pod. Then, with Tourniquet we can create a pool of gRPC connections and a max TTL. Each connection created is associated to the TTL specified. Once the TTL is reached, the stale connection will be closed and recreated. It allows querying again the service and potentially discover new replica instances.

Tourniquet is a cheap and race-safe solution to handle gRPC load balancing on Kubernetes.

More info:

Releases

No releases published

Packages

No packages published

Languages