Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Illarion Kovalchuk
@illarion
I cleaned vendor
make clean
make deps
make dist
and I get freebsd build
Illarion Kovalchuk
@illarion
But you're right, the freebds dependency has an error - it uses undefined variable 'p'
The question is why crosscompilation doesn't use it
bintut @bintut waves
Marvin Pascual
@bintut
I wonder how to support multiple groups of backends in gobetween-0.6.0
Is it possible? Say, the first backend group is WordPress, the second backend group is nginx w/ static contents, and so on and so forth...
Illarion Kovalchuk
@illarion
@bintut so what is your question?
Marvin Pascual
@bintut
How to configure gobetween to be the reverse proxy for multiple groups of backend services?
Does gobetween support SNI for multiple backend services?
Illarion Kovalchuk
@illarion
yes sni is supported
it should be described in documentation on gobetween.io and in wiki of github project
Marvin Pascual
@bintut
I'm sorry but I can't find in the documentation how to configure multiple backends on a single gobetween
Illarion Kovalchuk
@illarion
see discovery section
Marvin Pascual
@bintut
gobetween will be listening on a single HTTPS port. How can I differentiate between different backend services? How gobetween decides that the incoming traffic is for backendA and not for backendB, and so on and so forth?
Illarion Kovalchuk
@illarion
using sni

kind = "static"

static_list = [ # (required) [

"localhost:8000 weight=5", # "<host>:<port> weight=<int>" weight=1 by default

"localhost:8001 sni=www.foo.com" # ]

]

sorry for formatting, it is hard to copy paste examples using phone
take a look at config.toml
pietrodm
@pietrodm
Dear community, i'm setting up GoBetween 0.6 under Win2012 r2 core. We have a issue in balancing 2 web servers ad the developer asked if possible to set affinty / persistence. can someone help with this item cos i did not find anything on GoBetween docs . Thank You in advance
Hilko Lantinga
@HilkoLantinga
I've got a TCP/UDP service with port sharing. Is there a way to let UDP follow the TCP persistence?
jr-ps
@jr-ps
Hi, I'm proxying UDP, with no healthchecks and both client_ and backend_idle_timeouts set to 1m. I have two servers configured statically. I notice if I stop the service on one of them, gobetween notices within a few seconds and starts sending the traffic to the other one. The error logged is (udp/server/session): Failed to read from backend: read udp 192.168.60.1:35660->192.168.60.12:6121: read: connection refused. This is great, I'm just wondering what specifically the failover behavior is. Since it's UDP there's no session or ACKs, etc to keep track of at the transport layer, and I'm not sure what connection refused means in the context of UDP. Thanks.
jr-ps
@jr-ps
I think I can answer my own question: the read from the udp connection failed because it received an ICMP port unreachable message on it, because traffic was being sent to the backend on the closed port, which responded with the icmp
which prompts gobetween to close that session and try again on the other server
Novanet
@Novanet-
Encountering an issue with debug logging statements in v0.6.1 yyyar/gobetween#202
Shantanu Gadgil
@shantanugadgil
Yay! 0.7.0 released! :D
Gr33nbl00d
@Gr33nbl00d
Question regarding tls termination: is mutual tls supporter? Are there plans to support certificate revocation lists?
gimmic
@gimmic
Hmm.
I'm not seeing actual roundrobin UDP
with a stream- it looks like it picks a backend host and delivers all packets to it
I assume it thinks it is a stream and delivers to the first host it picks.
I'm wondering if I can force it to cycle destinations to do true load balancing rather than trying to some kind of session-based load balancing..
Craig Sayler
@csayler
can gobetween be installed in a external LB infront of the master node API's?
Craig Sayler
@csayler
My company is looking at using you as a load balancer for our internal k8s installation. i have a meeting soon and would love to get a answer!
Shantanu Gadgil
@shantanugadgil
@csayler Gobetween can definitely used as frontend LB. By "external", I assume you mean "public facing" ?
BTW, have checked the wiki at: https://github.com/yyyar/gobetween/wiki
in case you have more queries, it would be good to know about your setup details :)
Eli Sarver
@elisarver
Hi. Has anyone had success with AMQP behind gobetween? I've tried using gb directly over three rabbitmq servers in hash1 mode, but I'm getting odd errors in response. I can proxy with amqproxy fine, but that solution doesn't handle multiple backends, so I thought I'd bridge the two to get some sort of HA to my proxy (running 3 nodes within a kubernetes cluster)
Illarion Kovalchuk
@illarion
Hi @elisarver . Can you please show your config?
dncastilho
@dncastilho
Hey guys, I've just downloaded the latest version of gobetween. I then pretty much used the default provided config to test load balancing to a couple websphere app instances I already had running. however, when hitting the load balancer I am actually redirected to the particular WAS instance URL, which is obviously not what I wanted. I couldn't find anything in the documentation in relation to this, is that expected behaviour?
dncastilho
@dncastilho
FYI, I found out what the problem was. Websphere itself was redirecting. This article is what I had to do to fix it https://www-01.ibm.com/support/docview.wss?uid=swg21569667
K.S.Vignesh
@vignasivakara_twitter

Hello All,

Can we setup MSSQL Mirrored DB for failover in GoBetween?
If the primary database is failed all request should move to secondary IP

Justin Butterworth
@JustinButterwo8_twitter
Hi Guys, has anyone had any luck with the exec health check in windows? I have a really simple scenario which is more failover then load balance, I'm using a batch file and curl to check which site is active but whatever "expected output" I put in the config and the bat file it's always "unexpected" - batch file copies the example in the documentation albeit with my value
@echo off
curl -o nul --silent --head --fail -Is http://%1/
IF /I "%ERRORLEVEL%" NEQ "0" (
echo|set /p Dummy="DOWN"
)ELSE (
echo|set /p Dummy="UP"
)
and the healthcheck is
kind = "exec"
interval = "10s"
timeout = "2s"
exec_command ="C:\myscript\gobetween\healthcheck\exec_healthcheck.bat" # (required) command to execute
exec_expected_positive_output = "UP" # (required) expected output of command in case of success
exec_expected_negative_output = "DOWN" # (required) expected output of command in case of failure
status is always

2019-06-20 07:07:37 [WARNI] (healthcheck/exec): Unexpected output: "UP"

2019-06-20 07:07:38 [WARNI] (healthcheck/exec): Unexpected output: "DOWN"

2019-06-20 07:07:47 [WARNI] (healthcheck/exec): Unexpected output: "UP"

2019-06-20 07:07:48 [WARNI] (healthcheck/exec): Unexpected output: "DOWN"

so it's working and it's seeing it but I can't get the output to match, tried quoting, unquoting etc
Nick Doikov
@nickdoikov
try to use numerical values for up (1) and down (0)
Illarion Kovalchuk
@illarion
why do you do this weird echo | set /p thing?
why not jist echo "UP" or echo "DOWN" ?