Comments (3)
this is what I have
[logging]
level = "debug"
#output = "/logs/log.txt"
output = "stdout"
format = "text"
[defaults]
max_connections = 0 # Maximum simultaneous connections to the server
client_idle_timeout = "0" # Client inactivity duration before forced connection drop
backend_idle_timeout = "0" # Backend inactivity duration before forced connection drop
backend_connection_timeout = "0" # Backend connection timeout (ignored in udp)
[servers.sample]
protocol = "tcp"
bind = "0.0.0.0:5555"
balance = "iphash"
backend_connection_timeout = "5s"
[servers.sample.discovery]
kind = "docker"
interval = "10s"
timeout = "2s"
docker_endpoint = "http://localhost:2375"
docker_container_private_port = 8081
docker_container_label = "proxied=true"
[servers.sample.healthcheck]
fails = 1
passes = 1
interval = "60s"
timeout = "1s"
kind = "ping"
[servers.sample2]
protocol = "tcp"
bind = "0.0.0.0:3000"
balance = "roundrobin"
max_connections = 1 # Maximum simultaneous connections to the server
[servers.sample2.discovery]
kind = "static"
static_list = [
"localhost:22991 weight=40 priority=1",
"localhost:22992 weight=40 priority=1",
"localhost:22995 weight=40 priority=1"
]
from gobetween.
@jhallam3 just use roundrobin balancing, it will give you new backend each time, unless your http client has no keep alive connections
from gobetween.
from gobetween.
Related Issues (20)
- gobetween - healthcheck - exec timeout error HOT 2
- Path syntax issue on Windows HOT 2
- Project dead and no maintainers? HOT 3
- How to secure backend servers with gobetween?
- My config doesn't balance data HOT 1
- Still active? HOT 1
- gobetween hangs HOT 6
- API: Allow updating existing servers HOT 2
- Filter requests
- Idea: Client side load balancing using metrics
- Using unix sockets as backend ?
- DNSSEC breaks SRV discovery
- bind\redirect by domain under CloudFlare
- Ubuntu | Apparmor enforcing HOT 1
- Gobetween main URL is not working
- Prometheus metrics listener crashes randomly at startup
- bind on a specific address when balancing messages
- LXD Discovery Needs Project Support
- Specify which server to use for specific host requests. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gobetween.