swift/test/probe
Darrell Bishop 1107f24179 Seamlessly reload servers with SIGUSR1
Swift servers can now be seamlessly reloaded by sending them a SIGUSR1
(instead of a SIGHUP).  The server forks off a synchronized child to
wait to close the old listen socket(s) until the new server has started
up and bound its listen socket(s).  The new server is exec'ed from the
old one so its PID doesn't change.  This makes Systemd happier, so a
ReloadExec= stanza can now be used.

The seamless part means that incoming connections will alwyas get
accepted either by the old server or the new one.  This eliminates
client-perceived "downtime" during server reloads, while allowing the
server to fully reload, re-reading configuration, becoming a fresh
Python interpreter instance, etc.  The SO_REUSEPORT socket option has
already been getting used, so nothing had to change there.

This patch also includes a non-invasive fix for a current eventlet bug;
see https://github.com/eventlet/eventlet/pull/590
That bug prevents a SIGHUP "reload" from properly servicing existing
requests before old worker processes close sockets and exit.  The
existing probtests missed this, but the new ones, in this patch, caught
it.

New probe tests cover both old SIGHUP "reload" behavior as well as the
new SIGUSR1 seamless reload behavior.

Change-Id: I3e5229d2fb04be67e53533ff65b0870038accbb7
2019-11-07 10:15:26 -08:00
..
__init__.py Add license in swift code file 2017-07-05 10:07:11 +08:00
brain.py Make the decision between primary/handoff sets more obvious 2018-05-22 12:12:42 -07:00
common.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_account_failures.py Remove executable flag from some test modules 2016-10-31 21:22:10 +00:00
test_account_get_fake_responses_match.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_account_reaper.py Follow up delayed reap probe test 2016-08-18 14:08:56 +01:00
test_container_failures.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_container_merge_policy_index.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_container_sync.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_db_replicator.py Apply remote metadata in _handle_sync_response 2018-03-06 19:52:59 +00:00
test_empty_device_handoff.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_object_async_update.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_object_conditional_requests.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_object_expirer.py Refactoring, test infrastructure changes and cleanup 2018-05-15 18:18:25 +01:00
test_object_failures.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_object_handoff.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_object_metadata_replication.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_object_partpower_increase.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_reconstructor_rebuild.py exclude utf8 tests under py3 2019-10-29 20:12:05 +00:00
test_reconstructor_revert.py py3: (mostly) port probe tests 2019-09-04 10:17:45 -07:00
test_replication_servers_working.py Stop overwriting reserved term 2019-03-12 08:53:18 +00:00
test_sharder.py Merge "sharding: Update probe test to verify CleavingContext cleanup" 2019-09-25 23:11:33 +00:00
test_signals.py Seamlessly reload servers with SIGUSR1 2019-11-07 10:15:26 -08:00