Deploy and Undeploy Services in Ops Manager
Ops Manager can be used to deploy and undeploy a service.
Deploy Command in Ops Manager
With the deploy command, a business user can introduce new services to the grid. These can be either stateful services including a Space and data, or stateless services with business logic.
On the Services screen, click on the deploy option (plus sign) to introduce a new service to the grid.
The Deploy Service menu will display.
Each option is explained below.
Deploy Space Service — Basic Options
- Service name — the name of the new service that will be introduced to the grid
- Topology — Cluster schema: — Partitioned — a Space with one or more partitions
- Topology —Cluster schema: — Single Space — a Space with only one instance
- Number of partitions — the number of primary partitions for the space
- High availability — Provide a backup partition for each primary partition.
Deploy Space Service — MemoryXtend — Off-heap
- MemoryXtend — Memory threshold: The amount of used memory that triggers an exception when a write, update or initial load operation is attempted— see MemoryXtend for Off-Heap RAM
- MemoryXtend — Off-heap options:
- Avg. object size — an estimate of the average object size in the memory cache — see Caching in MemoryXtend
- Cache entries percentage — the amount of RAM in the the heap that is used for caching — see Default Cache - LRU
Deploy Space Service — MemoryXtend — SSD
- MemoryXtend — SSD options:
- Persistent — determines if the Space will load persisted data when loaded. See MemoryXtend for Disk (SSD/HDD).
- Volume Claim Template configuration — Storage size and Storage class name — (both items are Kubernetes only) — see Kubernetes documentation
- Avg. object size — an estimate of the average object size in the memory cache — see Caching in MemoryXtend
- Cache entries percentage — the amount of RAM in the the heap that is used for caching — see Default Cache - LRU
- Fsync — See MemoryXtend for Disk (SSD/HDD)
Deploy Stateful Service — Basic Options
- Service name — the name of the new service that will be introduced to the grid
- Deployment Type — location of the Java
war
file for the service. Can be in a local file, or point to a URL. - Resource — location of the Java
war
file for the service. Can be in a local file, or point to a URL - Topology — Cluster schema: — Partitioned — a Space with one or more partitions
- Topology —Cluster schema: — Sync replicated — a data operation is not considered complete by the client until all replicate Spaces have been updated
- Topology —Cluster schema: — Async replicated — a data operation is considered complete by the client when the primary Space is updated. Changes are performed asynchronously at the replicated Spaces.
- Number of partitions — the number of primary partitions for the space
- High availability — Provide a backup partition for each primary partition.
- Anti affinity — Ensure that primary and backup partitions are allocated on different nodes.
Deploy Stateful Service — Advanced Options
- Advanced — Context Properties — Name and value pairs for additional properties. Click on + to add a property and value, delete to remove.
The defined properties and their values are used as part of the deploy process for various configuration purposes.
Deploy Stateless Service — Basic Properties
- Service name — the name of the new service that will be introduced to the grid
- Deployment Type — location of the Java
war
file for the service. Can be in a local file, or point to a URL. - Resource — location of the Java
war
file for the service. Can be in a local file, or point to a URL - Number of instances — the number of instances for the service
Deploy Stateless Service — Advanced Properties
- Advanced — Context Properties — Name and value pairs for additional properties. Click on + to add a property and value, delete to remove.
The defined properties and their values are used as part of the deploy process for various configuration purposes.
- Resources per instance (Kubernetes only):
- Memory — memory size of one instance
- CPU — cpu size of one instance
Deploy Web App Service — Basic Properties
- Service name — the name of the new service that will be introduced to the grid
- Deployment Type — location of the Java
war
file for the service. Can be in a local file, or point to a URL. - Resource — location of the Java
war
file for the service. Can be in a local file, or point to a URL - Number of instances — the number of instances for the service
Deploy Web App Service — Advanced Properties
- Advanced — Context Properties — Name and value pairs for additional properties. Click on + to add a property and value, delete to remove.
The defined properties and their values are used as part of the deploy process for various configuration purposes.
Deploy Data Gateway Service
- Service name — the name of the new service that will be introduced to the grid
- Number of instances — the number of instances for the service
- Bind Port — the port which the gateway server will bind to in the host. The user should allocated a port, typically 5432, and bind it to a routable IP address, in case there are several IPs for a specific host.
- Advanced — Context Properties — Name and value pairs for additional properties. Click on + to add a property and value, delete to remove.
The defined properties and their values are used as part of the deploy process for various configuration purposes.
Undeploy Command in Ops Manager
On the Service Overview screen, click on the service that you wish to undeploy. Then, on the three-dot menu on the right side of the Performance screen, click on Undeploy service to undeploy the service.
After you click on Undeploy, the system will display a screen asking for the Undeploy method:.
The drain mode parameter has the following options:
-
None — no drain before undeploy
-
Attempt — undeploy even if drain didn't complete in timeout
-
Required — undeploy only if drain succeeded in timeout