Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Getting Started

Please setup Automatics system if not already done following Automatics Tool Setup

Follow below steps to deploy CDRouter service in Automatics System.

CDRouter Service Setup

Software Requirement

  • JDK

    11

    17

  • Maven 3

JDK 17 Setup Details

Follow Steps below to install Java 11 17 on CentOS/linux.

    • Update before installing any new program

      yum -y update
    • Install Java

      11

      17

      yum install java-17-openjdk
    • Verify Java is Installed

Sample Output

CDROUTER Service Setup

For setting up the Scriptless Service of Automatics 3.0, clone the repo CDRouter Service . Once the repo is cloned, please follow the below steps,

    • java –version

Building CDRouter Service Source Code

  1. Clone CDRouter Service source code from CDRouter Service
  2.  Open cdrouterservice/src/main/resources/application.properties in source code and update automatics.url with automatics base url and save the changes.
  3. Build the source code using maven to generate the jar file

"mvn clean install

Deployment

  1. Copy the jar file to the VM where CDRouter Service to be deployed.
  2. Create 2 directories cdrouter-service and logs in VM.
  3. Copy the jar file to cdrouter-service directory.
  4. Run the below command from cdrouter-service directory to bring the CDRouter Service up in the VM

  5. Use the command "mvn clean install" to build the .jar file of the CDRouter Service.
  6. Check whether the base URLs and values of Automatics Orchestration and CDRouter Service is added to the database. If not added, add it using 'AUTOMATICS_BASE_URL' , 'CDROUTERS', 'CDROUTER_SERVICE_BASE_URL' and  'CDROUTER_PAGINATION_LIMIT' as the config names in master_config table.  

    AUTOMATICS_BASE_URLBase URL of Automatics Orchestration ApplicationCDROUTERSUrl of different CDRoutersCDROUTER_PAGINATION_LIMITAdd the pagination value CDROUTER_SERVICE_BASE_URLBase URL of CDRouter Service

    Copy thecdrouterservice-0.0.1-SNAPSHOT.jar of CDrouter Service to a folder in VM. Create a empty folder with the name as 'logs' outside the folder that contains the CDRouter service jar file using the command mkdir logs. Run the below command inside the folder that contains the CDRouter Service jar file to bring the CDrouter Service up in the server.

      rackdataservice10 2> 
    nohup java -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true
    -jar
    cdrouterservice-
    0.0.
    1-SNAPSHOT.jar > logfile.log
    2>&1
    &
  7. A CDRouterService.log file will be created in the logs folder with the name CDRouterService.log. We directory and we can check the real time logs of the CDRouter Service using this file.