14 March 2024
Deploying a Processing Unit
To deploy a Processing Unit to the Service Grid:
Command:
gs.{sh/bat} pu deploy
Description:
Deploys a Processing Unit to the service grid.
Parameters and Options:
Item | Name | Description |
---|---|---|
Parameter | name | Name of the Processing Unit to deploy |
Parameter | file | Path to the Processing Unit file (.jar or .zip). |
Option | backups=<backups> | Specify the number of backups per partition. Can be zero or one. |
Option | instances=<instances> | Number of instances. |
Option | max-instances-per-machine=<maxInstancesPerMachine> | Define the maximum number of instances on same machine (from each partition). |
Option | max-instances-per-vm=<maxInstancesPerVM> | Define the maximum number of instances on same VM (from each partition). |
Option | partitions=<partitions> | Number of partitions. |
Option | property=<String,String> | Context properties. |
Option | properties=<properties> | Location of context-level properties file. |
Option | schema=<schema> | Cluster schema/topology (partitioned, sync_replicated, async_replicated). |
Option | requires-isolation |
If this Processing Unit should not share a container, adding this option provisions the Processing Unit in a dedicated container. |
Option | zones=<zones> | Define which zones can host this Processing Unit. |
Option | primary-zones=<a,b,c> | Define a list of preferred zones for primary instances (applies only when Deterministic Deployment is configured). |
The "requires isolation" configuration for Processing Units is deprecated and will be removed in a future release.
Input Example:
This example deploys a PU named myPu with 2 partitions using the mypu.jar file.