apisix icon indicating copy to clipboard operation
apisix copied to clipboard

strengthen: The ulimit setting should be checked when APISIX starts,if user limits too small(like 1024),APISIX should prompt to modify, otherwise the performance is low

Open idbeta opened this issue 6 years ago • 5 comments

Issue description

The ulimit setting should be checked when APISIX starts,if user limits too small(like 1024), APISIX should prompt to modify, otherwise, the performance is low

Environment

  • apisix version (cmd: apisix version):
  • OS:

idbeta avatar Oct 19 '20 08:10 idbeta

I don't think this the job of Apache APISIX

moonming avatar Oct 21 '20 03:10 moonming

if user limits too small(like 1024), APISIX should prompt to modify, otherwise, the performance is low

We need this kind of prompt.

If CLI can find some environment setting problems before APISIX starting, the user will be reminded by a warning message and how to fix it.

It makes it easier for users to use APISIX quickly and correctly.

For example, check the value of ʻulimit -n`.

membphis avatar Oct 21 '20 05:10 membphis

got it Thanks, Ming Wen Twitter: _WenMing

YuanSheng Wang [email protected] 于2020年10月21日周三 下午1:55写道:

if user limits too small(like 1024), APISIX should prompt to modify, otherwise, the performance is low

We need this kind of prompt.

If CLI can find some environment setting problems before APISIX starting, the user will be reminded by a warning message and how to fix it.

It makes it easier for users to use APISIX quickly and correctly.

For example, check the value of ʻulimit -n`.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apache/apisix/issues/2467#issuecomment-713322581, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJZBK77UTIQ2UC7FYD55H3SLZZVFANCNFSM4SVZT47Q .

moonming avatar Oct 21 '20 06:10 moonming

When I run apisix, I can see this notice in error.log 2020/10/25 06:18:31 [notice] 255449#255449: getrlimit(RLIMIT_NOFILE): 999999:999999 This log shows the current value and the max value of opening files.

The user could check the logs and know the limits of systems.

HelloBug0 avatar Oct 25 '20 06:10 HelloBug0

Already done.

spacewander avatar Oct 03 '21 14:10 spacewander