Changeset 373db1 in indico


Ignore:
Timestamp:
03/28/12 16:00:57 (14 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
982ded
Parents:
40151f
Message:

[IMP] Increased disconnect tolerance for scheduler

  • So that it stops dying occasionally;
Location:
indico
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/common/db.py

    rde6cee r373db1  
    7575    _instance = None 
    7676 
    77     def __init__( self, hostname=None, port=None ): 
     77    def __init__( self, hostname=None, port=None, max_disconnect_poll=30 ): 
    7878        import Configuration # Please leave this import here, db.py is imported during installation process 
    7979        cfg = Configuration.Config.getInstance() 
     
    8484            port = cfg.getDBConnectionParams()[1] 
    8585 
    86         self._storage=ClientStorage((hostname, port), username=cfg.getDBUserName(), password=cfg.getDBPassword(), realm=cfg.getDBRealm()) 
     86        self._storage=ClientStorage((hostname, port), username=cfg.getDBUserName(), password=cfg.getDBPassword(), realm=cfg.getDBRealm(), 
     87                                    max_disconnect_poll=max_disconnect_poll) 
    8788        self._db=MaKaCDB(self._storage) 
    8889        self._conn = threading.local() 
  • indico/modules/scheduler/daemon_script.py

    r18c3cb r373db1  
    216216    root.addHandler(handler) 
    217217 
    218     dbi = DBMgr.getInstance() 
     218    dbi = DBMgr.getInstance(max_disconnect_poll=40) 
    219219    dbi.startRequest() 
    220220 
Note: See TracChangeset for help on using the changeset viewer.