Skip to content

Commit 6ee5a61

Browse files
authored
feat(lb): add first forward port algorithm (#698)
1 parent 6bbb1eb commit 6ee5a61

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/resources/lb_backend.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following arguments are supported:
4949
- `forward_protocol` - (Required) Backend protocol. Possible values are: `tcp` or `http`.
5050
- `name` - (Optional) The name of the load-balancer backend.
5151
- `forward_port` - (Required) User sessions will be forwarded to this port of backend servers.
52-
- `forward_port_algorithm` - (Default: `roundrobin`) Load balancing algorithm. Possible values are: `roundrobin` and `leastconn`.
52+
- `forward_port_algorithm` - (Default: `roundrobin`) Load balancing algorithm. Possible values are: `roundrobin`, `leastconn` and `first`.
5353
- `sticky_sessions` - (Default: `none`) Load balancing algorithm. Possible values are: `none`, `cookie` and `table`.
5454
- `sticky_sessions_cookie_name` - (Optional) Cookie name for for sticky sessions. Only applicable when sticky_sessions is set to `cookie`.
5555
- `server_ips` - (Optional) List of backend server IP addresses. Addresses can be either IPv4 or IPv6.

scaleway/resource_lb_backend.go

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func resourceScalewayLbBackend() *schema.Resource {
5252
ValidateFunc: validation.StringInSlice([]string{
5353
lb.ForwardPortAlgorithmRoundrobin.String(),
5454
lb.ForwardPortAlgorithmLeastconn.String(),
55+
lb.ForwardPortAlgorithmFirst.String(),
5556
}, false),
5657
Default: lb.ForwardPortAlgorithmRoundrobin.String(),
5758
Optional: true,

0 commit comments

Comments
 (0)