Stop-NlbClusterNode
Stop-NlbClusterNode
Stops a node in a Network Load Balancing (NLB) cluster.
Syntaxe
Parameter Set: NonPipeline
Stop-NlbClusterNode [[-HostName] <String> ] [-Drain] [-InterfaceName <String> ] [-Timeout <UInt32> ] [ <CommonParameters>]
Parameter Set: Pipeline
Stop-NlbClusterNode -InputObject <Node[]> [-Drain] [-Timeout <UInt32> ] [ <CommonParameters>]
Description détaillée
The Stop-NlbClusterNode cmdlet stops a node in a Network Load Balancing (NLB) cluster. When the nodes are stopped in the cluster, client connections that are already in progress are interrupted. To avoid interrupting active connections, consider using the Drain parameter, which allows the node to continue servicing active connections but disables all new traffic to that node.
Paramètres
-Drain
Drains existing traffic before stopping the cluster node. If this parameter is omitted, then the existing traffic will be dropped.
Alias |
D |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-HostName<String>
Specifies the name of the cluster host against which this cmdlet is run. If this parameter is omitted or a value of .
is entered, then the local cluster is assumed.
Alias |
Host,HN,H |
Obligatoire ? |
false |
Position ? |
1 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-InputObject<Node[]>
Specifies the cluster node to stop.
Alias |
none |
Obligatoire ? |
true |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
True (ByValue, ByPropertyName) |
Accepter les caractères génériques ? |
false |
-InterfaceName<String>
Specifies the interface to which NLB is bound. This is the interface of the cluster against which this cmdlet is run.
Alias |
Interface,IN,I |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Timeout<UInt32>
Specifies the number of minutes to wait for the drain operation before stopping the cluster node. After the time expires, the existing connections will be dropped.
Alias |
T |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.
- Microsoft.NetworkLoadBalancingClusters.PowerShell.Node
Sorties
Le type de sortie est le type des objets émis par l’applet de commande.
- Microsoft.NetworkLoadBalancingClusters.PowerShell.Node
Exemples
EXAMPLE 1
This example stops the cluster node named node2 on the local cluster.
PS C:\> Stop-NlbClusterNode node2
EXAMPLE 2
This example stops the local cluster node. Before this cmdlet stops the cluster, this cmdlet drains all existing connections for up to 10 minutes. During that time, new connections will not be established on this node. Any remaining connections after the 10 minutes will be forcefully terminated.
PS C:\> Stop-NlbClusterNode -Drain -Timeout 10