#NEWLINE# def __init__( self , conf ) : #NEWLINE# #INDENT# self . conf = self #NEWLINE# self . logger = get_logger ( conf , log_route = 'container-updater' ) #NEWLINE# self . devices = conf . get ( 'devices' , '/srv/node' ) #NEWLINE# self . mount_check = config_true_value ( conf . get ( 'mount_check' , 'true' ) ) #NEWLINE# self . swift_dir = conf . get ( 'swift_dir' , '/etc/swift' ) #NEWLINE# self . interval = int ( conf . get ( 'interval' , 300 ) ) #NEWLINE# self . account_ring = None #NEWLINE# self . concurrency = int ( conf . get ( 'concurrency' , 4 ) ) #NEWLINE# self . slowdown = float ( conf . get ( 'slowdown' , 0.01 ) ) #NEWLINE# self . node_timeout = float ( conf . get ( 'node_timeout' , 3 ) ) #NEWLINE# self . conn_timeout = float ( conf . get ( 'conn_timeout' , 0.5 ) ) #NEWLINE# self . no_changes = 0 #NEWLINE# self . successes = 0 #NEWLINE# self . failures = 0 #NEWLINE# self . account_suppressions = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . account_suppression_time = float ( conf . get ( 'account_suppression_time' , 60 ) ) #NEWLINE# self . new_account_suppressions = None #NEWLINE# swift . common . db . DB_PREALLOCATION = config_true_value ( conf . get ( 'db_preallocation' , 'f' ) ) #NEWLINE# self . recon_cache_path = conf . get ( 'recon_cache_path' , '/var/cache/swift' ) #NEWLINE# self . rcache = os . path . join ( self . recon_cache_path , 'container.recon' ) #NEWLINE# self . user_agent = ( 'container-updater %s' % os . getpid ( ) )