1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-06 16:09:29 +03:00
Files
mariadb-columnstore-engine/oam/install_scripts/mariadb-columnstore-start.sh

22 lines
647 B
Bash

#!/bin/bash
# This script allows to gracefully start MCS
# prevent nodes using shared storage manager from stepping on each other when initializing
# flock -x 200 will open up an exclusive file lock to run atomic operations
(
flock -x 200
/bin/systemctl start mcs-workernode
/bin/systemctl start mcs-controllernode
/bin/systemctl start mcs-primproc
/bin/systemctl start mcs-writeengineserver
/bin/systemctl start mcs-exemgr
/bin/systemctl start mcs-dmlproc
/bin/systemctl start mcs-ddlproc
sleep 2
su -s /bin/sh -c 'dbbuilder 7' mysql 1> /tmp/columnstore_tmp_files/dbbuilder.log
) 200>/var/lib/columnstore/storagemanager/cs-initialized
exit 0