ByteVeda / ByteVeda/flexiq

deploy: a KEDA external scaler, not a metrics-api shim

Open
#850 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

deployment enhancement P2
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: external with scalerAddress, and queue selection as trigger metadata rather than a
    URL query string
  • scale-to-zero driven by IsActive instead 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.