Undeploying a Processing Unit
Removing a Processing Unit This is the unit of packaging and deployment in the GigaSpaces Data Grid, and is essentially the main GigaSpaces service. The Processing Unit (PU) itself is typically deployed onto the Service Grid. When a Processing Unit is deployed, a Processing Unit instance is the actual runtime entity. from the Service Grid A built-in orchestration tool which contains a set of Grid Service Containers (GSCs) managed by a Grid Service Manager. The containers host various deployments of Processing Units and data grids. Each container can be run on a separate physical machine. This orchestration is available for XAP only.
Command:
Input Example:
<GS_HOME>/bin/gs pu undeploy myPu
<GS_HOME>/bin/gs.sh pu undeploy myPu
Parameters and Options:
Item | Name | Description | Value |
---|---|---|---|
Parameter | name | The name of the Pu to undeploy | String |
Option | keep-file | Keep the undeployed file for future use. |
Boolean —
|
Option | drain-mode | Specify the desired drain behavior on shutdown. |
|
Option | drain-timeout | Specify the desired timeout interval for the drain phase |
Time value (for
|
Path
DELETE DELETE /pus/{id}
Example Request:
curl -X DELETE --header 'Accept: text/plain' 'http://localhost:8090/v2/pus/myPU'
This example undeploys a Processing Unit named myPU.
Options:
Option | Description | Required |
---|---|---|
id | Provide the name of the PU you are undeploying. | Yes |
keepFile | Boolean: false (default) — do not keep the file. true — keep the undeployed file for future redeployment. |
No |
drainMode |
Specify the desired drain behavior on shutdown.
|
No |
drainTimeout |
Timeout to wait for the drain to complete. Examples: |
No |
-
In the Processing Units view, highlight the Processing Unit to undeploy.
-
Click the Actions icon and select Undeploy from the menu.
-
Confirm that you want to undeploy the Processing Unit.
When the Processing Unit is undeployed successfully, it no longer appears in the Processing Units view.
You can confirm that the Processing Unit was undeployed by viewing the list of events from the toolbar. If you redeploy the same Processing Unit, all of the deploy and undeploy events appear in the event list for the Processing Unit that is displayed in the Events tab on the side of the view.
Refer to the GigaSpaces Management Center topics in the Administration section.
Refer to the Admin API topics in the Developers Guide.