Open rainkidpk opened 5 years ago
this is my config discovery service with consul:
"
[servers.default]
bind = "localhost:3000"
protocol = "tcp"
balance = "roundrobin"
[servers.default.discovery]
failpolicy = "keeplast"
interval = "0s"
timeout = "5s"
kind = "consul"
consul_host = "localhost:8500"
consul_service_name = "python1"
consul_service_tag = ""
consul_service_passing_only = true
consul_service_datacenter = ""
"
How do I create multiple endpoints with each service in consul?
@yyyar can you help?
hello @rainkidpk , actually as far as i see you want l7 features like path routing , but currently GB is l4(TCP/UDP)-only load balancer so if you want to expose several service on one port.
example of Haproxy:
" global //todo default //todo frontend localnode //name of frontend bind *:9999 //(port frontend server) option http-server-close acl app1 path_beg /main acl app2 path_beg /forum acl app3 path_beg /hello use_backend urlmain if app1 use_backend urlforum if app2 use_backend urlhello if app3 default_backend appdefault backend appdefault server app1 127.0.0.1:5000 check server app2 127.0.0.1:5001 check .... backend urlhello .... .... backend urlforum .....
listen stats bind :1936 stats enable stats uri / stats hide-version stats auth someuser:password "
I want to ask if gobetween does support such mechanism?