2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

- If a client renews before 'dhcp-cache-threshold' percent of its lease

has elapsed (default 25%), the server will reuse the allocated lease
  (provide a lease within the currently allocated lease-time) rather
  than extend or renew the lease.  This absolves the server of needing
  to perform an fsync() operation on the lease database before reply,
  which improves performance. [ISC-Bugs #22228]
This commit is contained in:
Tomek Mrugalski
2011-05-12 13:26:55 +00:00
parent c616de4f1e
commit 929a236497
5 changed files with 116 additions and 25 deletions

View File

@@ -691,6 +691,29 @@ struct lease_state {
#define SV_LIMIT_PREFS_PER_IA 57
#define SV_DELAYED_ACK 58
#define SV_MAX_ACK_DELAY 59
#if defined(LDAP_CONFIGURATION)
# define SV_LDAP_SERVER 60
# define SV_LDAP_PORT 61
# define SV_LDAP_USERNAME 62
# define SV_LDAP_PASSWORD 63
# define SV_LDAP_BASE_DN 64
# define SV_LDAP_METHOD 65
# define SV_LDAP_DEBUG_FILE 66
# define SV_LDAP_DHCP_SERVER_CN 67
# define SV_LDAP_REFERRALS 68
#if defined (LDAP_USE_SSL)
# define SV_LDAP_SSL 69
# define SV_LDAP_TLS_REQCERT 70
# define SV_LDAP_TLS_CA_FILE 71
# define SV_LDAP_TLS_CA_DIR 72
# define SV_LDAP_TLS_CERT 73
# define SV_LDAP_TLS_KEY 74
# define SV_LDAP_TLS_CRLCHECK 75
# define SV_LDAP_TLS_CIPHERS 76
# define SV_LDAP_TLS_RANDFILE 77
#endif
#endif
#define SV_CACHE_THRESHOLD 78
#if !defined (DEFAULT_PING_TIMEOUT)
# define DEFAULT_PING_TIMEOUT 1
@@ -712,27 +735,8 @@ struct lease_state {
# define DEFAULT_MIN_ACK_DELAY_USECS 10000 /* 1/100 second */
#endif
#if defined(LDAP_CONFIGURATION)
# define SV_LDAP_SERVER 60
# define SV_LDAP_PORT 61
# define SV_LDAP_USERNAME 62
# define SV_LDAP_PASSWORD 63
# define SV_LDAP_BASE_DN 64
# define SV_LDAP_METHOD 65
# define SV_LDAP_DEBUG_FILE 66
# define SV_LDAP_DHCP_SERVER_CN 67
# define SV_LDAP_REFERRALS 68
#if defined (LDAP_USE_SSL)
# define SV_LDAP_SSL 69
# define SV_LDAP_TLS_REQCERT 70
# define SV_LDAP_TLS_CA_FILE 71
# define SV_LDAP_TLS_CA_DIR 72
# define SV_LDAP_TLS_CERT 73
# define SV_LDAP_TLS_KEY 74
# define SV_LDAP_TLS_CRLCHECK 75
# define SV_LDAP_TLS_CIPHERS 76
# define SV_LDAP_TLS_RANDFILE 77
#endif
#if !defined (DEFAULT_CACHE_THRESHOLD)
# define DEFAULT_CACHE_THRESHOLD 25
#endif
#if !defined (DEFAULT_DEFAULT_LEASE_TIME)