Skip to content

Commit 09bfba3

Browse files
NRL-1875 Extract size must be a mulitple of buffer size, else will round up to the next multiple e.g. 1.5m -> 2m
1 parent f0fbb44 commit 09bfba3

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ perftest-generate-pointer-table-extract:
356356
@echo "Generating pointer table extract with PERFTEST_TABLE_NAME=$(PERFTEST_TABLE_NAME) and ENV=$(ENV) and DIST_PATH=$(DIST_PATH)"
357357
rm -rf "${DIST_PATH}/nft"
358358
mkdir -p "${DIST_PATH}/nft"
359-
PYTHONPATH=. poetry run python tests/performance/perftest_environment.py generate_pointer_table_extract --output_dir="${DIST_PATH}/nft" --extract-size=1500000
359+
PYTHONPATH=. poetry run python tests/performance/perftest_environment.py generate_pointer_table_extract --output_dir="${DIST_PATH}/nft" --extract-size=2000000
360360
./scripts/get-current-info.sh > "${DIST_PATH}/nft/info.json"
361361
zip -r "${DIST_PATH}/pointer_extract-${PERFTEST_TABLE_NAME}.zip" "${DIST_PATH}/nft"
362362
aws s3 cp "${DIST_PATH}/pointer_extract-${PERFTEST_TABLE_NAME}.zip" "s3://nhsd-nrlf--${ENV}-metadata/performance/seed-pointers-extract-${PERFTEST_TABLE_NAME}.zip"

scripts/seed_nft_tables.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def pointer_is_processed(pointer):
111111
for unprocessed_item in unprocessed_items
112112
if unprocessed_item["PutRequest"]["Item"].get("id") == pointer_id
113113
]
114-
# print("unprocessed matches:", matches)
115114

116115
return len(matches) == 0
117116

tests/performance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ make perftest-generate-pointer-table-extract \
113113
PERFTEST_TABLE_NAME=nhsd-nrlf--perftest-anjali-test-2-pointers-table ENV=perftest
114114
```
115115

116-
This will generate a csv extract of the given pointer table containing a row per pointer. To run the perf tests, you will need an extract larger than the number of test iterations. The default extract size is 1.5 million - this can be changed in the make file command by updating the value of`--extract-size`. Too big and the test runners will take a long time to load the file.
116+
This will generate a csv extract of the given pointer table containing a row per pointer. To run the perf tests, you will need an extract larger than the number of test iterations. The default extract size is 2 million - this can be changed in the make file command by updating the value of`--extract-size`. Too big and the test runners will take a long time to load the file.
117117

118118
## Assumptions / Caveats
119119

tests/performance/perftest_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __next__(self):
6666

6767

6868
def generate_pointer_table_extract(
69-
extract_size=1500000,
69+
extract_size=2000000, # must be a multiple of buffer_size (1 million)
7070
output_dir=".",
7171
):
7272
"""

0 commit comments

Comments
 (0)