-
Notifications
You must be signed in to change notification settings - Fork 17
Groups
Zachary Boyd edited this page Sep 13, 2018
·
2 revisions
Instances can be assigned to one or more groups.
{
"instances": [
{
"Name": "instance-1",
"Group": [ "foo", "bar ]
},
{
"Name": "instance-2",
"Group": [ "foo" ]
},
{
"Name": "instance-3",
"Group": "baz"
}
]
}
If the proxyByName
(argument -n
) configuration property is set to "group" requests can be routed to a group of instances using the username field in the proxy URL. For example, using http://foo:@localhost:9080
as the proxy URL will send requests to "instance-1" and "instance-2" rotating them in a round-robin fashion.