16.12.2017 16:21, Per Jessen пишет:
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Saturday, 2017-12-16 at 07:49 -0500, Anton Aylward wrote:
On 16/12/17 07:06 AM, Carlos E. R. wrote:
In a business server scenario, I see needing swap as a bad thing. Get more ram instead, there is money involved. The link is not a recommendation for openSUSE, but for SLE. For business servers.
And, lets face it, a business server is not going to need to hibernate; its a 7/24 device!
There is a use case for swap on servers, though: when mains goes out and the battery watcher daemon kicks in: hibernate the machine in emergency, in order to restore without losing anything. Al services up, nothing lost. No admin time needed, either, except to switch on.
AFAIK, our UPS monitoring daemon (apcupsd) has no such option (hibernate instead of shutdown). I guess it could be scripted.
UPS monitoring program just calls script on event, and this script can do anything. Except hibernation has exactly zero (or even below) value in this case. You still has service outage. If you cannot tolerate outage, you have redundant setup and switch to secondary location. In this case "nothing lost" is obviously bullshit, because your original location is now behind and needs catch up anyway. What is worse, when resumed (as opposed to clean reboot) it is unaware that it was switched over with unpredictable results. And even if you do not have secondary location, all connections to your service are long gone when it is resumed, so "nothing lost" is obviously wrong as well. There are limited number of use cases when it could be useful (like long running computational task); but any such solution must be prepared for interruption and takes snapshots on its own, so there is not much added value in hibernation either. So it adds complexity, it adds cost (how about to hibernate 12TiB of in-memory database) and still must be prepared to handle the case when hibernation was not successful. Pure loss. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org