lb_config {AzureVM} | R Documentation |
Load balancer configuration
Description
Load balancer configuration
Usage
lb_config(type = NULL, rules = list(), probes = list(), ...)
lb_probe(name, port, interval = 5, fail_on = 2, protocol = "Tcp")
lb_rule(name, frontend_port, backend_port = frontend_port,
protocol = "Tcp", timeout = 5, floating_ip = FALSE, probe_name)
Arguments
type |
The SKU of the load balancer resource: "basic" or "standard". If NULL (the default), this will be determined based on the VM scaleset's configuration. Note that the load balancer SKU must be the same as that of its public IP address. |
rules |
A list of load balancer rules, each obtained via a call to |
probes |
A list of health checking probes, each obtained via a call to |
... |
Other named arguments that will be treated as resource properties. |
name |
For |
port |
For |
interval |
For |
fail_on |
For |
protocol |
For |
frontend_port , backend_port |
For |
timeout |
The timeout interval for the rule. The default is 5 minutes. |
floating_ip |
Whether to use floating IP addresses (direct server return). Only needed for specific scenarios, and when the frontend and backend ports don't match. |
probe_name |
The name of the corresponding health check probe. |
See Also
create_vm_scaleset, vmss_config, lb_rules for some predefined load balancing rules and probes
Examples
lb_config()
lb_config(type="basic")
lb_config(
rules=list(lb_rule_ssh, lb_rule_rdp),
probes=list(lb_probe_ssh, lb_probe_rdp)
)