|
Summary: How to start a Grid Service Monitor and Grid Service Container, using the CLI or Admin UI.
OverviewThe Grid Service Container (GSC) is a container that provides remote access to services running on a specific machine. The Grid Service Manager (GSM) is a service that monitors a specific set of GSCs and automates the provisioning and deployment of services on these GSCs. The GSC and GSM are called the Service Grid's infrastructure services. In the Service Grid Admin UI, these appear under the node Service Grid Infrastructure.
For the Service Grid to operate, at least one GSC and one GSM must be deployed. You can deploy one or more GSC and GSM by executing a script in the Service Grid bin folder, or via the Admin UI. Deploying through the Admin UI offers more startup options.
Deploying Infrastructure Services By Executing ScriptYou can deploy both infrastructure services at the same time, or only one of them. Repeat the procedures below to deploy multiple GSMs or GSCs on the local machine. To deploy one GSM instance and one GSC instance on the local machine:
To deploy one GSC instance on the local machine:
To deploy one GSM instance on the local machine:
Loading Services AutomaticallyIf you want to load some services automatically when the GSC and GSM start, use the override configuration to specify this. Under the relevant component in the Service Deployment Descriptor, add or edit the tag <Parameter Name="initialOpStrings">. Inside it, add the path of the SDD of the service you want to start automatically, using the following format: <Parameter Name="initialOpStrings"> <![CDATA[ new String[] {"${GRID_HOME}/config/deployment/computegrid.xml"} ]]> </Parameter> Setting Initialization Properties on StartupYou can set the Service Grid to load a service bean on on startup, with a mechanism to set initialization properties for your applications. Your initializing service must be written as a ServiceBean using the Rio component model. This will allow you to obtain the ServiceBeanContext to do the things you require on startup. To load an initialization service bean on startup:
ExampleFor an example of setting initialization properties on startup, see the attached ZIP file. It contains the following:
To run the example:
RELATED TOPICS |
Wiki Content Tree
Your Feedback Needed!
We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Add Comment