gatewayd-io / helm-charts

Kubernetes Helm Charts for GatewayD
Apache License 2.0
5 stars 2 forks source link

Gatewayd is no longer stateless after adding LoadBalancer #16

Open sinadarbouy opened 2 months ago

sinadarbouy commented 2 months ago

Description:

After adding a LoadBalancer to Gatewayd, the application is no longer stateless. This change impacts the architecture and might require adjustments to the Helm chart and deployment strategy.

For example, if we use strategies like weighted load balancing or consistent hashing, data might be stored in the memory of one pod. If a second client request is routed to another pod, that pod will be unaware of the previous state, potentially leading to inconsistent behavior.

Proposal:

Suggested Next Steps:

Any thoughts or feedback on this approach would be appreciated!

mostafa commented 2 months ago

This sounds good and I already wrote an epic ticket a while ago that relates to consensus here:

I'm thinking about implementing Raft, but let's continue the discussion on that ticket and possibly create more linked ticket to that one.