Revision 7e7fa841 lib/constants.py

b/lib/constants.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
2194 2194
# TODO: make this a default and allow the value to be more configurable
2195 2195
CONFD_MAX_CLOCK_SKEW = 2 * NODE_MAX_CLOCK_SKEW
2196 2196

  
2197
# When we haven't reloaded the config for more than this amount of seconds, we
2198
# force a test to see if inotify is betraying us.
2199
CONFD_CONFIG_RELOAD_TIMEOUT = 60
2197
# When we haven't reloaded the config for more than this amount of
2198
# seconds, we force a test to see if inotify is betraying us. Using a
2199
# prime number to ensure we get less chance of 'same wakeup' with
2200
# other processes.
2201
CONFD_CONFIG_RELOAD_TIMEOUT = 17
2200 2202

  
2201
# If we receive more than one update in this amount of seconds, we move to
2202
# polling every RATELIMIT seconds, rather than relying on inotify, to be able
2203
# to serve more requests.
2204
CONFD_CONFIG_RELOAD_RATELIMIT = 2
2203
# If we receive more than one update in this amount of microseconds,
2204
# we move to polling every RATELIMIT seconds, rather than relying on
2205
# inotify, to be able to serve more requests.
2206
CONFD_CONFIG_RELOAD_RATELIMIT = 250000
2205 2207

  
2206 2208
# Magic number prepended to all confd queries.
2207 2209
# This allows us to distinguish different types of confd protocols and handle

Also available in: Unified diff