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/11/04 06:22:17 UTC
[GitHub] [apisix] c591762009 opened a new issue, #8243: help request: apisix_nginx_http_current_connections中wait的值存在疑问
c591762009 opened a new issue, #8243:
URL: https://github.com/apache/apisix/issues/8243
### Description
存在一个问题,在使用prometheus插件时,我会发现apisix_nginx_http_current_connections这个指标,中state为waiting和active的值有时候一样多。这是为啥?因为本身该服务未对外使用,调用量会随之上升。如果是apisix与prometheus交互我可以理解总量的上升。但是等待量与活动量几乎要持平了,这是为何


### Environment
- APISIX version (run `apisix version`): 2.13
- 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: apisix_nginx_http_current_connections中wait的值存在疑问 [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8243:
URL: https://github.com/apache/apisix/issues/8243#issuecomment-1792159973
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] c591762009 commented on issue #8243: help request: apisix_nginx_http_current_connections中wait的值存在疑问
Posted by GitBox <gi...@apache.org>.
c591762009 commented on issue #8243:
URL: https://github.com/apache/apisix/issues/8243#issuecomment-1316519071
我是否可以理解为,当我的连接与apisix产生交互时,比如有10个连接,那么active就有10个,但是我实际上6个是在wait但是只有4个是在真实的write
--
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: apisix_nginx_http_current_connections中wait的值存在疑问 [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8243:
URL: https://github.com/apache/apisix/issues/8243#issuecomment-1816078543
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
Re: [I] help request: apisix_nginx_http_current_connections中wait的值存在疑问 [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8243: help request: apisix_nginx_http_current_connections中wait的值存在疑问
URL: https://github.com/apache/apisix/issues/8243
--
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 #8243: help request: apisix_nginx_http_current_connections中wait的值存在疑问
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8243:
URL: https://github.com/apache/apisix/issues/8243#issuecomment-1316696115
> 我是否可以理解为,当我的连接与apisix产生交互时,比如有10个连接,那么active就有10个,但是我实际上6个是在wait但是只有4个是在真实的write
No. I just said the difference.
--
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] c591762009 commented on issue #8243: help request: apisix_nginx_http_current_connections中wait的值存在疑问
Posted by GitBox <gi...@apache.org>.
c591762009 commented on issue #8243:
URL: https://github.com/apache/apisix/issues/8243#issuecomment-1316703574
> > 我是否可以理解为,当我的连接与apisix产生交互时,比如有10个连接,那么active就有10个,但是我实际上6个是在wait但是只有4个是在真实的write
>
> No. I just said the difference.
那我还是没太明白,这些wait,write和active的关系是什么?
--
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 #8243: help request: apisix_nginx_http_current_connections中wait的值存在疑问
Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #8243:
URL: https://github.com/apache/apisix/issues/8243#issuecomment-1316841918
> 那我还是没太明白,这些wait,write和active的关系是什么?
This data comes from Nginx's stub_status module, read more: http://nginx.org/en/docs/http/ngx_http_stub_status_module.html
```
Active connections
The current number of active client connections including Waiting connections.
Writing
The current number of connections where nginx is writing the response back to the client.
Waiting
The current number of idle client connections waiting for a request.
```
If you enabled keep-alive, `Waiting` is equal to `Active` - (reading+writing), this value depends on keepalive-timeout.
In APISIX, keep-alive is enable by default.
--
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 #8243: help request: apisix_nginx_http_current_connections中wait的值存在疑问
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8243:
URL: https://github.com/apache/apisix/issues/8243#issuecomment-1304379095
First of all, these calues are accumulated since apisix starts. An established connection will experience these stages. So equal values are desired.
Waiting is larger than active only if your apisix cannot handle connections in 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