Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Starting GSC one by one.

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 ?

asked 2018-04-04 01:06:39 -0500

Harvey gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

This is working as designed. If you want to start 4 gsc binding to one gsa, use gs-agent gsa.gsc 4.

BTW, version XAP version 10 has reached its End of Life.

answered 2018-04-04 09:46:51 -0500

Dixson Huie gravatar image
edit flag offensive delete link more

Comments

yeah, the problem with that is for each gsc i want to pass different set of parameters for tracking in appdynamics, i want to pass -DnodeName = 1 to gsc 1 and -DnodeName = 2 to gsc 2. Is there any way to do that ?

Harvey gravatar imageHarvey ( 2018-04-04 09:58:38 -0500 )edit

any help is appreciated here

Harvey gravatar imageHarvey ( 2018-04-11 03:19:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-04-04 01:06:39 -0500

Seen: 106 times

Last updated: Apr 04