Quantcast
Channel: Gigaspaces XAP forum - RSS feed
Viewing all articles
Browse latest Browse all 1486

Starting GSC one by one.

$
0
0
I am trying to start a grid where i am starting components one by one i.e. first i am trying to start GSA then GSM and then GSCs, now GSCs also i am trying to start 1 by 1, because i was to pass different property to each GSC. I am trying to do this via command line not via the admin api below is the script snippet. if grep -q $NIC_ADDR <<<$LOOKUPLOCATORS; then echo "Starting with LUS and GSM on this server" echo "Starting GSA first" nohup env /bin/bash $GIGASPACES_DIR/bin/gs-agent.sh gsa.global.lus 0 gsa.lus 1 gsa.global.gsm 0 gsa.gsm 0 gsa.gsc 0 | split -d -b$TESSCOLLCONSOLELOG_FILEROLESIZE - $TESSCOLL_LOG_DIR/$TESSCOLLCONSOLELOG & echo "Starting GSM second" nohup env /bin/bash $GIGASPACES_DIR/bin/gs-agent.sh gsa.gsm 1 | split -d -b$TESSCOLLCONSOLELOG_FILEROLESIZE - $TESSCOLL_LOG_DIR/$TESSCOLLCONSOLELOG & TEMP_GSC_JAVA_OPTIONS=$GSC_JAVA_OPTIONS export hostname=$(hostname --short) for count in 1 2 do nodename="$hostname-$count"; echo "Staring GSC on this server $(hostname --short)" export GSC_JAVA_OPTIONS="$TEMP_GSC_JAVA_OPTIONS -Dappdynamics.agent.nodeName=GSC_$nodename" nohup env /bin/bash $GIGASPACES_DIR/bin/gs-agent.sh gsa.gsc 1 | split -d -b$TESSCOLLCONSOLELOG_FILEROLESIZE - $TESSCOLL_LOG_DIR/$TESSCOLLCONSOLELOG & done else TEMP_GSC_JAVA_OPTIONS=$GSC_JAVA_OPTIONS export hostname=$(hostname --short) for count in 1 2 do nodename="$hostname-$count"; echo "Staring GSC on this server $(hostname --short)" export GSC_JAVA_OPTIONS="$TEMP_GSC_JAVA_OPTIONS -Dappdynamics.agent.nodeName=GSC_$nodename" nohup env /bin/bash $GIGASPACES_DIR/bin/gs-agent.sh gsa.gsc 1 | split -d -b$TESSCOLLCONSOLELOG_FILEROLESIZE - $TESSCOLL_LOG_DIR/$TESSCOLLCONSOLELOG & done fi Components are starting up but i can see in the logs and UI that instead of starting 1 GSA and binding all GSCs to that GSA, It has actually created 4 GSAs which does not feels right. Am i missing something here ?

Viewing all articles
Browse latest Browse all 1486

Trending Articles