experiment: for create_delta_layer _write path_, use StdFs io engine in a spawn_blocking thread single-threaded runtime

builds on top of the previous commit

test_bulk_insert[neon-release-pg14-tokio-epoll-uring].wal_written: 345 MB
test_bulk_insert[neon-release-pg14-tokio-epoll-uring].wal_recovery: 13.153 s
This commit is contained in:
Christian Schwarz
2024-03-13 13:41:38 +00:00
parent 72a8e090dd
commit 4a8e7f8716
7 changed files with 41 additions and 31 deletions

View File

@@ -200,7 +200,7 @@ def wait_for_last_record_lsn(
lsn: Lsn,
) -> Lsn:
"""waits for pageserver to catch up to a certain lsn, returns the last observed lsn."""
for i in range(100):
for i in range(10000):
current_lsn = last_record_lsn(pageserver_http, tenant, timeline)
if current_lsn >= lsn:
return current_lsn