add
Add a Network Load Balancer Forwarding Rule Target
Usage
ionosctl compute networkloadbalancer rule target add [flags]Aliases
For rule command:
[r forwardingrule]For target command:
[t]For add command:
[a]Description
Use this command to add a backend target to a forwarding rule. A target is a VM identified by --ip and --port on the NLB's target LAN; once added, the rule starts distributing connections to it according to the rule's balancing algorithm.
Weight (--weight): traffic is distributed in proportion to a target's weight relative to the sum of all targets' weights, so a higher weight means a higher share of connections. Default is 1, maximum is 256. A weight of 0 excludes the target from balancing but still lets it accept persistent connections. When sizing by capacity, start with mid-range values (e.g. 10-100) so you can adjust up or down later.
Health check (--check): when on (the default), the NLB periodically opens a TCP connection to the target's IP+port; the target is only considered available while it accepts these probes. When off, the target is always considered available. Use --check-interval to set the probe frequency, and --maintenance to force a target "down" (drain it) without removing it.
Use --wait (-w) to wait for the resource to reach AVAILABLE state.
Required values to run command:
Data Center Id
Network Load Balancer Id
Forwarding Rule Id
Target Ip
Target Port
Options
Examples
Last updated
Was this helpful?