suspicion: the fsync after creating a lot of data is the culprit; add info! line to get a timestamp before we start claiming pidfile

This commit is contained in:
Christian Schwarz
2024-01-25 20:09:40 +00:00
parent d36623ad74
commit eb2088264f

View File

@@ -293,6 +293,7 @@ fn start_pageserver(
// Create and lock PID file. This ensures that there cannot be more than one
// pageserver process running at the same time.
let lock_file_path = conf.workdir.join(PID_FILE_NAME);
info!("Claiming pid file at {lock_file_path:?}");
let lock_file =
utils::pid_file::claim_for_current_process(&lock_file_path).context("claim pid file")?;
info!("Claimed pid file at {lock_file_path:?}");