Comments (3)
hello , consul support aviliable only in 0.3 release.
If you want toy test it now - please download latest container : docker pull yyar/gobelween:latest
or build it manually from feat-#7-consul-discovery
from gobetween.
I am not using cosul..
This is my toml config, I tried wiht 0.1.0 version, all worked. but not with v0.2.0
[logging]
level = "debug" # "debug" | "info" | "warn" | "error"
output = "stdout" # "stdout" | "stderr" | "/path/to/gobetween.log"
[api]
enabled = true # true | false
bind = ":8888" # "host:port"
[api.basic_auth] # (optional) Enable HTTP Basic Auth
login = "admin" # HTTP Auth Login
password = "1111" # HTTP Auth Password
[servers.sample]
bind = "0.0.0.0:3000"
protocol = "tcp"
balance = "weight"
max_connections = 10
client_idle_timeout = "5s"
backend_idle_timeout = "5s"
backend_connection_timeout = "2s"
[servers.sample.healthcheck]
kind = "ping"
interval = "5s"
timeout = "500ms"
fails = 3
passes = 3
[servers.sample.discovery]
#kind = "static"
#static_list = [
"localhost:8000 weight=1",
"localhost:8001 weight=2"
#]
kind = "exec"
exec_command = ["/usr/local/sbin/test.sh"]
from gobetween.
thank you for ticket . we will fix it in 0.3 release .
for now [defaults] section is required
add this section to the top of config file and it will fix issue .
`
[defaults]
max_connections = 0
client_idle_timeout = "0"
backend_idle_timeout = "0"
backend_connection_timeout = "0"
`
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?
- load balance but dont stick HOT 3
- 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.