Add-Node
The Add-Node PowerShell cmdlet adds a new server node to an existing NCache clustered cache. This command automates the deployment process by copying the cache configuration from an ExistingServer to a NewServer, ensuring seamless synchronization and high availability across multiple server nodes. This cmdlet supports scaling by allowing multiple server nodes to be added to the cluster. It is available for both Windows (Add-Node) and Linux (add-node) environments.
Add-Node -CacheName -ExistingServer -NewServer [-Port] [-Credentials] [-NoLogo]
Examples
- This command adds a new node 20.200.20.12 to the cache named demoCache existing on server node 20.200.20.11.
Add-Node -CacheName demoCache -ExistingServer 20.200.20.11 -NewServer 20.200.20.12
- This command adds a new node 20.200.20.12 to the cache named demoCache existing on server node 20.200.20.11 using security credentials.
Add-Node -CacheName demoCache -ExistingServer 20.200.20.11 -NewServer 20.200.20.12 -Credentials(Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-CacheName* |
<String> |
Specifies the name of clustered cache. Note: The cache must already exist on the source server. |
- |
-ExistingServer* |
<String> |
Specifies a server name where the NCache Service is running and a cache with the specified cache-name is registered. Cache configuration is copied from this server to the destination server. | - |
-NewServer* |
<String> |
Specifies a server name where a cache with the specified cache-name needs to be registered. The cache configuration is copied from the source server name to this server. | - |
-Port |
<Integer> |
Specifies the port on which the NCache Service is listening. | 8250 |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |