Skip to content

Commit

Permalink
Changed min partitons
Browse files Browse the repository at this point in the history
  • Loading branch information
jnidzwetzki committed Apr 27, 2021
1 parent 5420e1b commit 92ad4e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/import_osm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ gigabytes=$(($road_size / $one_gb))
partitions=$(($gigabytes * 4))
groupname="osmgroup"

# Create at least instances * 4 partitions
# Create at least instances * 8 partitions
instances=$($BBOXDB_HOME/bin/cli.sh -action show_instances | grep READY | wc -l)
min_partitions=$(($instances * 4))
min_partitions=$(($instances * 8))

partitions=$(( $partitions < $min_partitions ? $min_partitions : $partitions ))

Expand Down

0 comments on commit 92ad4e9

Please sign in to comment.