SAP / cap-operator

CAP Operator manages and automates the lifecycle of multi-tenant SAP Cloud Application Programming Model (CAP) based applications on Kubernetes.
https://sap.github.io/cap-operator/
Apache License 2.0
18 stars 6 forks source link

Feature request: Configurable DestinationRule and Virtual Service #75

Closed SujitThonse closed 3 months ago

SujitThonse commented 6 months ago

Feature: Configurable DestinationRule and Virtual Service

Problem According to the CAP Operator documentation, we should be able to use more replicas of the “CAP Appllication” for scaling purposes. In our application, we tested it by using 3 replicas. But the expected “Round Robin” is not working. 98% of the requests are forwarded to the same replica while 2 other replicas are idle. This could be the case if there is a kind of statefulness like “session stickiness”. We should ensure that we do Round Robin to distribute the load.

Suggession

Pavan-SAP commented 5 months ago

Hi Sujit,

As most requests are routed via app router if there is already a logon session a sticky cookie is used to ensure the same pod gets the consequent requests. This is done to ensure app router functions as expected. See: https://www.npmjs.com/package/@sap/approuter#scaling

Hence we do not plan to expose configuring/overwriting our Destination Rule / Virtual Service configuration as of now.

Thanks & Regards, Pavan