< Back

Set-NsxLoadBalancerPoolMember

Sat Jan 18, 2020 9:28 pm

NAME Set-NsxLoadBalancerPoolMember



SYNOPSIS

Configures the state of the specified LoadBalancer Pool Member.





SYNTAX

Set-NsxLoadBalancerPoolMember -LoadBalancerPoolMember <XmlElement> [-NoConfirm] [-state <String>] [-Weight

<Int32>] [-Port <Int32>] [-MonitorPort <Int32>] [-MinimumConnections <Int32>] [-MaximumConnections <Int32>]

[-Connection <PSObject>] [<CommonParameters>]



Set-NsxLoadBalancerPoolMember -LoadBalancerPoolMember <XmlElement> [-Confirm] [-state <String>] [-Weight <Int32>]

[-Port <Int32>] [-MonitorPort <Int32>] [-MinimumConnections <Int32>] [-MaximumConnections <Int32>] [-Connection

<PSObject>] [<CommonParameters>]





DESCRIPTION

An NSX Edge Service Gateway provides all NSX Edge services such as firewall,

NAT, DHCP, VPN, load balancing, and high availability.



The NSX Edge load balancer enables network traffic to follow multiple paths

to a specific destination. It distributes incoming service requests evenly

among multiple servers in such a way that the load distribution is

transparent to users. Load balancing thus helps in achieving optimal

resource utilization, maximizing throughput, minimizing response time, and

avoiding overload. NSX Edge provides load balancing up to Layer 7.



A pool manages load balancer distribution methods and has a service monitor

attached to it for health check parameters. Each Pool has one or more

members. Prior to creating or updating a pool to add a member, a member

spec describing the member needs to be created.



This cmdlet configures the state of the specified LoadBalancer Pool Member.





PARAMETERS

-LoadBalancerPoolMember <XmlElement>

Pool member to be configured



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompt for confirmation. Specify as -confirm:$false to disable confirmation prompt



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-NoConfirm [<SwitchParameter>]

Disable Prompt for confirmation.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-state <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Weight <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Port <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-MonitorPort <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-MinimumConnections <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-MaximumConnections <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NsxEdge testedge | Get-NsxLoadBalancer | Get-NsxLoadBalancerPool pool1 |



Get-NsxLoadBalancerPoolMember web01 |

Set-NsxLoadBalancerPoolMember -state disabled



Disable member web01 of pool1 on edge testedge









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NsxEdge testedge | Get-NsxLoadBalancer | Get-NsxLoadBalancerPool pool1 |



Get-NsxLoadBalancerPoolMember web01 |

Set-NsxLoadBalancerPoolMember -state enabled



Enable member web01 of pool1 on edge testedge









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-NsxEdge testedge | Get-NsxLoadBalancer | Get-NsxLoadBalancerPool pool1 |



Get-NsxLoadBalancerPoolMember web01 |

Set-NsxLoadBalancerPoolMember -state drain



Drain member web01 of pool1 on edge testedge (Supported only on NSX 6.3.0 and above)









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-NsxEdge testedge | Get-NsxLoadBalancer | Get-NsxLoadBalancerPool |



Get-NsxLoadBalancerPoolMember |

Set-NsxLoadBalancerPoolMember -Weight 10



Set all members of all pools on edge testedge for weight 10











RELATED LINKS