On Windows, ScaleOut StateServer (SOSS) can be managed through a set of PowerShell Cmdlets to configure and administer the in-memory data grid. The SOSS PowerShell module can be used by directly importing the SossAdministration Powershell module within Powershell (for example, Import-Module SossAdministration) or by using the ScaleOut StateServer PowerShell shortcut which will automatically import the SossAdministration PowerShell module. The ScaleOut StateServer PowerShell shortcut is located in the installation directory.
- Activate the StateServer service for the selected host. This causes the selected host to join the store and accept a portion of the workload.
- Activate the StateServer service for all hosts. This causes the hosts to join the store and accept a portion of the workload.
De-activate the StateServer service for the selected host. This causes the selected host to leave the store.
It is important to allow a host to fully leave the store prior to shutting down the host or restarting the StateServer service. Otherwise, the host will abruptly leave the store, and other hosts will trigger recovery actions that further delay resumption of full storage throughput. In some cases, the distributed store can be destabilized, especially if multiple hosts are simultaneously stopped in this manner. Be sure to wait for the command to fully complete (indicated by an inactive status) prior to restarting the host. Use the leave_wait command instead of this command whenever possible.
- De-activate the StateServer service for all hosts. This causes all hosts to leave the store. The store will be inactive and unable to service workload.
- Adds a group host to the SOSS group host list.
- Removes a group host from the SOSS group host list.
- Creates a new host group.
- Connects the local host to the SOSS host group.
- Disconnects the local host from the SOSS host group.
- Clears the SOSS store of all objects.
- Restart the StateServer service for the selected host. This command first attempts to have the selected host leave the store and then restarts the service through the host’s Windows service control manager.
- Restart the StateServer service for all hosts. This command immediately restarts the service on all hosts through the host’s Windows service control manager.
- Set configuration parameters for the selected host.
- Show the status and configuration information for the selected host.
- Displays the Create/Read/Update/Delete workload for the selected host or store.
- Displays the status of the target SOSS host or the entire SOSS store.
- Displays the namespaces registered with the SOSS service.
- Tests the connectivity between all SOSS hosts.
- Adds a GeoServer connection to a remote SOSS store.
- Removes a GeoServer connection to a remote SOSS store.
- Tests the connectivity to a remote GeoServer store.
- Starts GeoServer replication to the target remote store.
- Stops GeoServer replication to the target remote store.
- Syncs the local SOSS store with the target remote store.
- Starts GeoServer replication with all configured remote stores.
- Stops GeoServer replication with all configured remote stores.
- Syncs the local SOSS store with all configured remote stores.
- Displays all remote GeoServer store parameters.
- Perform a backup operation which will write the contents of the SOSS store or a specified NamedCache to disk.
- Perform a restor operation which will read the contents of a backup file from disk restoring the objects to the distributed store.
The Set-HostParameters and Get-HostParameters Cmdlets can be used to quickly update a host’s configuration. For example, the following commands will configure a recently installed host with IP address 10.0.4.100 to use a new multicast IP address for host auto-discovery:
$val = Get-HostParameters -HostAddress 10.0.4.100 $val.MulticastIP = 188.8.131.52 Set-HostParameters $val
This set of commands will pull the current configuration for the host 10.0.4.100, change the multicast IP address, and then update the host’s configuration.