Opened 4 years ago

Last modified 3 years ago

#4043 new enhancement

'recalculate-stats' command is required

Reported by: tomek Owned by:
Priority: low Milestone: Outstanding Tasks
Component: statistics 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 (last modified by tomek)

After certain events, out statistics could become out of sync. Here are several examples:

  • reconfiguration clears assigned-addresses. Afterwards, client can release an address and the assigned-addresses may become decreased into negative
  • statistics are not retained between server restarts
  • sysadmin may add or remove a lease from MySQL or Postgres

This is a side-effect of our design to have an independent database. We're not trying to change that decision (as it has significant benefits), we simply need a way to mitigate its drawbacks.

This command would cause the server to recalculate several statistics. For now, it seems that total-addresses, assigned-addresses and declined-addresses (both global and per subnet) should be recalculated. There may be other stats to be updated.


Change History (7)

comment:1 Changed 4 years ago by hschempf

  • Milestone changed from Kea-proposed to Kea1.1

per team meeting 16 sept, move to 1.1
note: should also include automatic update on shutdown and reconfigure

comment:2 Changed 4 years ago by tomek

  • Milestone changed from Kea1.1 to DHCP Outstanding Tasks

comment:3 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

comment:4 Changed 3 years ago by tomek

  • Description modified (diff)
  • Milestone changed from Outstanding Tasks to Kea1.2

comment:5 Changed 3 years ago by tomek

  • Priority changed from medium to low

With the work Thomas did recently to recalculate leases stats after start-up or reconfiguration, recalculating them on the fly is very easy thing to do, but since it's not essential for 1.2 work, will keep it as low.

comment:6 Changed 3 years ago by tomek

  • Milestone changed from Kea1.2 to Kea1.2-final

Code freeze for 1.2-beta. Moving all remaining open tickets to 1.2-final.

comment:7 Changed 3 years ago by tomek

  • Milestone changed from Kea1.2-final to Outstanding Tasks

As discussed on 2017-04-13 call, moving to outstanding.

Note: See TracTickets for help on using tickets.