RalapZ commented on issue #4740: URL: https://github.com/apache/apisix/issues/4740#issuecomment-890967914
> Also, the `502` is abnormal, are you sure the backend services are
available and the networking between APISIX and them are healthy?
{
"uris": [
"/apis/*"
],
"name": "xxx",
"methods": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD",
"OPTIONS",
"CONNECT",
"TRACE"
],
"hosts": [
"xxxx"
],
"plugins": {
"traffic-split": {
"disable": false,
"rules": [
{
"match": [
{
"vars": [
[
"http_platform_code",
"==",
"10003"
]
]
}
],
"weighted_upstreams": [
{
"upstream": {
"hash_on": "vars",
"name": "upstream_A",
"nodes": {
"10.49.8.2:8083": 10
},
"pass_host": "pass",
"scheme": "http",
"type": "roundrobin"
},
"weight": 1
}
]
},
{
"match": [
{
"vars": [
[
"http_platform_code",
"==",
"10004"
]
]
}
],
"weighted_upstreams": [
{
"upstream": {
"hash_on": "vars",
"name": "upstream_C",
"nodes": {
"10.49.8.2:8084": 10
},
"pass_host": "pass",
"scheme": "http",
"type": "roundrobin"
},
"weight": 1
}
]
},
{
"match": [
{
"vars": [
[
"http_platform_code",
"==",
"10005"
]
]
}
],
"weighted_upstreams": [
{
"upstream": {
"hash_on": "vars",
"name": "upstream_D",
"nodes": {
"10.49.8.2:8085": 10
},
"pass_host": "pass",
"scheme": "http",
"type": "roundrobin"
},
"weight": 1
}
]
},
{
"match": [
{
"vars": [
[
"http_platform_code",
"==",
"10006"
]
]
}
],
"weighted_upstreams": [
{
"upstream": {
"hash_on": "vars",
"name": "upstream_E",
"nodes": {
"10.49.8.2:8086": 10
},
"pass_host": "pass",
"scheme": "http",
"type": "roundrobin"
},
"weight": 1
}
]
},
{
"match": [
{
"vars": [
[
"http_platform_code",
"==",
"10007"
]
]
}
],
"weighted_upstreams": [
{
"upstream": {
"hash_on": "vars",
"name": "upstream_F",
"nodes": {
"10.49.8.2:8087": 10
},
"pass_host": "pass",
"scheme": "http",
"type": "roundrobin"
},
"weight": 1
}
]
},
{
"match": [
{
"vars": [
[
"http_platform_code",
"==",
"10008"
]
]
}
],
"weighted_upstreams": [
{
"upstream": {
"hash_on": "vars",
"name": "upstream_B",
"nodes": {
"10.49.8.2:8088": 10
},
"pass_host": "pass",
"scheme": "http",
"type": "roundrobin"
},
"weight": 1
}
]
}
]
}
},
"upstream": {
"nodes": [
{
"host": "10.49.8.11",
"port": 655,
"weight": 10
}
],
"timeout": {
"connect": 6,
"read": 6,
"send": 6
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass"
},
"status": 1
}
this is all my configuration;
the backend services are unavailable,this is not the problem ;but the proxy
result not match my expection
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
