2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00
Commit Graph

31944 Commits

Author SHA1 Message Date
Razvan Becheriu
cea39e530d [#1375] moved tests 2021-01-22 17:15:19 +00:00
Razvan Becheriu
55b5831aed [#1375] moved unittests 2021-01-22 17:15:19 +00:00
Andrei Pavel
23ceeaddfe [#1638] minor: missing newlines in printfs 2021-01-22 18:37:13 +02:00
Andrei Pavel
c49aa5db63 [#1638] wait for process to stop after kill 2021-01-22 18:37:13 +02:00
Andrei Pavel
358ed723f3 [#1638] don't fail if there is no process to kill 2021-01-22 18:37:13 +02:00
Andrei Pavel
cc0b3a4a7f [#1455] add ChangeLog entry 2021-01-22 18:28:28 +02:00
Andrei Pavel
e97da56526 [#1455] CONTRIBUTING.md: automatic formatting 2021-01-22 18:10:49 +02:00
Andrei Pavel
c7311fa52b [#1455] clang-format, uncrustify 2021-01-22 17:19:51 +02:00
Wlodek Wencel
a31922d3a3 [#1527] added support for fedora 33 and ubunut 20.10 2021-01-20 10:29:08 +00:00
Razvan Becheriu
29704eca1a [#1598] updated ChangeLog 2021-01-19 13:49:06 +02:00
Razvan Becheriu
e9d806ce94 [#1598] updated ChangeLog 2021-01-19 13:41:13 +02:00
Razvan Becheriu
fb7173ec20 [#1598] added ChangeLog 2021-01-19 13:39:26 +02:00
Razvan Becheriu
d66b4b70a0 [1598] convert reservation-mode from CB to new flags 2021-01-19 13:37:45 +02:00
Razvan Becheriu
d33589a76f [#1598] disable set reservation-mode in db api 2021-01-19 13:37:45 +02:00
Marcin Siodelski
36b6b226a1 [#1402] Do not reset HA in waiting state 2021-01-14 20:24:03 +01:00
Marcin Siodelski
8b3be2afd6 [#1402] Added a comment in the test
The comment explains why we set delayed-updates-limit to 10 in the tests.
2021-01-14 19:42:18 +01:00
Marcin Siodelski
4b5aa5ed72 [#1402] Added a sentence into ARM
It says that the synchronization is also required when the
delayed-updates-limit is exceeded when the server is in the
communication-recovery state.
2021-01-14 19:39:09 +01:00
Marcin Siodelski
25e2b9ec98 [#1402] Described ha-reset in the ARM 2021-01-13 10:12:32 +01:00
Marcin Siodelski
5f87bb512f [#1402] Send ha-reset to partner
The ha-reset command is sent to the partner when communication is
re-established but the lease backlog is overflown or an attempt to send
lease updates failed. This causes the partner to synchronize its lease
database with the server sending ha-reset.
2021-01-13 10:12:32 +01:00
Marcin Siodelski
6a154a435f [#1402] Function to create ha-reset command
Added function to CommandCreator to generate ha-reset command.
2021-01-13 10:12:32 +01:00
Marcin Siodelski
c58a9aa72f [#1402] Implemented ha-reset command 2021-01-13 10:12:32 +01:00
Marcin Siodelski
c1c9aa87d9 [#1402] Added a note in lease_update_backlog.h
Explained why the lease updates backlog is implemented in terms of a
single std::deque, as requested in review comment.
2021-01-13 10:12:32 +01:00
Marcin Siodelski
9ab9bc9b90 [#1402] Watch for invalid partner state
If the local server detects that its partner is in an unexpected state
it will transition to the waiting state. Insufficient checks were indicated
in the review comments.
2021-01-13 10:12:32 +01:00
Marcin Siodelski
ccbe6410d5 [#1402] Trivial changes to HAService tests
For tests which verify the case of communication recovery failure, moved
listeners startup into the test part that checks that communication
can be re-established, per review comments.
2021-01-13 10:12:32 +01:00
Marcin Siodelski
723eb8f238 [#1402] LeaseUpdateBacklog is no longer a template
LeaseUpdateBacklog now holds LeasePtr and is no longer a template class
as suggested in review comments. Classes using this class were simplified.
In particular, the HAService class has now only one backlog queue.
2021-01-13 10:12:31 +01:00
Marcin Siodelski
a8143a5dac [#1402] Improved comments in the code
... per review comments.
2021-01-13 10:12:31 +01:00
Marcin Siodelski
7e10a86891 [#1402] Added new notes in the HA ARM
Added a couple of notes in the ARM (HA section) to explain the new default
behavior of the server after introduction of the delayed-updates-limit.
2021-01-13 10:12:31 +01:00
Marcin Siodelski
c35917f7cf [#1402] Easy editorial changes in the ARM
Applied several editorial changes in the ARM as a result of the review.
These were mostly little typos and grammatical errors.
2021-01-13 10:12:31 +01:00
Marcin Siodelski
206c5258b4 [#1402] Added ChangeLog entry for #1402 2021-01-13 10:12:29 +01:00
Marcin Siodelski
3f142d8b11 [#1402] Updated ARM
Added description of the delayed-updates-limit and the communication
recovery procedure.
2021-01-13 10:11:31 +01:00
Marcin Siodelski
7a73b9dd6f [#1402] Avoid unused parameter warning 2021-01-13 10:11:31 +01:00
Marcin Siodelski
fce77a2dad [#1402] Correct wrong log message
When the server transitioned to the communication-recovery state it used
to say that lease updates will be sent in that state. In fact, the updates
are not sent (but they are queued). The code was corrected to address this.
2021-01-13 10:11:31 +01:00
Marcin Siodelski
3658bfb585 [#1402] Comm recovery enabled via config
There is a new parameter, delayed-updates-limit, which can be used to
enable communication-recovery state in the load-balancing mode and control
how many lease updates can be queued while being in this state.
2021-01-13 10:11:31 +01:00
Marcin Siodelski
392c2640ad [#1402] Sending lease updates backlog
A backlog of lease updates is sent to a partner upon resuming communication
between the servers. If any of the lease updates fails, we simply
transition to the waiting state and let them re-synchronize.
2021-01-13 10:11:31 +01:00
Marcin Siodelski
f67f3321c9 [#1402] lease6-bulk-apply from backlog
Updated command creator to create lease6-bulk-apply command from the
lease backlog.
2021-01-13 10:11:31 +01:00
Marcin Siodelski
2657ddb456 [#1402] Collect unsent lease updates
In the communication-recovery state, the server collects unsent lease
updates with an intent to send them later when communication with the
partner is back.
2021-01-13 10:11:31 +01:00
Marcin Siodelski
4249525828 [#1402] Added lease updates backlog queue
The new class is a container for lease updates backlog which will be used
when the server is in communication-recovery state.
2021-01-13 10:11:31 +01:00
Marcin Siodelski
0931bac37b [#1402] Added communication-recovery HA state 2021-01-13 10:11:31 +01:00
Francis Dupont
b57f96621e [(no branch, rebasing 1418-implement-in-kea-the-dhcp-cache-threshold-idea-full)] Updated lease cache ChangeLog entry 2021-01-11 16:10:06 +01:00
Francis Dupont
f16a60f118 [#1418] Addressed cosmetics comments 2021-01-11 16:05:46 +01:00
Francis Dupont
0d0ca1d54b [#1418] Finished rebase, did CB 2021-01-11 16:05:46 +01:00
Francis Dupont
38ba6b502d [#1418] Addressed some comments 2021-01-11 16:05:46 +01:00
Francis Dupont
37963db4b9 [#1418] Changed remaining by reusable in doc 2021-01-11 16:05:46 +01:00
Francis Dupont
615465ece6 [#1418] Changed remaining_ for reusable_ 2021-01-11 16:05:46 +01:00
Francis Dupont
b27118b5f8 [#1418] Addressed first comments 2021-01-11 16:05:46 +01:00
Francis Dupont
65b7546e32 [#1418] Updated v6 tests and doc 2021-01-11 16:05:46 +01:00
Francis Dupont
c2b76072a1 [#1418] Checkpoint: todo v6 server UT and doc 2021-01-11 16:05:46 +01:00
Francis Dupont
d1bc0c13ad [#1418] Checkpoint: did v6 core code 2021-01-11 16:05:46 +01:00
Francis Dupont
1644513e8f [#1418] Checkpoint: finished v4 part, v6 and doc to do 2021-01-11 16:05:46 +01:00
Francis Dupont
64dfcb3503 [#1418] Checkpoint: small improvements 2021-01-11 16:05:46 +01:00