Previous Topic: Standalone Report ServerNext Topic: High-Availability: Layer 7 Gateway Server


High Availability Report Server

To support a high availability report server, this chapter describes installing CA Business Intelligence on Linux platform using Apache tomcat as the application server. The Apache HTTP Server is used as a load balancer. See the following diagram for details on this architecture.

High Availability Report Server

Prerequisites

Complete the following prerequisites:

  1. Install the required Linux prerequisite patches to install CA Business Intelligence on Machine3 and Machine4.
  2. Install the required Linux prerequisite patches to install Oracle Client on Machine3 and Machine4.
  3. Install the required Linux prerequisite patches to install Oracle Server on Machine1.
  4. Make sure NFS Server is installed on Machine2.
  5. Make sure NFS Client is installed on Machine3 and Machine4.

Machine1 (Database Server)

Install the Oracle server and create two databases, one for CMS and one for Auditing. See the Oracle documentation for instructions on how to install Oracle on Linux and how to create databases on Linux after installing Oracle.

Machine2 (File Repository Server)

Perform the following steps on File Repository Server Machine to configure and to start the NFS Server.

  1. Log in to the system as root.
  2. Open a terminal window and execute the following command:
    service nfs start 
    service nfs status
    mkdir -p /home/nfs/cabi 
    useradd -s /bin/bash cabiuser
    chown cabiuser /home/nfs/cabi
    id cabiuser 
    
  3. Reflect the cabiuser id and gid in the following line:
    append /home/nfs/cabi Machine*(rw,all_squash,anonuid=501,anongid=501) to /etc/exports file
    exportfs -a
    showmount -e Machine2
    su cabiuser
    mkdir frsinput frsoutput 
    

Machine3

  1. Install the Oracle client.
  2. Create a non-root user with the name cabiuser.

    This non-root user creation is mandatory to install CA Business Intelligence on Linux.

  3. Create a group with the name cabiuser.
  4. Add this user to group cabiuser.
  5. Install CA Business Intelligence as follows:
    1. Use the New install option.
    2. Provide the Machine1 database details in CMS and Audit DB section.
    3. Choose tomcat as application server.

    See the CA Business Intelligence implementation guide for more information about the installation process.

Once the installation is complete, make sure that you are able to login into CMC through the web URL.

http://Machine3:8080/CmcApp

Machine 4

  1. Install the Oracle client.
  2. Create a non-root user with the name cabiuser.
  3. Create a group with the name cabiuser.
  4. Add this user to group cabiuser.
  5. Install CA Business Intelligence as follows:
    1. Choose Custom or Expand Install option then unselect MySQL from Server Components in next screen to make this server as second node in the cluster.
    2. Provide the Machine 3 details as primary CMS in next screen.
    3. Provide the Machine1 database details in CMS and Audit DB section.
    4. Choose tomcat as application server.

    See the CA Business Intelligence implementation guide for more information about the installation process.

Make sure that you can log in into the CMC through the web URL.

http://Machine4:8080/CmcApp

Setup NFS client on both CA Business Intelligence machines:

Perform the following steps on both CA Business Intelligence machines (Machine3 and Machine4) to set up the NFS client, which is required to access a shared location in the file repository server.

  1. Log in as a root
  2. Open a terminal window and execute the following:
    mkdir -p /home/nfs/cabi 
    
    useradd -s /bin/bash -m cabiuser
    
    chown cabiuser /home/nfs/cabi
    
    add bansr02-I53529:/home/nfs/cabi /home/nfs/cabi nfs defaults 0 0 to /etc/fstab
    
    mount -a 
    
    mount
    
    su -cabiuser
    
    cd /home/nfs/cabi
    
    touch a
    
    rm a
    
    ls -alrt
    
    cd /opt/CA/SharedComponents/CommonReporting3/bobje
    
    ./stopservers
    cd data/frsinput
    cp -r * /home/nfs/cabi/frsinput
    cd ../frsoutput
    cp -r * /home/nfs/cabi/frsoutput
    cd ../..
    ./startservers
    ./ccm.sh -disable all -username Administrator -password adminpassword
    

After completing the preceding steps on any system, perform the following steps:

  1. Log in into the CMC URL as Administrator.
  2. Click Servers, Core Services and double click Machine3.InputFileRepository.
  3. Under ‘Input FileStore Service’ section set /home/nfs/cabi/frsinput to File Store Directory and /home/nfs/cabi/frsinput/temp to Temporary Directory.
  4. Do the similar activity for Output FileStore Service.
  5. Restart the services.
  6. Run this command in terminal as a cabiuser ./ccm.sh –enable all –username Administrator –password adminpassword

Machine 5

Perform the following steps to configure nodes in the cluster environment in load balancer server (Machine5) as a root user assuming you already have apache httpd server installed.

  1. Login as a root and open terminal.
  2. /etc/init.d/httpd start
  3. View the test page at http://machine5/
  4. Change directory to /etc/httpd.
  5. Go to the CA Support site to obtain the mod_jk.so file.
  6. Copy the mod_jk.so file to the modules folder.
  7. Insert the following lines in the conf/httpd.conf file before Listen 80 line.
    LoadModule jk_module /etc/httpd/modules/mod_jk.so
    JkWorkersFile "/etc/httpd/conf/workers.properties"
    JkMountFile conf/uriworkermap.properties
    JkMount /servlet/* balancer
    JkMount /*.jsp balancer
    JkMount /jkmanager/* jkstatus
    
  8. Create conf/worker.properties file with following contents.
    worker.list=balancer,jkstatus
    worker.jkstatus.type=status
    
    worker.worker1.port=8009
    worker.worker1.host=Machine3
    worker.worker1.type=ajp13
    worker.worker1.lbfactor=1
    
    worker.worker2.port=8009
    worker.worker2.host=Machine4
    worker.worker2.type=ajp13
    worker.worker2.lbfactor=1
    
    worker.balancer.type=lb
    worker.balancer.balance_workers=worker1,worker2
    worker.balancer.sticky_session=true
    
  9. Create conf/uriworkermap.properties file with below contents.
    /jmx-console=balancer
    /jmx-console/*=balancer
    /web-console=balancer
    /web-console/*=balancer
    /*=balancer
    /=balancer
    /etc/init.d/httpd stop
    /etc/init.d/httpd start
    

Load balancing configuration on both CA Business Intelligence machines:

Configure both the nodes in the cluster to accept request from the load balancer server instead of exposing its own web URL. Perform the following steps in CA Business Intelligence servers (Machine3 and Machine4).

  1. Open /opt/CA/SharedComponents/CommonReporting3/bobje/tomcat/conf/server.xml file.
  2. Comment out all Connector tags and add the following line.
    <Connector port="8009" enableLookups="false" redirectPort="8443" tomcatAuthentication="false" maxThreads="400" minSpareThreads="25" maxSpareThreads="100" protocol="AJP/1.3" />
    

    An Engine tag exists below this line. Append extra attribute jvmRoute="worker1" to this tag. (In the second CABI server, make the value"worker2").

  3. Restart servers on both Report Server systems.
  4. Restart HTTP server also in load balancer.

Now you can access CMC using url http://machine5/CmcApp as well as infoview using http://machine5/InfoViewApp.