DandyDeveloper / charts

Various helm charts migrated from [helm/stable] due to deprecation
https://dandydeveloper.github.io/charts
Apache License 2.0
157 stars 145 forks source link

[chart/redis-ha][service to expose the read only replicas] #264

Open MrNghia123 opened 11 months ago

MrNghia123 commented 11 months ago

Thank you for an awesome chart. Is your feature request related to a problem? Please describe. Currently there is no service to expose only the read replicas, so we can not distribute read-only loads.

Describe the solution you'd like A service to expose the read-only replicas. Preferably it can point to the master when there is no replicas left.

Describe alternatives you've considered Using the headless service -redis-ha. Is it supposed to return a random endpoint from both the master and the replicas? I am not sure if it is a best practice. Also, we want to exclude the master.

Additional context In our app we have 1 master and 2 replicas. If we can read only from the replicas we can share the load better in normal condition.

DandyDeveloper commented 9 months ago

@MrNghia123 If its read-only workloads, can the round robin of the standard service / headless service fulfil your needs?

That can effective ship any connections you would have to an instance and since they would be read-only workloads, any instance can serve?