[vpsFree.cz: community-list] increased the local port range

Radim Daniel Pánek rdpanek at gmail.com
Thu May 9 21:56:17 CEST 2019


Ahoj, diky.

Delam na zakazku kratke performance testy pro klienta, ktere nevytari ani 1.000 VU a generator ma v logu java.net.NoRouteToHostException: Cannot assign requested address (Address not available) 

A docetl jsem se, ze jde o typicky problem generatoru perftestu a resenim je zvysit rozsah portu, snizeni echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout a recyklace echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle

Generator obsahuje http klienta, ktery v jednom vlakne / 1 VU natahuje webovou stranku.

Je to mozne na techto VPS?

Diky Dan


> 9. 5. 2019 v 21:49, Stanislav Petr <glux at glux.org>:
> 
> Na OpenVZ (pripadne i najinych technologiich kontejneru) tohle muze byt trochu problem - vsichni uzivatele sdili jedno jadro a maji pouze rozdilne sitove rozhrani a rozsah alokaci portu jadro neumi resit pro kazde rozhrani zvlast (jestli je na to do openvz nejakej patch nevim, ale docela bych se divil kdyby ano, protoze ip stack je spolecnej jen je rozdelenej do namespaces). Spis nam zkus napsat jakej je duvod toho ze ti nestaci odchozi porty a treba vymyslime jine reseni (napr. pokud ti spoustu portu obsadi veci jako komunikace s ruznymi cache servery jako memcached nebo redis, coz je castej problem uzivatelu tak tam pomaha prejit z TCP socketu na UNIX sockety, coz ma i jine pozotivni ucinky na server i aplikaci… Treba ti pomuzeme najit zpusob jak tohle omezeni kontejneru obejit.
> 
>> Stanislav Petr
> 
>> 9. 5. 2019 v 21:34, Radim Daniel Pánek <rdpanek at gmail.com <mailto:rdpanek at gmail.com>>:
>> 
>> Ahoj, potrebuji zvysit lokalne rozsah portu 
>> 
>> echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range
>> -su: /proc/sys/net/ipv4/ip_local_port_range: Permission denied
>> 
>> 
>> A docetl jsem se toto:
>> This server is a VPS and it is running in a OpenVZ container and I'm not allowed to modify any kernel parameter of that container.
>> 
>> 
>> Jak toho muzu docilit? Diky Dan
>> 
>> _______________________________________________
>> Community-list mailing list
>> Community-list at lists.vpsfree.cz <mailto:Community-list at lists.vpsfree.cz>
>> http://lists.vpsfree.cz/listinfo/community-list
> 
> _______________________________________________
> Community-list mailing list
> Community-list at lists.vpsfree.cz
> http://lists.vpsfree.cz/listinfo/community-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vpsfree.cz/pipermail/community-list/attachments/20190509/0f5f7357/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4430 bytes
Desc: not available
URL: <http://lists.vpsfree.cz/pipermail/community-list/attachments/20190509/0f5f7357/attachment-0001.bin>


More information about the Community-list mailing list