-
Notifications
You must be signed in to change notification settings - Fork 107
Draining Steps
ticoann edited this page Dec 29, 2016
·
16 revisions
- 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. (We can change the code to automatically pick up the config change #7994)
$manage execute-agent wmcoreD --restart --components=WorkQueueManager,AnalyticsDataCollector,AgentStatusWatcher
Undo these changes if you want to set the agent out of drain.
-
check all the stuck job condition (site is not available, etc) and apply proper procedure. (Alan, could you add what need to be done.
-
check all the workflow is the finished state.(#7493) Ref
- all the workflow is completed in the agent (no subscription left)
- all the blocks are closed.
- all the files are injected to PhEDEx
- all the files are uploaded to DBS
-
report to WMStats (#7493)