Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Kea Kea
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 505
    • Issues 505
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 53
    • Merge requests 53
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #222
Closed
Open
Created Nov 06, 2018 by Francis Dupont@fdupontDeveloper

Pool log threshold

Idea from ISC DHCP, cf dhcpd.8:

The log-threshold-high and log-threshold-low statements

log-threshold-high percentage;

log-threshold-low percentage;

The log-threshold-low and log-threshold-high statements are used to control when a message is output about pool usage. The value for both of them is the percentage of the pool in use. If the high threshold is 0 or has not been specified, no messages will be pro- duced. If a high threshold is given, a message is output once the pool usage passes that level. After that, no more messages will be output until the pool usage falls below the low threshold. If the low threshold is not given, it default to a value of zero.

A special case occurs when the low threshold is set to be higer than the high threshold. In this case, a message will be generated each time a lease is acknowledged when the pool usage is above the high threshold.

Note that threshold logging will be automatically disabled for shared subnets whose total number of addresses is larger than (264)-1. The server will emit a log statement at startup when threshold logging is disabled as shown below:

"Threshold logging disabled for shared subnet of ranges:

"

This is likely to have no practical runtime effect as CPUs are unlikely to support a server actually reaching such a large number of leases.

From this I like the idea to have a hook library which performs a simple action (log is an example) when a threshold is crossed in a reasonably sized pool.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking