zlb icon indicating copy to clipboard operation
zlb copied to clipboard

Feature request: Make pound Threads variable parametric

Open ismailyenigul opened this issue 3 years ago • 7 comments

From https://linux.die.net/man/8/pound

Threads nnn
How many worker threads Pound should use. Default: 128. Tune this parameter to improve performance.
If you set it too high, Pound will use a lot memory, and some CPU will be wasted on context switches. 
If you set it too low requests may be served with some delay. Experiment to find the optimal value for your installation.

Zevenet UI(Community edition 5.0.2) does not provide an option to change Threads variable for HTTPS Farms. Under high traffic, default value 128 is not enough. We have to update limits.conf to have more than 1024 max open files and increase add Threads value to pounds config in /usr/local/zevenet/config

That would be great if you can make this variable set/editable over FARM settings.

Thanks

ismailyenigul avatar Dec 21 '20 12:12 ismailyenigul

Zevenet 5.10 doesn't use pound anymore, it uses zproxy instead, faster and improved reverse proxy developed by ZEVENET dev team.

Thanks

El lun., 21 dic. 2020 13:54, ismail yenigul [email protected] escribió:

From https://linux.die.net/man/8/pound

Threads nnn How many worker threads Pound should use. Default: 128. Tune this parameter to improve performance. If you set it too high, Pound will use a lot memory, and some CPU will be wasted on context switches. If you set it too low requests may be served with some delay. Experiment to find the optimal value for your installation.

Zevenet UI(Community edition) does not provide an option to change Threads variable for HTTPS Farms. Under high traffic, default value 128 is not enough. We have to update limits.conf to have more than 1024 max open files and increase add Threads value to pounds config in /usr/local/zevenet/config

That would be great if you can make this variable set/editable over FARM settings.

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zevenet/zlb/issues/93, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBQEPADHUZ2UEIS3QOB5OLSV5AQPANCNFSM4VEFZVTA .

emiliocampos-zevenet avatar Dec 21 '20 13:12 emiliocampos-zevenet

Thanks for your prompt reply. Then my question is same for zproxy. Does zevenet 5.10 supports updating Threads parameter of zproxy on UI? Best regards

ismailyenigul avatar Dec 21 '20 14:12 ismailyenigul

Hi,

zproxy is not developed in the concept of the thread but events, so this parameter doesn't make sense in this new feature.

Regards

El lun, 21 dic 2020 a las 15:00, ismail yenigul ([email protected]) escribió:

Thanks for your prompt reply. Then my question is same for zproxy. Does zevenet 5.10 supports updating Threads parameter of zproxy on UI? Best regards

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zevenet/zlb/issues/93#issuecomment-748987925, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBQEPHQQILXGDZLETASPU3SV5IH3ANCNFSM4VEFZVTA .

-- Emilio CamposZEVENET Teamwww.zevenet.com https://www.linkedin.com/company/zevenet https://twitter.com/zevenet https://www.facebook.com/zevenet https://github.com/zevenet [image: ZEVENET] https://www.zevenet.com/signature/

DISCLAIMER: This message contains confidential information and is intended only for the individual named. If you are not the named addressee please notify the sender immediately by email if you have received it by mistake and delete it from your system, you should not disseminate, distribute or copy this email in whole or in part.

emiliocampos-zevenet avatar Dec 21 '20 14:12 emiliocampos-zevenet

Hi I see something about threads at https://github.com/zevenet/zproxy/blob/3fcf8055781c4da139e2b05e4041ebc6a1d3e704/src/config/config.cpp#L88 and https://github.com/zevenet/zproxy/blob/master/docs/zproxy.8#L222 anyway, We experienced connection timeouts with pounds when we have around 500 total connections(IDLE,ESTABLISHED etc) and I fixed the problem by setting threads to 1024. In zproxy, is there any parameter to set max connections limit?

ismailyenigul avatar Dec 21 '20 15:12 ismailyenigul

Hi Ismail, there is not any parameter for that purpose in zproxy.

Thanks

El lun, 21 dic 2020 a las 16:05, ismail yenigul ([email protected]) escribió:

Hi I see something about threads at

https://github.com/zevenet/zproxy/blob/3fcf8055781c4da139e2b05e4041ebc6a1d3e704/src/config/config.cpp#L88 and https://github.com/zevenet/zproxy/blob/master/docs/zproxy.8#L222 anyway, We experienced connection timeouts with pounds when we have around 500 total connections(IDLE,ESTABLISHED etc) and I fixed the problem by setting threads to 1024. In zproxy, is there any parameter to set max connections limit?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zevenet/zlb/issues/93#issuecomment-749019544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBQEPBUEOHYWGR3CCFE2F3SV5P5HANCNFSM4VEFZVTA .

-- Emilio CamposZEVENET Teamwww.zevenet.com https://www.linkedin.com/company/zevenet https://twitter.com/zevenet https://www.facebook.com/zevenet https://github.com/zevenet [image: ZEVENET] https://www.zevenet.com/signature/

DISCLAIMER: This message contains confidential information and is intended only for the individual named. If you are not the named addressee please notify the sender immediately by email if you have received it by mistake and delete it from your system, you should not disseminate, distribute or copy this email in whole or in part.

emiliocampos-zevenet avatar Dec 21 '20 17:12 emiliocampos-zevenet

Hi,

Does it mean that no need to configure any settings to increase max connections(maybe it is determined automatically)? Or you don't support it yet in zproxy? What is the maximum concurrent connection(HTTPS) does zproxy support?

ismailyenigul avatar Dec 28 '20 20:12 ismailyenigul

No, you don't need to change any parameter to manage threads as zproxy doesn't manage threads but events.

On the other hand, related to the number of concurrent connections, it is related to your app mostly, anyway have a look at this benchmark in order to give you an idea.

https://github.com/zevenet/zproxy/tree/master/benchmark

Thanks!

El lun, 28 dic 2020 a las 21:44, ismail yenigul ([email protected]) escribió:

Hi,

Does it mean that no need to configure any settings to increase max connections(maybe it is determined automatically)? Or you don't support it yet in zproxy? What is the maximum concurrent connection(HTTPS) does zproxy support?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

--

Emilio Campos

ZEVENET Team

www.zevenet.com

DISCLAIMER: This message contains confidential information and is intended only for the individual named. If you are not the named addressee please notify the sender immediately by email if you have received it by mistake and delete it from your system, you should not disseminate, distribute or copy this email in whole or in part.

emiliocampos-zevenet avatar Dec 29 '20 07:12 emiliocampos-zevenet