Connector Graceful Shutdown
Composer supports the graceful shutdown of connectors. When a connector is shut down, it gracefully completes queries that are in-flight and notifies clients that it is terminating.
Three connector properties in each connector property file support graceful shutdown:
connector.graceful.shutdown.enabledindicates whether or not graceful shutdown processing should occur. Valid values are
true(perform graceful shutdown processing) or
false(do not perform graceful shutdown processing). The default is
connector.graceful.shutdown.event.propagation.timeout-secspecifies how long (in seconds) the connector will wait to allow clients to receive the information that it is out of service. The default is 35 seconds.
connector.graceful.shutdown.force.kill.timeout-secspecifies the maximum number of seconds that the connector will wait for the number of its active tasks to reach zero. The default is 30 seconds. When this time has elapsed, the connector will stop.