Docker_db improvements

- enable experimental settings for cockroachdb
- reduce shmni setting for Hana
This commit is contained in:
Karel Maesen 2021-03-17 20:03:13 +01:00 committed by Andrea Boriero
parent b9fb1b183e
commit 3d8859a8ff
1 changed files with 7 additions and 1 deletions

View File

@ -204,7 +204,7 @@ hana() {
--ulimit nofile=1048576:1048576 \
--sysctl kernel.shmmax=1073741824 \
--sysctl net.ipv4.ip_local_port_range='40000 60999' \
--sysctl kernel.shmmni=524288 \
--sysctl kernel.shmmni=4096 \
--sysctl kernel.shmall=8388608 \
-v $temp_dir:/config \
store/saplabs/hanaexpress:2.00.045.00.20200121.1 \
@ -229,6 +229,12 @@ cockroachdb() {
sleep 10
OUTPUT=$(docker logs cockroach)
done
echo "Enabling experimental box2d operators"
docker exec -it cockroach bash -c "cat <<EOF | ./cockroach sql --insecure
SET CLUSTER SETTING sql.spatial.experimental_box2d_comparison_operators.enabled = on;
quit
EOF
"
echo "Cockroachdb successfully started"
}