deploy: a KEDA external scaler, not a metrics-api shim
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 20
- Forks
- 2
- Avg merge
- 5h 10m
- Merged PRs (30d)
- 127
Description
The feedback said "no KEDA integration". That is stale — deploy/keda/ has three manifests
(scaled-object.yaml, scaled-object-prometheus.yaml, scaled-job.yaml) and they work.
But look at what they do:
triggers:
- type: metrics-api
metadata:
url: "http://flexiq-scaler:9091/api/scaler"
valueLocation: "metricValue"
metrics-api is KEDA's generic "scrape a number from a URL" trigger. It requires the operator to
deploy a second process (flexiq scaler), configure its address in two places, and hand-write
the valueLocation JSON path. Every queue is a separate ScaledObject with a separate scaler
URL. There is no discovery, no auth on the scaler endpoint, and a typo in valueLocation fails
silently as "no scaling".
KEDA's external scaler protocol is a small gRPC service — IsActive, GetMetricSpec,
GetMetrics, and optionally the StreamIsActive push variant. Implementing it gives:
type: externalwithscalerAddress, and queue selection as trigger metadata rather than a
URL query string- scale-to-zero driven by
IsActiveinstead of a threshold comparison on a scraped integer StreamIsActive, so a queue going from empty to non-empty wakes a replica immediately rather
than at the next 15-second poll- TLS and auth on the scaler channel, which the HTTP endpoint does not have
FlexiQ already serves gRPC. This is another small service on the same stack. Keep the existing
manifests working and documented — the metrics-api path is the right answer for someone who
does not want a second service.
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 with deploy/keda/scaled-object.yaml, deploy/keda/scaled-object-prometheus.yaml, and deploy/keda/scaled-job.yaml, then read KEDA's external scaler protocol and the existing gRPC service. Define how queue metadata, IsActive, GetMetricSpec, GetMetrics, and optional StreamIsActive map onto FlexiQ. Done means the external-scaler manifests and documentation work while the existing metrics-api path remains available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, kubernetes, rust
- Domain
- backend-api-design, distributed-systems, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100