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 lb_rule.

probes

A list of health checking probes, each obtained via a call to lb_probe. There must be a probe corresponding to each rule.

...

Other named arguments that will be treated as resource properties.

name

For lb_rule, a name for the load balancing rule.

port

For lb_probe, the port to probe.

interval

For lb_probe, the time interval between probes in seconds.

fail_on

For lb_probe, the probe health check will fail after this many non-responses.

protocol

For lb_probe and lb_rule, the protocol: either "Tcp" or "Ip".

frontend_port, backend_port

For lb_rule, the ports for this rule.

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)
)

[Package AzureVM version 2.2.2 Index]