The invention aims to provide a
database cluster
system and method based on a Linux lightweight
virtualization technology. The
database cluster
system based on the Linux lightweight
virtualization technology comprises a
physical layer, a
database cluster layer, a database cluster layer and a database cluster layer, wherein the
physical layer is provided with standard x86
server hardware; the
operating system layer is provided with a Linux
operating system which supports cgroup and LXC functions; the
virtualization layer is used for creating an independent resource control group for each application or a key component thereof based on a cgroup function of a
Linux kernel, and accurately controlling a
CPU time slice, a memory usage and
recovery strategy, a block device I / O bandwidth and weight, and a network bandwidth and priority; and the
application layer is a key
big data application component which comprises an FE / BE node of a database service Apache Dores, a calculation engine and a
Web service which are respectively operated in independent LXC containers. According to the method, efficient utilization of hardware resources, strong isolation between applications, stability guarantee, rapid elastic expansion of the resources and smooth seamless evolution from a single-
machine all-in-one
machine to a distributed cluster can be realized, so that a hardware input curve is smoother.