keith-turner commented on issue #308:
URL: https://github.com/apache/fluo-uno/issues/308#issuecomment-2841947284

   The intent of this part of accumulo-env.sh is to allow having different java 
config for different set of compactors.  Like if compactor groups `q1` and `q2` 
were defined in cluster.yaml then could give processes in those two compactor 
groups different memory setting w/ the following config.  Maybe some comments 
need to be added to the default `accumulo-env.sh` to explain this.
   
   ```bash
   case "${ACCUMULO_RESOURCE_GROUP:-default}" in
     q1)
       case "$cmd" in
         compactor) JAVA_OPTS=('-Xmx16G' '-Xms256m' "${JAVA_OPTS[@]}") ;;
       esac
       ;;
     q2)
       case "$cmd" in
         compactor) JAVA_OPTS=('-Xmx1G' '-Xms256m' "${JAVA_OPTS[@]}") ;;
       esac
       ;;
     default)
       # shellcheck disable=SC2154
       # $cmd is exported in the accumulo script, but not the accumulo-service 
script
       case "$cmd" in
         manager | master) JAVA_OPTS=('-Xmx512m' '-Xms512m' "${JAVA_OPTS[@]}") 
;;
         monitor) JAVA_OPTS=('-Xmx256m' '-Xms256m' "${JAVA_OPTS[@]}") ;;
         gc) JAVA_OPTS=('-Xmx256m' '-Xms256m' "${JAVA_OPTS[@]}") ;;
         tserver) JAVA_OPTS=('-Xmx768m' '-Xms768m' "${JAVA_OPTS[@]}") ;;
         compaction-coordinator) JAVA_OPTS=('-Xmx512m' '-Xms512m' 
"${JAVA_OPTS[@]}") ;;
         compactor) JAVA_OPTS=('-Xmx256m' '-Xms256m' "${JAVA_OPTS[@]}") ;;
         sserver) JAVA_OPTS=('-Xmx512m' '-Xms512m' "${JAVA_OPTS[@]}") ;;
         *) JAVA_OPTS=('-Xmx256m' '-Xms64m' "${JAVA_OPTS[@]}") ;;
       esac
       ;;
     *)
       echo "ACCUMULO_RESOURCE_GROUP named $ACCUMULO_RESOURCE_GROUP is not 
configured in accumulo-env.sh"
       exit 1
       ;;
   esac
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@fluo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to