def __init__( self, submitPool ): """ Define some defaults and call parent __init__ """ self.gridEnv = GRIDENV self.cpuPowerRef = CPU_POWER_REF self.requirements = REQUIREMENTS self.rank = RANK self.fuzzyRank = FUZZY_RANK self.__failingWMSCache = DictCache() self.__ticketsWMSCache = DictCache() self.__listMatchWMSCache = DictCache() PilotDirector.__init__( self, submitPool )
def __init__(self, submitPool): """ Define some defaults and call parent __init__ """ self.gridMiddleware = 'DIRAC' PilotDirector.__init__(self, submitPool) self.computingElementList = COMPUTING_ELEMENTS self.computingElementDict = {} self.addComputingElement(self.computingElementList) self.siteName = gConfig.getValue('/LocalSite/Site', '') if not self.siteName: self.log.error( 'Can not run a Director if Site Name is not defined') sys.exit() self.__failingCECache = DictCache() self.__ticketsCECache = DictCache()
def __init__(self, submitPool): """ Define the logger and some defaults """ if submitPool == self.gridMiddleware: self.log = gLogger.getSubLogger('%sPilotDirector' % self.gridMiddleware) else: self.log = gLogger.getSubLogger('%sPilotDirector/%s' % (self.gridMiddleware, submitPool)) self.pilot = DIRAC_PILOT self.extraPilotOptions = [] setup = gConfig.getValue('/DIRAC/Setup', '') vo = getVO() self.installVersion = gConfig.getValue( '/Operations/%s/%s/Versions/PilotVersion' % (vo, setup), DIRAC_VERSION) self.installProject = gConfig.getValue( '/Operations/%s/%s/Versions/PilotProject' % (vo, setup), "") self.install = DIRAC_INSTALL self.maxJobsInFillMode = MAX_JOBS_IN_FILLMODE self.genericPilotDN = PILOT_DN self.genericPilotGroup = PILOT_GROUP self.enableListMatch = ENABLE_LISTMATCH self.listMatchDelay = LISTMATCH_DELAY self.listMatchCache = DictCache() self.privatePilotFraction = PRIVATE_PILOT_FRACTION self.errorClearTime = ERROR_CLEAR_TIME self.errorTicketTime = ERROR_TICKET_TIME self.errorMailAddress = DIRAC.errorMail self.alarmMailAddress = DIRAC.alarmMail self.mailFromAddress = FROM_MAIL if not 'log' in self.__dict__: self.log = gLogger.getSubLogger('PilotDirector') self.log.info('Initialized')
def __init__(self, submitPool): """ Define the logger and some defaults """ if submitPool == self.gridMiddleware: self.log = gLogger.getSubLogger('%sPilotDirector' % self.gridMiddleware) else: self.log = gLogger.getSubLogger('%sPilotDirector/%s' % (self.gridMiddleware, submitPool)) self.pilot = DIRAC_PILOT self.submitPoolOption = '-o /Resources/Computing/CEDefaults/SubmitPool=%s' % submitPool self.extraPilotOptions = [] self.installVersion = DIRAC_VERSION self.installProject = DIRAC_PROJECT self.installation = DIRAC_INSTALLATION self.virtualOrganization = VIRTUAL_ORGANIZATION self.install = DIRAC_INSTALL self.maxJobsInFillMode = MAX_JOBS_IN_FILLMODE self.targetGrids = [self.gridMiddleware] self.enableListMatch = ENABLE_LISTMATCH self.listMatchDelay = LISTMATCH_DELAY self.listMatchCache = DictCache() self.privatePilotFraction = PRIVATE_PILOT_FRACTION self.errorClearTime = ERROR_CLEAR_TIME self.errorTicketTime = ERROR_TICKET_TIME self.errorMailAddress = DIRAC.errorMail self.alarmMailAddress = DIRAC.alarmMail self.mailFromAddress = FROM_MAIL if not 'log' in self.__dict__: self.log = gLogger.getSubLogger('PilotDirector') self.log.info('Initialized')