4ddc2b4481
* Update disco fixtures now we have partitions * Add virtual-admin-6 fixture with partition 'redirects' and failovers * Properly cope with extra partition segment for splitters and resolvers * Make 'redirects' and failovers look/act consistently * Fixup some unit tests
69 lines
2.2 KiB
Plaintext
69 lines
2.2 KiB
Plaintext
{
|
|
"Chain": {
|
|
"ServiceName": "virtual-admin-3",
|
|
"Partition": "default",
|
|
"Namespace": "default",
|
|
"Datacenter": "dc-gcp",
|
|
"Protocol": "http",
|
|
"StartNode": "splitter:virtual-admin-3.default.default",
|
|
"Nodes": {
|
|
"resolver:web.default.default.dc-aws": {
|
|
"Type": "resolver",
|
|
"Name": "web.default.default.dc-aws",
|
|
"Resolver": {
|
|
"ConnectTimeout": "15s",
|
|
"Target": "web.default.default.dc-aws"
|
|
}
|
|
},
|
|
"resolver:web.default.default.dc-gcp": {
|
|
"Type": "resolver",
|
|
"Name": "web.default.default.dc-gcp",
|
|
"Resolver": {
|
|
"ConnectTimeout": "15s",
|
|
"Target": "web.default.default.dc-gcp"
|
|
}
|
|
},
|
|
"splitter:virtual-admin-3.default.default": {
|
|
"Type": "splitter",
|
|
"Name": "virtual-admin-3.default.default",
|
|
"Splits": [
|
|
{
|
|
"Weight": 50,
|
|
"NextNode": "resolver:web.default.default.dc-gcp"
|
|
},
|
|
{
|
|
"Weight": 50,
|
|
"NextNode": "resolver:web.default.default.dc-aws"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Targets": {
|
|
"web.default.default.dc-aws": {
|
|
"ID": "web.default.default.dc-aws",
|
|
"Service": "web",
|
|
"Partition": "default",
|
|
"Namespace": "default",
|
|
"Datacenter": "dc-aws",
|
|
"MeshGateway": {
|
|
"Mode": "local"
|
|
},
|
|
"Subset": {},
|
|
"SNI": "web.default.default.dc-aws.internal.ede9daf4-b641-3954-5a52-15f4fd666f6e.consul",
|
|
"Name": "web.default.default.dc-aws.internal.ede9daf4-b641-3954-5a52-15f4fd666f6e.consul"
|
|
},
|
|
"web.default.default.dc-gcp": {
|
|
"ID": "web.default.default.dc-gcp",
|
|
"Service": "web",
|
|
"Partition": "default",
|
|
"Namespace": "default",
|
|
"Datacenter": "dc-gcp",
|
|
"MeshGateway": {},
|
|
"Subset": {},
|
|
"SNI": "web.default.default.dc-gcp.internal.ede9daf4-b641-3954-5a52-15f4fd666f6e.consul",
|
|
"Name": "web.default.default.dc-gcp.internal.ede9daf4-b641-3954-5a52-15f4fd666f6e.consul"
|
|
}
|
|
}
|
|
}
|
|
}
|