Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit e4a3fcb

Browse files
authored
Merge pull request #100 from postgres-ai/dmius-calc-ebs-size-fix
Calculate ebs size fixed
2 parents 9190542 + e72f6d9 commit e4a3fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nancy_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ DOCKER_MACHINE="nancy-$CURRENT_TS"
1414
DOCKER_MACHINE="${DOCKER_MACHINE//_/-}"
1515
KEEP_ALIVE=0
1616
VERBOSE_OUTPUT_REDIRECT=" > /dev/null"
17-
EBS_SIZE_MULTIPLIER=15
17+
EBS_SIZE_MULTIPLIER=5
1818
POSTGRES_VERSION_DEFAULT=10
1919
AWS_BLOCK_DURATION=0
2020

@@ -843,10 +843,10 @@ function determine_ebs_drive_size() {
843843
dbg "S3 file size: $dumpFileSize"
844844
elif [[ $DB_DUMP =~ "file://" ]]; then
845845
dumpFileSize=$(stat -c%s "$DB_DUMP" | awk '{print $1}') # TODO(NikolayS) MacOS version
846-
let dumpFileSize=dumpFileSize*$EBS_SIZE_MULTIPLIER
847846
else
848847
dumpFileSize=$(echo "$DB_DUMP" | wc -c)
849848
fi
849+
let dumpFileSize=dumpFileSize*$EBS_SIZE_MULTIPLIER
850850
let minSize=50*$KB*$KB*$KB
851851
local ebsSize=$minSize # 50 GB
852852
if [[ "$dumpFileSize" -gt "$minSize" ]]; then

0 commit comments

Comments
 (0)