Services: Kea DHCP: Kea DHCPv4 - add configurable max-unacked-clients parameter and change default to 2 to make it more responsive. closes https://github.com/opnsense/core/issues/7458

This commit is contained in:
Ad Schellevis 2024-09-26 11:02:47 +02:00
parent a27d3313eb
commit de8210ba12
3 changed files with 18 additions and 2 deletions

View File

@ -45,4 +45,14 @@
Leave empty to use this machines hostname
</help>
</field>
<field>
<id>dhcpv4.ha.max_unacked_clients</id>
<label>Max Unacked clients</label>
<type>text</type>
<help>
This specifies the number of clients which send messages to the partner but appear to not receive any response.
A higher value needs a busier environment in order to consider a member down, when set to 0,
any network disruption will cause a failover to happen.
</help>
</field>
</form>

View File

@ -229,7 +229,7 @@ class KeaDhcpv4 extends BaseModel
'heartbeat-delay' => 10000,
'max-response-delay' => 60000,
'max-ack-delay' => 5000,
'max-unacked-clients' => 5,
'max-unacked-clients' => (int)((string)$this->ha->max_unacked_clients),
'sync-timeout' => 60000,
]
]

View File

@ -25,9 +25,15 @@
<Default>0</Default>
<Required>Y</Required>
</enabled>
<this_server_name type="TextField">
<this_server_name type="TextField">
<Mask>/^([0-9a-zA-Z.\:\-,_]){0,1024}$/u</Mask>
</this_server_name>
<max_unacked_clients type="IntegerField">
<MinimumValue>0</MinimumValue>
<MaximumValue>65535</MaximumValue>
<Default>2</Default>
<Required>Y</Required>
</max_unacked_clients>
</ha>
<subnets>
<subnet4 type="ArrayField">