Giter Club home page Giter Club logo

Comments (3)

jhallam3 avatar jhallam3 commented on May 27, 2024

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.

illarion avatar illarion commented on May 27, 2024

@jhallam3 just use roundrobin balancing, it will give you new backend each time, unless your http client has no keep alive connections

from gobetween.

jhallam3 avatar jhallam3 commented on May 27, 2024

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.