#5649 closed defect (fixed)

HA database synchronization may timeout for the larger lease files

Reported by: marcin Owned by:
Priority: high Milestone: Kea1.4-final
Component: Unclassified Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

The CA timeout is hard coded to 5s. While it is waiting for the response from the server it may timeout if the lease file is large. Therefore, the timer in the CA should be rescheduled if there is an activity on the socket going on. Similar fix should be applied to the HTTP client and the Command Mgr I guess.

Subtickets

Change History (2)

comment:1 Changed 16 months ago by tomek

I have reviewed the changes on trac5649 up to and including 2f05d47802bfaa4d13ae4081ea25446cc7b5b8aa. They look good. Unit-tests passed and the changes make sense. I've pushed minor improvement in one config example to showcase the new parameter being added.

comment:2 Changed 16 months ago by marcin

  • Resolution set to fixed
  • Status changed from new to closed

Merged with commit cbc29128863916a13364749bf681586aea2aa51e and added ChangeLog entry:

1427.	[bug]		marcin
	Resolved multiple problems causing slow synchronization of
	leases in the HA hooks library, including adjusting
	timeouts in control channel and improving performance of
	responses sent by the Command Manager to Control Agent.
	Also, introduced 'sync-timeout' configuration parameter
	into HA hooks library to control lease database
	synchronization timeout.
	(Trac #5649, git cbc29128863916a13364749bf681586aea2aa51e)
Note: See TracTickets for help on using tickets.