Code Monkey home page Code Monkey logo

Comments (3)

nickdoikov avatar nickdoikov commented on May 25, 2024

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.

rnagarajan12 avatar rnagarajan12 commented on May 25, 2024

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.

nickdoikov avatar nickdoikov commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.