If your MySQL is dying because of lack of memory, this is a sign that you need to upgrade your RAM, adding at least 1GB more, not to add swap.
I understand the economical aspect, but today the price per GB of RAM is cheaper than ever. If your provider is charging too much for your budget, and price is your first priority, you can find really cheap OpenVZ options here https://lowendbox.com/tag/openvz/ There are providers offering servers per year and others with 5GB RAM servers for $5/month. On Wed, Jan 8, 2020 at 5:06 PM Jeffrey Walton <noloa...@gmail.com> wrote: > On Wed, Jan 8, 2020 at 3:01 PM Paulo Coghi - Coghi IT > <pauloco...@gmail.com> wrote: > > > > By default, OpenVZ doesn't allow swap creation inside containers. And > this is a good thing. > > I think that depends on the metric used. > > A small swapfile would be most useful and economical for us. > > I think the lack of a swapfile and OOM kills are the worst choice > because they create a DoS in practice. Users cannot access our wiki > because MySQL was killed. > > Jeff >
_______________________________________________ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users