< Back

Set-NsxLoadBalancer

Sat Jan 18, 2020 9:28 pm

NAME Set-NsxLoadBalancer



SYNOPSIS

Configures an NSX LoadBalancer.





SYNTAX

Set-NsxLoadBalancer [-LoadBalancer] <XmlElement> [-Enabled] [-EnableAcceleration] [-EnableLogging] [-LogLevel

<String>] [-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.



This cmdlet sets the basic LoadBalancer configuration of an NSX Load Balancer.





PARAMETERS

-LoadBalancer <XmlElement>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Enabled [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-EnableAcceleration [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-EnableLogging [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-LogLevel <String>



Required? false

Position? named

Default value

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 Edge01 | Get-NsxLoadBalancer | Set-NsxLoadBalancer -Enabled



Enabled the LoadBalancer feature on Edge.









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



PS C:\\>Get-NsxEdge Edge01 | Get-NsxLoadBalancer | Set-NsxLoadBalancer -Enabled:$false



Disabled the LoadBalancer feature on Edge.









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



PS C:\\>Get-NsxEdge Edge01 | Get-NsxLoadBalancer | Set-NsxLoadBalancer -EnableAcceleration



Enabled the Acceleration feature (uses the faster L4 LB engine rather than L7 LB engine) on Load Balancer.









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



PS C:\\>Get-NsxEdge Edge01 | Get-NsxLoadBalancer | Set-NsxLoadBalancer -EnableLogging



Enabled Load Balancer collects traffic logs.









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-NsxEdge Edge01 | Get-NsxLoadBalancer | Set-NsxLoadBalancer -LogLevel debug



Choose the log level (emergency, alert, critical, error, warning, notice, info, debug)

of Load Balancer traffic logs.











RELATED LINKS