Principle

This script hpa_agent_common.sh set all required arguments to start Calypso module with HPA agents.

At then end, it create :

  • HPA_JAVA_OPTS : all args, that you can use it your own scripts

It also updates :

  • CALYPSO_JAVA_MEM_OPTS : the default Calypso variable

That’s why this script must be call when CALYPSO_JAVA_MEM_OPTS is already set for easy use otherwise, use the HPA_JAVA_OPTS variable !

Note: Make sure that Calypso startup scripts still use CALYPSO_JAVA_MEM_OPTS or HPA_JAVA_OPTS

# Example

if [ "x${CALYPSO_JAVA_MEM_OPTS}" = "x" ]; then
   CALYPSO_JAVA_MEM_OPTS="..."
else
   echo "CALYPSO_JAVA_MEM_OPTS already set in environment; overriding default settings with values: $CALYPSO_JAVA_MEM_OPTS"
fi

# HPA start modification
if [ -r /apps/calypso/deploy/hpa_agent_common.sh ]; then
    source /apps/calypso/deploy/hpa_agent_common.sh "DataServer" "dataserver"
fi
# HPA end modification

JAVA_OPTS="$CALYPSO_OPTS ${CALYPSO_JAVA_MEM_OPTS}