feat: add gRPC client-side load balancing for trillian-logserver#1752
feat: add gRPC client-side load balancing for trillian-logserver#1752
Conversation
Signed-off-by: kdacosta0 <kristian.dacosta.menezes@gmail.com>
PR TypeEnhancement Description
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
Signed-off-by: kdacosta0 <kristian.dacosta.menezes@gmail.com>
|
Waiting for sigstore/rekor#2812 |
Summary
trillian-logserverservice to headless to enable gRPC client-sideload balancing (round_robin), fixes severely uneven CPU distribution
across replicas caused by the default
pick_firstpolicygrpc_default_service_configflag torekor-serverfor round_robin.services are deleted and recreated)
Test
trillian-logserverload balances evenlyacross replicas after the change
headless service works correctly
Notes
ctlogalready load balances by default, no changes neededfulcio->ctloguses HTTP/2 via a regular ClusterIP service; improvingthat path is out of scope for this fix
Known limitation
New
trillian-logserverreplicas will not receive traffic until an existing connection is lost, which triggers DNS re-resolutionref: SECURESIGN-2935