Skip to content

Commit b6de547

Browse files
Mandate minimum requirements for ram/cpu (#3275)
1 parent 8595228 commit b6de547

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

install/_min-requirements.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Don't forget to update the README and othes docs when you change these!
22
MIN_DOCKER_VERSION='19.03.6'
33
MIN_COMPOSE_VERSION='2.19.0'
4-
MIN_RAM_HARD=3800 # MB
5-
MIN_RAM_SOFT=7800 # MB
6-
MIN_CPU_HARD=2
7-
MIN_CPU_SOFT=4
4+
MIN_RAM_HARD=15900 # MB
5+
MIN_CPU_HARD=4

install/check-minimum-requirements.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@ CPU_AVAILABLE_IN_DOCKER=$(docker run --rm busybox nproc --all)
3636
if [[ "$CPU_AVAILABLE_IN_DOCKER" -lt "$MIN_CPU_HARD" ]]; then
3737
echo "FAIL: Required minimum CPU cores available to Docker is $MIN_CPU_HARD, found $CPU_AVAILABLE_IN_DOCKER"
3838
exit 1
39-
elif [[ "$CPU_AVAILABLE_IN_DOCKER" -lt "$MIN_CPU_SOFT" ]]; then
40-
echo "WARN: Recommended minimum CPU cores available to Docker is $MIN_CPU_SOFT, found $CPU_AVAILABLE_IN_DOCKER"
4139
fi
4240

4341
RAM_AVAILABLE_IN_DOCKER=$(docker run --rm busybox free -m 2>/dev/null | awk '/Mem/ {print $2}')
4442
if [[ "$RAM_AVAILABLE_IN_DOCKER" -lt "$MIN_RAM_HARD" ]]; then
4543
echo "FAIL: Required minimum RAM available to Docker is $MIN_RAM_HARD MB, found $RAM_AVAILABLE_IN_DOCKER MB"
4644
exit 1
47-
elif [[ "$RAM_AVAILABLE_IN_DOCKER" -lt "$MIN_RAM_SOFT" ]]; then
48-
echo "WARN: Recommended minimum RAM available to Docker is $MIN_RAM_SOFT MB, found $RAM_AVAILABLE_IN_DOCKER MB"
4945
fi
5046

5147
#SSE4.2 required by Clickhouse (https://clickhouse.yandex/docs/en/operations/requirements/)

0 commit comments

Comments
 (0)