You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/10/09 10:12:31 UTC

[GitHub] [apisix] Drery opened a new issue, #8055: help request: how to set the backlog parameter

Drery opened a new issue, #8055:
URL: https://github.com/apache/apisix/issues/8055

   ### Description
   
   I want to know how to set the nginx backlog parameter.
   Nginx is set in the `listen` statement: `listen  80  backlog=1024`.
   But apisix can only set listen port such as:`node_listen: 80`.
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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] help request: how to set the backlog parameter [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1851719816

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
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


[GitHub] [apisix] monkeyDluffy6017 commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
monkeyDluffy6017 commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1273055852

   What @tokers suggested is that if you could submit a pr to put `backlog` into `config-default.yaml`.
   But if you just want to add `backlog` for yourself, you could try to modify the template file `apisix/cli/ngx_tpl.lua`.


-- 
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


[GitHub] [apisix] Drery commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
Drery commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1273986961

   Thanks, I'll give it a try, and in the meantime I'd like to ask if there are any other configurations that can cause connections to pile up。


-- 
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


[GitHub] [apisix] tzssangglass commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1281761371

   > 客户端是10:00:00分发起的请求,而查看网关及后端接口的日志发现,收到请求的时间是在10:00:10
   
   Is the client time strictly consistent with the server time?


-- 
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


[GitHub] [apisix] monkeyDluffy6017 commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
monkeyDluffy6017 commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1273989582

   What do you mean by `connections pile up`, could you show an example?


-- 
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


[GitHub] [apisix] tokers commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1272523861

   PR is welcome to support it.


-- 
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


[GitHub] [apisix] Drery commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
Drery commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1283486255

   It's completely consistent.
   And The request_time field in the nginx log is 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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: how to set the backlog parameter [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8055: help request: how to set the backlog parameter
URL: https://github.com/apache/apisix/issues/8055


-- 
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


[GitHub] [apisix] panhow commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
panhow commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1365552742

   You can check the metric `node_netstat_TcpExt_ListenOverflows`,if `node-exporter` was installed, to find out do you need to increase the listen backlog. 


-- 
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] help request: how to set the backlog parameter [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1870145867

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
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


[GitHub] [apisix] Drery commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
Drery commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1281749238

   The problem is that when a client accesses the backend API through our gateway, the error code 499 is often reported.  The cause is that the client times out for 10s. If no response is received for 10s, the client is disconnected. However, the weirdest thing is that the client sends the request at 10:00:00. After viewing the logs of the gateway and backend service, the request is received at 10:00:10, which is 10 seconds later. Because the access is from the Intranet, network problems can be eliminated. So I want to ask, what might be the cause of this situation?
   
   问题是这样的,有客户端通过我们网关访问后端接口时,经常报499错误码。原因是客户端设置了10s超时,超过10s未收到响应断开了。但是诡异的地方在于,客户端是10:00:00分发起的请求,而查看网关及后端接口的日志发现,收到请求的时间是在10:00:10,也就是10s以后,因为都是内网访问,基本可以排除网络问题,因此就怀疑请求是在网关这里被堆积了。所以想问下,这种情况可能会是什么原因导致的?
   


-- 
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


[GitHub] [apisix] tzssangglass commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1283646605

   > And The request_time field in the nginx log is 0.
   
   `request_time` is only the time for nginx to process the request, and does not include the transmission time for the network to send data to the client, if the network condition is poor.
   
   > 因此就怀疑请求是在网关这里被堆积了。所以想问下,这种情况可能会是什么原因导致的?
   
   You need to verify if the request is stacked first. You can grab network packets to see how long it takes to establish the link, Nginx's handshake queue.


-- 
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


[GitHub] [apisix] tokers commented on issue #8055: help request: how to set the backlog parameter

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8055:
URL: https://github.com/apache/apisix/issues/8055#issuecomment-1272523845

   PR is welcome to supporting it.


-- 
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