Summary: Service Grid deployment using Windows Services
OverviewService Grid deployment can be considered something that should be done automatically, without user intervention, moreover, if a server machine crashes and reboots, the Service Grid and deployed processing unit should restart and redeploy when the machines restarts. All of these can be acoomplished using GigaSpaces Windows Services Manager and the different Service Grid components as windows services. This page demonstrate how to configure a server machine to start its service grid components and deploy processing units upon machine startup. Configure Grid Service Manager and Grid Service ContainersIn order to have Grid Service Managers (Gsm) and Grid Service Containers (Gsc) to start on machine startup they should be installed as windows services using GigaSpaces Windows Service Manager. Each installed service needs to be configured seperately with the appropriate lookup groups by updating the service configuration file "-Dcom.gs.jini_lus.groups" option. <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="GigaSpaces" type="GigaSpaces.Core.Configuration.GigaSpacesCoreConfiguration, </configSections> <GigaSpaces> <JvmSettings> ... <JvmCustomOptions> <add Option="-Dcom.gs.jini_lus.locators=$(DefaultLocators)"/> <add Option="-Dcom.gs.jini_lus.groups=$(DefaultLookupGroups)"/> ... </JvmCustomOptions> </JvmSettings> </GigaSpaces> </configuration> The Starting State should be updated to Automatic.
Deploy Processing Unit on StartupIn order to have a processing unit deployed automatically at machine startup, Command Line Interface service can be used. The service can be configured to start with a given command line by updating its configuration file. For example, the following configuration will deploy a processing unit named dataprocessor after a timeout of 300000 miliseconds (5 minutes) has passed. The timeout should be used because there's no garantee which windows service will be started first, therefore, the timeout should reflect the amount of time that it should take for all the Gsm's and Gsc's to load. If a processing unit of that name is already deployed in the service grid, the deployment request will be ignored. <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="GigaSpaces" type="GigaSpaces.Core.Configuration.GigaSpacesCoreConfiguration, GigaSpaces.Core"/> <section name="GigaSpaces.Services.Cli" type="GigaSpaces.Services.Cli.Configuration.GigaSpacesCliConfiguration, GigaSpaces.Services.Cli"/> </configSections> <GigaSpaces.Services.Cli CommandLine="pudeploy -timeout 300000 dataprocessor"/> ... </configuration>
|
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |