how to switch off automatic suspend/resume? [message #48787] |
Sat, 24 November 2012 06:22 |
Wireless
Messages: 9 Registered: August 2010
|
Junior Member |
|
|
When HN reboots, it suspends all CTs, and after reboot complete - resumes them back up.
Is any way to switch off this feature?
It takes many minutes to suspend a database CT, and then many minutes to resume it back.
It is *way* faster to just shutdown database normally and then start it up (withing 10-15 seconds or so).
If it's not possible to do on per-container base, I would disable this feature globally.
Any way to accomplish this?
|
|
|
|
Re: how to switch off automatic suspend/resume? [message #48804 is a reply to message #48802] |
Wed, 05 December 2012 17:01 |
Wireless
Messages: 9 Registered: August 2010
|
Junior Member |
|
|
I just modified /etc/init.d/vz to switch off suspending for a database container.
In the stop_ves() function, in the inner most loop
for stage in $stages; do
for i in 0 1 2; do
for veid in $velist; do
added
if [ "$stage" = "suspend" -a "$veid" == "908" ]; then
echo "Database container $veid will be just stopped"
continue
fi
So now CTID 908 doesn't get suspended - just stopped.
[Updated on: Wed, 05 December 2012 17:11] Report message to a moderator
|
|
|
|
|