Version | Effective: 30/11/2009 |
4. Best Practices
The following chapter describes concepts for the implementation of architectures with Solaris containers.
4.1. Concepts
4.1.1. Sparse-root zones
[dd]Sparse root zones are zones that inherit the following directories from the global zone as
−/lib
−/platform
−/sbin
−/usr
∙The software packages are installed only once centrally in the global zone from the OS and application software and made available in all local zones as
∙Software maintenance (update, patching) of inherited packages is simply done centrally for all installed zones from out of the global zone.
∙Sparse root zones are installed and patched considerably quicker by inheritance.
∙/opt is not set up as
∙Disk space for
∙Programs and libraries are loaded into the main memory only once, exactly like shared memory. Since sparse root zones share the same programs and libraries with other zones, space in the main computer memory is occupied only once, regardless of how many times it is accessed and how many zones use it. If the same software is used frequently in different zones, this will lead to economization in required main memory.
∙Sparse root zones are not suitable for running different software versions in zones if this software is located in an
∙If the software installation process requires writing permission in an
4.1.2. Whole-root zones
[dd]Whole root zones have no
∙Whole root zones are almost completely independent from the global zone since the packages are present as copies and can be modified and patched separately.
∙The required space for a whole root zone encompasses approx. the requirements of a complete Solaris installation.
∙Creating and patching a whole root zone requires more time.
∙Apart from the kernel, whole root zones do not share any programs and libraries among each other or with the global zone. They are therefore loaded into the main memory again, regardless of whether another zone has already loaded its own copy of the same program into the main memory. This leads to an increased need for main memory resources required by whole root zones.
34