Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@pengye91
Copy link

We need the client to hold the server cookies information and send it back in the next rounds of querying next_page for deployment environments like K8S so that the query can hit the same pod.

@hantmac
Copy link
Member

hantmac commented May 27, 2023

@pengye91 If you deploy databend using helm-chart, you can add this line for service databendlabs/helm-charts@c2f38f5#diff-fc722f05e387eeac16dc6a7ee17d7266bb294d902e7e556443903ae2550af6a3R22, so it will hit in the same pod and no need to persist cookies.

@pengye91
Copy link
Author

@hantmac Adding this selector annotation will result in only one pod serving all traffics, including all handlers like HTTP and MySQL ones, which is not desirable for traffic loading. I think it's a more reasonable way to solve the issue by using the sticky session strategy in the Nginx ingress controller.

@hantmac hantmac merged commit 0ceff96 into databendlabs:main Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants