JiaYueHuang edited a comment on issue #6034:
URL: https://github.com/apache/apisix/issues/6034#issuecomment-1011057678
> Look like you have set the upstream's timeout to 30s, which is relatively
short for TCP connection. Does it cause the problem?
My upstream's parameters are shown below:
```
function create_upstream {
upstream_id=$1
req_body=$2
#jy: 去除请求体中的空格
req_body=`echo ${req_body} | sed 's/ //g'`
#echo ${req_body}
curl
http://${apisix_ip}:${apisix_port}/apisix/admin/upstreams/${upstream_id} -H
"X-API-KEY: ${api_key}" -X PUT -d ''${req_body}''
}
create_upstream ${upstream_id} '{
"type":"roundrobin",
"nodes":'${node_info}',
"timeout": {
"connect": 15,
"send": 15,
"read": 15
},
"checks": {
"active": {
"http_path": "/",
"healthy": {
"interval": 2,
"successes": 2
},
"unhealthy": {
"interval": 2,
"http_failures": 3
}
}
},
"keepalive_pool.size": 100,
"keepalive_pool.idle_timeout": 361,
"keepalive_pool.requests": 10000,
"name": "'${upstream_name}'",
"desc": "'${upstream_desc}'"
}'
```
I notice that the default timeout is 15, but the error in my log file seems
not related to it, I will try to set it bigger and try to see again.
--
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]