mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Fix perf Configure stage: create keeper dirs without the preconfig server
Removing the preconfig server also removed the side effect that created `ci/tmp/coordination0`, which the configure step copied into each server's keeper storage, so `cp` failed. Create each server's coordination dir directly instead; the embedded, non-replicated keeper bootstraps from an empty dir. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5
parent
0956f41f4a
commit
f81ca79662
@@ -1262,8 +1262,9 @@ def main():
|
||||
f"rm -rf {db_path}/preprocessed_configs {db_path}/data/system {db_path}/metadata/system {db_path}/status",
|
||||
f"cp -al {db_path} {perf_left}/db ||:",
|
||||
f"cp -al {db_path} {perf_right}/db ||:",
|
||||
f"cp -R {temp_dir}/coordination0 {perf_left}/coordination",
|
||||
f"cp -R {temp_dir}/coordination0 {perf_right}/coordination",
|
||||
# Each server bootstraps its own (embedded, non-replicated) keeper, so
|
||||
# an empty storage dir is enough.
|
||||
f"mkdir -p {perf_left}/coordination {perf_right}/coordination",
|
||||
# Symlink user_files from the repository into both servers' user_files directories
|
||||
f'for f in ./tests/performance/user_files/*; do [ -e "$f" ] || continue; ln -sf "$(readlink -f "$f")" {perf_left}/db/user_files/; ln -sf "$(readlink -f "$f")" {perf_right}/db/user_files/; done',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user