Summary: How to Deploy an application with Data Grid and Processing Units on any Cloud using a recipe
IntroductionXAP 9 Comes with a built-in Cloudify recipe feature that allows the deployment and management of an entire application onto any cloud. For more information on supported Cloud and Cloud Drivers see the Cloudify User Guide. The following sections will demonstrate how to compose a recipe for deploying and managing your XAP application on the Cloud. The following XAP types of services are supported:
Using a Stateless Processing Unit or a Web Processing Unitservice { icon "icon.png" name "statelessPU" numInstances 3 statelessProcessingUnit { binaries "servlet.war" //can be a folder, or a war file sla { memoryCapacity 128 maxMemoryCapacity 128 highlyAvailable false memoryCapacityPerContainer 128 } } } Using a Stateful Processing Unitservice { icon "icon.png" name "stockAnalyticsFeeder" statefulProcessingUnit { binaries "stockAnalyticsFeeder.jar" //can be a folder, or a war file sla { memoryCapacity 128 maxMemoryCapacity 128 highlyAvailable false memoryCapacityPerContainer 128 } } } Adding a Mirror Serviceservice { icon "icon.png" name "stockAnalyticsMirror" statelessProcessingUnit { binaries "stockAnalyticsMirror" //can be a folder, or a war file sla { memoryCapacity 256 maxMemoryCapacity 256 highlyAvailable false memoryCapacityPerContainer 256 } } } Packing Your RecipeIn order to have a mixture of services (XAP EPU and non XAP) you need to prepare the following structure: application { name="rt_app" service { name = "feeder" dependsOn = ["processor"] } service { name = "processor" dependsOn = ["rt_cassandra"] } service { name = "rt_cassandra" } } You can find a working example that includes a stateful and a stateless PU here. Deploying Your Recipe
Testing on a localcloudXAP 9.0 comes with a cloud emulator called localcloud that allows you to test the recipe execution To start the localcloud environment:
You can track the progress in the shell and in the Web Management Console at http://localhost:8099. Running on Any CloudTo deploy your recipe to one a cloud environment, follow the below steps:
|
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |