Skip to content

Draining Steps

ticoann edited this page Dec 8, 2016 · 16 revisions
  1. You need to tell WorkQueueManager to not accept anymore work blocks:

open config file at: /data/srv/wmagent/current/config/wmagent/config.py

Look for the workqueue params config.WorkQueueManager.queueParams = {'ParentQueueCouchUrl': 'https://cmsweb.cern.ch/couchdb/workqueue'}

Add the 'DrainMode': True to the params. config.WorkQueueManager.queueParams = {'ParentQueueCouchUrl': 'https://cmsweb.cern.ch/couchdb/workqueue', 'DrainMode': True}

save the changes restart WorkQueueManager, AnalyticsDataCollector and AgentStatusWatcher. $manage execute-agent wmcoreD --restart --components=WorkQueueManager,AnalyticsDataCollector,AgentStatusWatcher Undo these changes if you want to set the agent out of drain.

An agent is ready to redeploy when it: has no jobs running or pending in condor. has no jobs queued internally. has uploaded all files and blocks to DBS and PhEDEx has finished to archive it's workflows and upload all acdc documents.

Clone this wiki locally