Comments (2)
Hi @adeelaziz7
Your config seems not complete.
Could your provide full healthcheck section?
ping_timeout_duration
is not a option for exec
healthcheck. You probably need to set timeout
property instead.
Here is valid config options for exec
from docs:
[servers.default.healthcheck] # (optional)
interval = "2s" # (required) healthcheck running interval
timeout = "0s" # (required) max time for healthcheck to execute until mark as unhealthy
fails = 5 # (optional) consecutive number of checks that should fail, to mark backend as unhealthy
passes = 2 # (optional) consecutive number of checks that should pass, to mark backend as healthy
initial_status = "healthy" # (optional) "healthy" | "unhealthy"
kind = "exec"
exec_command = "/path/to/healthcheck.sh" # (required) command to execute
exec_expected_positive_output = "1" # (required) expected output of command in case of success
exec_expected_negative_output = "0" # (required) expected output of command in case of failure
from gobetween.
Hi @yyyar Thanks for the quick response, it worked! I had mixed up ping configuration with exec.
from gobetween.
Related Issues (20)
- 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
- exec healthcheck does not close bash HOT 1
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.