2010-11-12
Discuss at the Forum
You may help to develop and improve this library at
GitHub
This library misses a detailed documentation, but it is used in various production
projects for a long time, so you may use it too. Below is the content of
README.txt file.
dkLab vzset: set barier/limit for OpenVZ UBC option interactively.
(C) dkLab, http://en.dklab.ru/lib/dklab_vzset/
Vzset is a very tiny utility which allows you to view current UBC
option value of OpenVZ container and type+apply a new value to
this option. This is useful when you receive a "limit exceeded"
notification by mail (e.g. over Yabeda or vzwatchd) and want to
increase an option fast.INSTALLATIONcd /usr/sbin
wget https://github.com/DmitryKoterov/dklab_vzset/raw/master/vzset
chmod +x vzsetSYNOPSISBellow is a log of typical vzset session (an administrator typed
a new value "4703360" and pressed "y" to confirm).
# vzset 10002 tcpsndbuf
example.com: tcpsndbuf = 1720320:2703360
Enter new value (format is BARRIER:LIMIT or just LIMIT): 4703360
Accepted new value 4703360:4703360. Apply (y/n)? y
vzctl set 10002 --tcpsndbuf 4703360:4703360 --save
UB limits were set successfully
Saved parameters for CT 10002
|
|
|