SIGHUP to graceful restart swift servers

asked 2017-04-24 03:37:32 -0600

Craig Chi gravatar image

Graceful action can be seen on https://docs.openstack.org/developer/swift/admin_guide.html (Swift documents).

A graceful shutdown or reload will finish any current requests before completely stopping the old service.

But I really don't understand the actual behavior of graceful restart. In my opinion, A graceful restart should stop accepting new connections and wait for the current running request finishing. After tracing code that I know the graceful action is done by sending SIGHUP signal to daemons.

However, in my experiment, I send SIGHUP signal to swift-object-server or swift-proxy-server while uploading a large file to Swift, the connection just break immediately, and the uploading job apparently failed. Do I misunderstand the meaning of graceful restart?

Thank you.

edit retag flag offensive close merge delete