swift/swift/obj
Jianjian Huo d5877179a5 Object-server: add periodic greenthread yielding during file read.
Currently, when object-server serves GET request and DiskFile
reader iterate over disk file chunks, there is no explicit
eventlet sleep called. When network outpace the slow disk IO,
it's possible one large and slow GET request could cause
eventlet hub not to schedule any other green threads for a
long period of time. To improve this, this patch add a
configurable sleep parameter into DiskFile reader, which
is 'cooperative_period' with a default value of 0 (disabled).

Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
Change-Id: I80b04bad0601b6cd6caef35498f89d4ba70a4fd4
2024-02-27 11:24:41 +11:00
..
watchers Make the dark data watcher work with sharded containers 2024-01-09 15:11:45 +11:00
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
auditor.py lint: Up-rev hacking 2024-02-07 15:48:39 -08:00
diskfile.py Object-server: add periodic greenthread yielding during file read. 2024-02-27 11:24:41 +11:00
expirer.py Remove per-service auto_create_account_prefix 2023-11-22 01:58:03 +09:00
mem_diskfile.py Object-server: add periodic greenthread yielding during file read. 2024-02-27 11:24:41 +11:00
mem_server.py object: Block POSTs and chunked PUTs when already past reserve 2023-10-02 11:47:43 -07:00
reconstructor.py Clean up some replication error messages 2022-10-23 15:24:23 -07:00
replicator.py replicator: Rename update_deleted to revert 2024-02-06 20:24:03 -08:00
server.py Object-server: add periodic greenthread yielding during file read. 2024-02-27 11:24:41 +11:00
ssync_receiver.py Encode header in latin-1 with wsgi_to_bytes 2023-07-10 15:09:04 +01:00
ssync_sender.py Encode header in latin-1 with wsgi_to_bytes 2023-07-10 15:09:04 +01:00
updater.py systemd: Send STOPPING/RELOADING notifications 2023-10-16 15:44:06 -07:00