Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify which server to use for specific host requests. #335

Open
Spamm00r opened this issue Mar 16, 2023 · 2 comments
Open

Specify which server to use for specific host requests. #335

Spamm00r opened this issue Mar 16, 2023 · 2 comments

Comments

@Spamm00r
Copy link

Hi,

I have go between installed to spread load over 4 different servers. This works fine, but I want outgoing requests to for example myserver.com or a whitelist of hosts to go always over the same server instead of using roundrobin or random allocation of my 4 servers.

Is this somehow possible with the current gobetween settings or can this be implemented?

That would be very helpful.

@RupeshSangoi
Copy link

Did you try balance=iphash or iphash1. This should work.

@Spamm00r
Copy link
Author

iphash or iphash1 routes all traffic over the same backend instead of spreading it over all the backends, because the traffic is coming from the same client IP.

I can achieve the same thing by dropping gobetween and making direct connections. That's not what I want.

On the contrary, I want 99% of all my outgoing connections through gobetween to be balanced over all my backends, and preferably using the fastest backend available. Right now I achieve this by using roundrobin.

Only for specific requests to certain websites, where it is necessary to always have the same IP, I want gobetween to always use the same Backend instead of a random one. If I use roundrobin on these connections, I will be requesting always with a random IP of one of my Backends. I want to control and ensure what backend these specific connections use and not leave it to roundrobin.

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

No branches or pull requests

2 participants