stackabletech / stackabletech/trino-lb
trinolb with stackable autoscaler: route queries to almost available trino cluster
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 37
- Forks
- 8
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
I know we already had a talk about that but I want to make it an issue to keep track of it 😊
It would be very good for our trino clusters to be listed as "ready" / "healthy for lb" when 9 of 10 workers are ready, but because of the statefulset not matching its desired replica count lb starts to queue everything although there is an almost ready cluster waiting for queries.
Background: our k8s cluster nodes get patched very often node by node and that leads to very long query queue-times, even though they would not be required because 90 percent of the cluster is up and running
is it possible to define a treshold of pods available or percent availability to make lb decide wether to route queries to the cluster or not? I know that you already get the trinocluster resource and look into the status, maybe thats something the trino operator should manage? If I remember correctly that's the reason why the lb currently doesn't support my case, isn't it?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the load balancer reads the TrinoCluster resource and handles StatefulSet desired replica counts during node patching. Compare that with the available worker count, then clarify where an availability threshold should be defined. Done means an agreed threshold can mark an almost-ready cluster healthy for routing, with the behavior validated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, rust
- Domain
- backend, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100