I am trying a multiple tunneler-enabled edge router setup in my ziti network as the following diagram.
I have one service "web" which contains both "web servers". I've tried the following host.v1
config:
{
"protocol": "tcp",
"address": "127.0.0.1",
"port": 8080,
"httpChecks": [],
"portChecks": []
}
and the traffic is routed randomly when I set the terminator strategy to "random".
Now I want to use "weighted" and for example distribute the traffic evenly. I've tried the following host.v2
config:
"terminators": [
{
"address": "127.0.0.1",
"listenOptions": {
"cost": 1,
"identity": "japan-gcore"
},
"port": 8080,
"protocol": "tcp"
},
{
"address": "127.0.0.1",
"listenOptions": {
"cost": 1,
"identity": "gcp"
},
"port": 8080,
"protocol": "tcp"
}
]
and associate it with the service.
However I cannot access the servers and the router log on japan-gcore
suggests that there is no terminator for the service
Oct 22 11:40:51 nick-vps ziti[1455168]: {"_context":"ch{edge}-\u003eu{classic}-\u003ei{MJAK}","chSeq":858,"connId":109,"edgeSeq":0,"error":"service 74DQjoretv4lcRI048NXbM has no terminators for instanceId ","file":"github.com/openziti/ziti/router/xgress_edge/listener.go:199","func":"github.com/openziti/ziti/router/xgress_edge.(*edgeClientConn).processConnect","level":"warning","msg":"failed to dial fabric","time":"2024-10-22T11:40:51.854Z","token":"c76c3177-7034-448b-bd18-2596a606b1b9","type":"EdgeConnectType"}
How do I set this up?
Also how does identity
and bindUsingEdgeIdentity
work in Listen Options host.v1
?