Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #567 from CMSCompOps/remove_legacy_gwmsmon
Browse files Browse the repository at this point in the history
gwmsmon links not used anymore
  • Loading branch information
sharad1126 authored Jun 2, 2020
2 parents a38a359 + f65d1a0 commit 4959a3a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1792,14 +1792,14 @@ def default_expiration():
'cachefile' : None,
'default' : {}
}
self.cache['gwmsmon_site_summary' ] = {
'data' : None,
'timestamp' : time.mktime( time.gmtime()),
'expiration' : default_expiration(),
'getter' : lambda : json.loads(os.popen('curl --retry 5 -s http://cms-gwmsmon.cern.ch/totalview//json/site_summary').read()),
'cachefile' : None,
'default' : {}
}
#self.cache['gwmsmon_site_summary' ] = {
# 'data' : None,
# 'timestamp' : time.mktime( time.gmtime()),
# 'expiration' : default_expiration(),
# 'getter' : lambda : json.loads(os.popen('curl --retry 5 -s http://cms-gwmsmon.cern.ch/totalview//json/site_summary').read()),
# 'cachefile' : None,
# 'default' : {}
# }
self.cache['gwmsmon_prod_maxused' ] = {
'data' : None,
'timestamp' : time.mktime( time.gmtime()),
Expand Down Expand Up @@ -2307,7 +2307,7 @@ def fetch_glidein_info(self, talk=True):
if not site in self.sites_ready:
self.sites_memory.pop( site )

for_max_running = dataCache.get('gwmsmon_site_summary')
#for_max_running = dataCache.get('gwmsmon_site_summary')
for_better_max_running = dataCache.get('gwmsmon_prod_maxused')
for site in self.cpu_pledges:
new_max = self.cpu_pledges[site]
Expand Down

0 comments on commit 4959a3a

Please sign in to comment.