Information Technology Reference
In-Depth Information
www/html on most Linux systems, but is /var/apache2/htdocs on Solaris 10
systems.
To further simplify this example, we will assume that the web servers are deliv-
ering only static web pages. Migrating scripts might require more effort.
The web servers in our example are equally important. We will use resource
controls to ensure that each web server has sufficient and equal access to system
resources. Each Container will be assigned 100 CPU shares and allowed to use 1
GB of RAM, 2 GB of virtual memory, and 100 MB of locked memory.
The commands shown in this section assume that the original web servers have
been stopped. You can check their status and, if necessary, stop Apache on the
original servers with the following commands:
# /etc/init.d/httpd status
# /etc/init.d/httpd stop
If you must minimize the service outage, you can choose different IP addresses
for the Containers and change the DNS maps after you have tested the Containers.
If the original Apache servers are part of a single load-balanced configuration, you
can perform a rolling upgrade from original systems to new Containers.
In the command examples shown here, the prompt GZ# indicates that you
should enter the command from a shell running in the global zone. The prompt
web01# indicates that you should enter the command from a shell running in the
nonglobal zone named web01 .
This example assumes that you are familiar with the content covered in
Chapter 6.
8.6.1 Planning
The first step is gathering the necessary information. For our example, there are
five web servers, each with its home page in /webpages/index.html . These serv-
ers are named web01 through web05 . The new system, running Oracle Solaris 10,
will have five Containers named web01 through web05 . Each original system had
one IP address: 10.1.1.101 through 10.1.1.105. Those IP addresses will move to
their respective Containers, as shown in Figure 8.16.
Each web server has its own NFS file system mount at /webpages . For example,
the server web01 mounts the NFS file system nfsserver:/web01 . This directory
is used in the Apache configuration file, /etc/httpd/conf/httpd.conf , with
the directive
DocumentRoot "/webpages"
 
 
Search WWH ::




Custom Search