Esempio n. 1
0
    def __init__(self):
        SimpleDaemon.__init__(self)

        from lbstats.requests import AggregatedRequests
        self.logfile = config.MONITOR_LOGFILE
        self.logger = logging.getLogger('loadbalancer_statistics_monitor')
        self.pidfile_path = config.MONITOR_PIDFILE
        self.requests = AggregatedRequests(config.MAX_MEASURE_TIME,
                                           config.MAX_REQUESTS,
                                           config.TOP_REQUEST_COUNT,
                                           config.RPS_HISTORY)
        self.start_time = 0