LVE is a kernel level technology developed by the CloudLinux team. The technology has common roots with container based virtualization. Yet, it is lightweight, and transparent. The goal of LVE is to make sure that no single web site can bring down your web server.
Today, a single site can consume all CPU resources, IO resources or apache processes — and bring the server to the halt. LVE prevents that.
It is done via collaboration of apache modules and kernel. mod_hostinglimits is the apache module that:
1 . Detects VirtualHost from which the request came.
2 . Detects if it was meant for cgi or PHP script.
3 . Switches apache process used to serve that request into LVE for the user determined via
SuexecUserGroup for that virtual host.
4 . Lets apache to serve the request.
5 . Removes apache process from user’s LVE.
The kernel makes sure that all LVEs get fair share of the server’s resources. This means, for example, that 20 apache processes serving a heavy site will use the same amount of CPU as one apache process serving a smaller site.
Each LVE limits amount of entry processes (Apache processes entering into LVE) to prevent single site exhausting all apache processes. If the limit is reached — mod_hostinglimits will not be able to place apache process into LVE, and will return error code 503 (server busy).
By using isolation technology to create lightweight virtual environment (LVE), CloudLinux can:
1. Limit the amount of resources one site can use so no single account can slow or take down a whole server
2. Provide better security by running all processes under the correct user and in their own container
3. Protect the server from hackers and poorly written scripts that drain resources for other tenants
Installation process of LVE
In order to install LVE services , we need to setup CloudLinux. We can either install CloudLinux by downloading it or migrating it from CentOS 5.
You can download latest ISO for CloudLinux CD and DVDs from:
x86_64 version: http://repo.cloudlinux.com/cloudlinux/5.5/iso/x86_64
i386 version: http://repo.cloudlinux.com/cloudlinux/5.5/iso/i386
Version 5.4 is available here:
x86_64 version: http://repo.cloudlinux.com/cloudlinux/5.4/iso/x86_64
i386 version: http://repo.cloudlinux.com/cloudlinux/5.4/iso/i386
Switch From CentOS to CloudLinux today
It is easy to switch from CentOS 5 to CloudLinux. The process takes a few minutes and replaces just a
handful of RPMs.
Get <activation_key> either by getting trial subscription or by purchasing subscription,
Download script: centos2cl
Execute sh centos2cl -k <activation_key>
Reboot
# wget http://repo.cloudlinux.com/cloudlinux/sources/cln/centos2cl
# sh centos2cl -k <activation_key>
# reboot
Enabling Apache LVE support
If you have no control panel, or you run one of the following control panels: Webmin, Plesk, Interworx, do
# yum install mod_hostinglimits
If you run apache with worker MPM, do:
# yum install mod_sucgid
If you have cPanel, use install-lve script :
# wget http://repo.cloudlinux.com/cloudlinux/sources/install-lve
# sh install-lve -a
Hi buddy, your blog’s design is simple and clean and i like it. Your blog posts are superb. Please keep them coming. Greets!!!
I have heard of the name before, and I intend to use it recently
[...] LVE – Lightweight Virtual Environment « LogicSupport Blog [...]
[...] LVE – Lightweight Virtual Environment « LogicSupport Blog [...]
Thanks. Please keep visiting our blog!