parameters: (self)
docstring: Restart everything related to the web nodes including VM's.
          This is everything sitting between the clients and the compute nodes.
          Call this when doing upgrades that don't modify
          the Sage install or python client code on the compute machines.  This is minimally
          disruptive to users, at least compared to a full restart of compute machines!
docstring_summary: Restart everything related to the web nodes including VM's.
          This is everything sitting between the clients and the compute nodes.
          Call this when doing upgrades that don't modify
          the Sage install or python client code on the compute machines.  This is minimally
          disruptive to users, at least compared to a full restart of compute machines!
docstring_tokens: Restart everything related to the web nodes including VM s . This is everything sitting between the clients and the compute nodes . Call this when doing upgrades that don t modify the Sage install or python client code on the compute machines . This is minimally disruptive to users at least compared to a full restart of compute machines!
function: def restart_web(self):
          """
          Restart everything related to the web nodes including VM's.
          This is everything sitting between the clients and the compute nodes.
          Call this when doing upgrades that don't modify
          the Sage install or python client code on the compute machines.  This is minimally
          disruptive to users, at least compared to a full restart of compute machines!
          """
          services = 'hub nginx'
          for service in services.split():
              self.stop(service, wait=True, parallel=True)
          web_hosts = [x for x in self._hosts._canonical_hostnames.values() if 'web' in x]
          for hostname in web_hosts:
              self.restart('vm',hostname=hostname, parallel=True, wait=False)
          self.wait_until_up(' '.join(web_hosts))
          for service in services.split():
              self.start(service, parallel=True, wait=True)
function_tokens: def restart_web ( self ) : services = 'hub nginx' for service in services . split ( ) : self . stop ( service , wait = True , parallel = True ) web_hosts = [ x for x in self . _hosts . _canonical_hostnames . values ( ) if 'web' in x ] for hostname in web_hosts : self . restart ( 'vm' , hostname = hostname , parallel = True , wait = False ) self . wait_until_up ( ' ' . join ( web_hosts ) ) for service in services . split ( ) : self . start ( service , parallel = True , wait = True )