| By Sonny Hastomo | Article Rating: |
|
| January 24, 2008 03:30 PM EST | Reads: |
13,734 |
Solaris Container = Zone + Resource Management
The Solaris Resource Management and Zones are the basic functions that form the Solaris Container. Zones provide isolation that is scalable, flexible, and lightweight for the Solaris O/S services. Zones are like having another Solaris instance inside the Solaris O/S. Zone can be categorized into two types: non-global zone and global zone (see Figure 1).
Resource Management is a policy that enables the Solaris O/S to manage and compute resources including partitioning, utilization allocation, and resource allocation on the fly through the administrative function / command.
Prerequisite
This article will walk you through how to deploy the GlassFish v2 application server under the Solaris Container. The zone will only use the allocated CPU resource in a specific resource pool. You will need Solaris 10 O/S installed on your box, and the GlassFish v2 installation package for Linux. You can download the software from the following sites:
- Solaris 10 O/S: www.sun.com/software/solaris/get.jsp
- GlassFish v2b58g: https://glassfish.dev.java.net/downloads/v2-b58g.html
1. Partitioning the CPU Resource
Solaris 10 O/S provides a feature for creating a resource pool using the pool configuration administration command. This feature enables the system administrator to create a CPU set and allocate the CPU available on the hardware level. In order to configure the resource pool we will need to enable the pools daemon.
svcadm enable svc:/system/pools:default
After you run that command, check the service status using the svcs command. We will start by looking at the current configuration of the pool. This information can be displayed using the pooladm command. Here is an example of the current resource pool.
system default
...
pool pool_default
...
pset pset_default
pset pset_default
...
cpu
int cpu.sys_id 1
string cpu.comment
string cpu.status on-line
cpu
int cpu.sys_id 0
string cpu.comment
string cpu.status on-line
The default pool for the global zone named pool_default is holding the CPU set named pset_default. Currently the CPU set of pset_default is allocated with two CPUs (cpu.sys_id=0, and cpu.sys_id=1). In this example we will be partitioning the CPU with one CPU to allocate the pool_glassfish and the other still in the pool_default. Follow the steps below to create the pool_glassfish
a. Generate /etc/pooladm.conf
pooladm -s
b. Create a CPU set as pset_glassfish and assign cpu.sys_id=0 to pset_glassfish
poolcfg -c 'create pset pset_glassfish (uint pset.min=1; uint pset.max=1)'
pooladm -c
c. Create a pool with pool_glassfish as the label
poolcfg -c 'create pool pool_glassfish'
pooladm -c
d. Associate the CPU set (pset_glassfish) to the pool (pool_glassfish)
poolcfg -c 'associate pool pool_glassfish (pset pset_glassfish)'
pooladm -c
In order to verify the configuration modification we can use the pooladm command. The amazing part about this configuration process is that the modification can be done online without rebooting the operating system. The example below is the result of the changes we have done:
system default
...
pool pool_glassfish
...
pset pset_glassfish
pool pool_default
...
pset pset_default
pset pset_glassfish
...
cpu
int cpu.sys_id 0
string cpu.comment
string cpu.status on-line
pset pset_default
...
cpu
int cpu.sys_id 1
string cpu.comment
string cpu.status on-line
Published January 24, 2008 Reads 13,734
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Sonny Hastomo
Sonny Hastomo is an IT architect at Sun Microsystems, Indonesia, for the telecommunication industry division. His currently is focusing on providing solution design, sizing, implementation, consulting services, and quality support to customers in their evaluation of their IT challenges.
![]() |
Sathyan Catari 03/26/08 01:54:00 PM EDT | |||
You may want to refer to this Article for Installing GlassFish Application server on Zones. http://developers.sun.com/appserver/reference/techart/glassfishsolariszo... Thanks |
||||
- Kindle 2 vs Nook
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- Confessions of a Ulitzer Addict
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- It's the Java vs. C++ Shootout Revisited!
- Cloud Computing Can Revitalize Your Career as Software Developer
- IBM Could "Reinvent" Java: Mills
- Oracle & Cloud Computing: Exclusive Q&A with SVP Richard Sarwal
- A Brief History of Cloud Computing
- Kindle 2 vs Nook
- Cloud CEOs, CTOs & SVPs to Speak at 4th International Cloud Computing Expo
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- The i-Technology Right Stuff
- JavaServer Faces (JSF) vs Struts
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- What's New in Eclipse?
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- i-Technology Predictions for 2007: Where's It All Headed?

































