def _restart_instance(self, inst):
    with self._instances_change_lock:
      # Quit the old instance.
      inst.quit(force=True)
      # Create the new instance.
      new_instance = self._instance_factory.new_instance(inst.instance_id)
      wsgi_servr = self._wsgi_servers[inst.instance_id]
      wsgi_servr.set_app(
          functools.partial(self._handle_request, inst=new_instance))
      self._port_registry.add(wsgi_servr.port, self, new_instance)
      # Start the new instance.
      self._start_instance(wsgi_servr, new_instance)
      # Replace it in the module registry.
      with self._condition:
        self._instances[new_instance.instance_id] = new_instance
Get volume limits if cinder is enabled.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/module.py/ManualScalingModule._restart_instance--crossover with--dataset/ETHPy150Open openstack/horizon/openstack_dashboard/usage/base.py/BaseUsage.get_cinder_limits