📜 ⬆️ ⬇️

Hosting FastVPS.ru or why OpenVZ is evil

FastVPS.ru. , . , bind , 8 , , ftp , postfix, trac xml rpc . … FastVPS - OpenVZ.

, , , . , , . HOW-TO best practice debian, , , .

, Enter . , ( ). ssh :
Cannot allocate memory: fork: Unable to fork new process ( ). . , - .

, , , unix linux ( , kill – , , -) — « ». , , , linux . .

top, ps, free, apache2ctl fullstatus, , — ( 192 RAM), 400 RAM ( , ). mysql, prefork apache2 php, , , . . Apache2 , ( , ).
(192 RAM):
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
< IfModule mpm_prefork_module >
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0

, , . swap . , « nginx, . swap » ( «» , , .. DDoS ). , , , OpenVZ swap linux. , OpenVZ , , , apache2 . , 600 . , , .
( ) 600 RAM:
Timeout 90
KeepAlive On
MaxKeepAliveRequests 50
KeepAliveTimeout 3
< IfModule mpm_prefork_module >
StartServers 1
MinSpareServers 1
MaxSpareServers 1
MaxClients 2
MaxRequestsPerChild 300

- , nginx? , , OpenVZ — , , . OpenVZ , . – , , .

UPD: , 12 , . nginx OpenVZ . FastVPS.ru , .

')

Source: https://habr.com/ru/post/89851/


All Articles