Skip to content

Comments

feat(haproxy): enable dynamic load balancing for SDK replicas using server-template#11

Open
KhaledSaiidi wants to merge 6 commits intomainfrom
fix/scaling-sdk
Open

feat(haproxy): enable dynamic load balancing for SDK replicas using server-template#11
KhaledSaiidi wants to merge 6 commits intomainfrom
fix/scaling-sdk

Conversation

@KhaledSaiidi
Copy link
Collaborator

This PR updates HAProxy sdk_scheme_adapter_backend to use server-template with Docker DNS instead of a single server entry

Comment on lines 160 to 163
## Without dynamic DNS resolution
# server sdk_scheme_adapter1 sdk-scheme-adapter:4000 check
## To use dynamic DNS resolution with single replica
server sdk_scheme_adapter1 sdk-scheme-adapter:4000 resolvers docker resolve-prefer ipv4 check
## To use dynamic DNS resolution with multiple replicas
# server-template sdk 1-5 sdk-scheme-adapter:4000 resolvers docker resolve-prefer ipv4 check
# Use Docker DNS resolver to dynamically discover multiple SDK replicas
resolvers docker
# Multi-replica dynamic DNS resolution (works for 1 replica or 3+)
server-template sdk 1-5 sdk-scheme-adapter:4000 resolvers docker resolve-prefer ipv4 check init-addr none No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KhaledSaiidi can you keep the other lines for reference? I got some issue when I used this for single replica, couldn't remember exactly, but just incase.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure yes @vijayg10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants