This is my config.
[servers.gklb]
bind = "localhost:3000"
protocol = "tcp"
balance = "weight"
max_connections = 10000
client_idle_timeout = "10m"
backend_idle_timeout = "10m"
backend_connection_timeout = "2s"
[servers.gklb.discovery]
kind = "static"
static_list = [
"IP server 1:80 weight=1",
"IP server 2:80 weight=1",
]
[servers.gklb.healthcheck]
fails = 1
passes = 1
interval = "2s"
timeout="1s"
kind = "ping"
ping_timeout_duration = "500ms"
And I want [bind = "localhost:3000"] is my domain which is used by end user on your browser.
go: github.com/yyyar/gobetween@v0.0.0-00010101000000-000000000000 requires
github.com/flosch/pongo2@v0.0.0-20181225140029-79872a7b2769 requires
github.com/go-check/check@v1.0.0-20180628173108-788fd7840127: invalid pseudo-version: major version without preceding tag must be v0, not v1
Following is the Scenario I need to achieve:
A Redis master-slave replication setup with sentinel which will be load balanced by gobetween where gobetween will direct all write hits to the master.
This is possible with HAProxy as it checks which node is master internally.
link-> https://karlstoney.com/2015/07/23/redis-sentinel-behind-haproxy/
Can gobetween Do the same?
Hello everyone, I try to get a minimal gobetween UDP sample up and running. I get the error message:
udp-lb | 2020-02-09 19:30:35 [FATAL] (manager): udp protocol requires to specify at least one of (client|backend)_idle_timeout, udp.max_requests, udp.max_responses
I ran out of ideas why this happens. This here is my configuration file and the docker-compose.yml. Any hints would be appreciated.
@nickdoikov Got it to work, thanks a lot for your help. My next goal is to test the transparent transport. I moved to the latest docker image cause the docs mention it is available in 0.8.0+. Here is my configuration file. There is a hint in the docs which means:
if true - work in transparent mode, when forwarded udp packets have client source address (requires additional host configuration) (since 0.8.0)
Anyone with some hints where I can read which additional host configurations are required? Thank you in advance
nc -z $1 $2
if [ $? -eq 0 ]
then
echo -n 1 ;
else
echo -n 0 ;
fi
Hi everyone I just started using Gobetween I have two webservers running on port 91 and 92 on the same server i use roundrobin for the servers so that it will evenly distribute the traffic between the two webservers but i am having an issue. when you login to the site and then try to go to a different page it will sometimes move you to the next server in the list my config file is the following :[servers.website]
protocal = "tcp"
bind = "0.0.0.0:90"
balance = "roundrobin"
maxconnections = 10000
client_idle_timeout = "40m"
backend_idle_timeout = "40m"
backend_connection_timeout = "2m"
[servers.website.discovery]
kind = "static"
static_list = [
"127.0.0.1:91",
"127.0.0.1:92"
]
[servers.website]
protocal = "tcp"
bind = "0.0.0.0:90"
balance = "roundrobin"
maxconnections = 10000
client_idle_timeout = "40m"
backend_idle_timeout = "40m"
backend_connection_timeout = "2m"
[servers.website.discovery]
kind = "static"
static_list = [
"127.0.0.1:91 weight=1",
"127.0.0.1:92 weight=1"
]