Installing Optimization Microservice

  1. From the WFM Optimization Service installation ISO, extract and unzip the WbOptimizationServices-OnPrem-<version>-Core-<date>.zip file.
  2. If required in the startOptimizationMicroservice.sh script, modify these variables:
    JAVA_HOME
    Full path of the directory where Java 17 is installed.
    JVM_OPTIONS

    JVM options for the microservice. This only changes the minimum and maximum heap size through the parameters -Xms and -Xmx. Do not change other parameters.

    SERVER_PORT
    Port on which microservice should run. The default value is 8080.
    LOG_DIRECTORY
    Directory where microservice logs should get stored.
    SERVICE_QUEUETHREADPOOLSIZE
    Number of schedules the microservice can process in parallel. The default is 10.
  3. If required in the script checkMicroserviceStatus.sh, modify this variable:
    SERVER_PORT
    Port on which microservice should run. The default value is 8080.
  4. To start the microservice, run this command: ./startOptimizationMicroservice.sh
  5. Wait for a few seconds for the microservice to start, then run this command to check the startus of the microservice:
    ./checkMicroserviceStatus.sh
  6. To check the logs, navigate to the log directory specified in the startOptimizationMicroservice.sh script.
    The log file optimization-microservice.log would contain the microservice logs.
    The log files inside the directory access-logs would contain the microservice access logs.
  7. To stop the microservice, run this command:
    ./stopOptimizationMicroservice.sh