====== Production Servers ======
==== Server Information ====
^ Components ^ Server Name ^ Login IP ^
|1. LoadBalancer \\ 2. Chat and Redis|prodwebfront|10.166.152.18|
|1. Web-App 01\\ 2. Cap Deploy Scripts|prodapp01|10.166.152.11|
|1. Master-DB 01|proddb-mast01|10.166.152.12|
|1. Slave-DB 01\\ 2. Tomcat-Solr|proddb-slav01|10.166.152.13|
|1. Recorder\\ 2. BBBv0.81\\ |prodcollab01|10.166.152.17|
==== IP Addresses / Domains ====
^ External IP ^ Internal IP ^ Public URL ^
|207.20.54.3|10.166.152.11|None|
|207.20.42.194|10.166.152.14|*.learnexa.com|
|207.20.42.195|10.166.152.15|prodcollab01.learnexa.com|
|207.20.42.198|10.166.152.21|learnexa.com|
|207.20.42.196|10.166.152.18|None|
|207.20.42.197|10.166.152.19|www.methodyoga.com|
|207.20.42.199|10.166.152.22|chat.learnexa.com
|207.20.54.0|10.166.152.23|learning.eftuniverse.com|
|207.20.54.1|10.166.152.24|learning.questcdn.com|
|207.20.42.192|10.166.152.245|training.ycada.org|
|207.20.54.4|10.166.152.244|learning.daintl.org|
====== Production WebFront Server (prodwebfront) ======
===== Server Access =====
Use Internal IP Address (after connecting to VPN) with the PROD userid to login to the PROD Server.
===== Software Components =====
The following components are installed/configured on the PROD Application Server
* Haproxy (see loadbalancer role wiki for more info)
* Chat: node (v0.2.4), redis (v2.0.3), juggernaut 2
===== Scripts and Processes =====
All scripts and processes need to be ran as PROD userid
==== Apache ====
Base site (learnexa.com)
cd ~/bin
./apache_base_sss.sh [stop|start|status] ## Use one of the 3 options
Star sites (*.learnexa.com)
cd ~/bin
./apache_star_sss.sh [stop|start|status] ## Use one of the 3 options
Custom domain site (site1.cbsaas.com)
cd ~/bin
./apache_custom_sss.sh [stop|start|status] ## Use one of the 3 options
==== Chat ====
cd ~/bin
./chat_sss.sh [stop|start|restart|status] ## Use one of the 4 options
====== Production Application Server (prodapp01) ======
===== Server Access =====
Use Internal IP Address (after connecting to VPN) with the PROD userid to login to the PROD Server.
===== Software Components =====
The following components are installed/configured on the PROD Application Server
* Web Server: Apache (Server version: Apache/2.2.21)
* Application Programming Language: Ruby (ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2011.03)
* Code Deployment: Capistrano (2.5.21) and capistrano-ext (1.2.1)
* gem (v1.3.7)
Local gems installed:
* bundler (1.0.21)
* capistrano (2.5.21)
* capistrano-ext (1.2.1)
* daemon_controller (0.2.6)
* daemons (1.1.4)
* fastthread (1.0.7)
* god (0.11.0)
* highline (1.6.2)
* net-scp (1.0.4)
* net-sftp (2.0.5)
* net-ssh (2.2.1)
* net-ssh-gateway (1.1.0)
* passenger (3.0.9)
* rack (1.3.4)
* rake (0.8.7)
* rmagick (1.15.17)
In addition to above, all other software listed in the software installation page required for the working of the application is installed.
===== Scripts and Processes =====
All scripts and processes need to be ran as PROD userid
==== Apache ====
cd ~/bin
./apache_sss.sh [stop|start|restart|status] ## Use one of the 4 options
Starting or restarting Apache will also restart Rails application
==== God ====
God controls and monitors the following processes:
* memcached
* Xvfb
* starling
* workling (dependent on starling)
* openoffice
* rufus (dependent on DB)
cd /deploy/systasks
./god.sh [stop|start|restart|status] ## Use one of the 4 options
god is stopped before code deployment and started after the code deployment by the cap scripts, will normally won't need to handle manually.
==== Code Deployment ====
Follow instructions in [[qastageandproductiondeployment#running_the_deployment_scripts]] (*Only on prodapp01)
====== PROD Collab Server (prodcollab01) ======
===== Server Access =====
Use the Internal IP Address (after connecting to VPN) with the PROD userid to login to the PROD Server.
===== Software Components =====
bbb-apps 0.80ubuntu14 BigBlueButton applications for Red5
bbb-apps-deskshare 0.8ubuntu2 BigBlueButton deskshare module for Red5
bbb-apps-sip 0.80ubuntu5 BigBlueButton SIP module for Red5
bbb-apps-video 0.80ubuntu14 BigBlueButton video module for Red5
bbb-client 0.80ubuntu142 BigBlueButton Flash client
bbb-common 0.80ubuntu27 BigBlueButton common files
bbb-config 0.80ubuntu32 BigBlueButton group package
bbb-demo 0.8ubuntu56 API demos for BigBlueButton
bbb-freeswitch 1.0.7-ubuntu41 open source telephony platform
bbb-freeswitch-config 0.80ubuntu4 BigBlueButton group package
bbb-openoffice-headless 0.71ubuntu6 BigBlueButton wrapper for OpenOffice
bbb-playback-slides 0.80ubuntu75 BigBluebutton playback of slides and audio
bbb-record-core 0.80ubuntu90 BigBlueButton record and playback
bbb-web 0.80ubuntu86 BigBlueButton API
bigbluebutton 0.80ubuntu4 Open Source Web Conferencing System (bbb)
libtomcat6-java 6.0.24-2ubuntu1.7 Servlet and JSP engine -- core libraries
nginx 0.7.65-1ubuntu2.1 small, but very powerful and efficient web s
openjdk-6-jdk 6b20-1.9.9-0ubuntu1~10.04.2 OpenJDK Development Kit (JDK)
openjdk-6-jre 6b20-1.9.9-0ubuntu1~10.04.2 OpenJDK Java runtime, using Hotspot JIT
openjdk-6-jre-headless 6b20-1.9.9-0ubuntu1~10.04.2 OpenJDK Java runtime, using Hotspot JIT (hea
openjdk-6-jre-lib 6b20-1.9.9-0ubuntu1~10.04.2 OpenJDK Java runtime (architecture independe
red5 1.0RC1-ubuntu12 The Red5 server
tomcat6 6.0.24-2ubuntu1.7 Servlet and JSP engine
tomcat6-common 6.0.24-2ubuntu1.7 Servlet and JSP engine -- common files
===== Scripts and Processes =====
All scripts and processes need to be ran as Collab-PROD userid
==== BBB Client Code Deployment ====
This script will refresh bbbclient code from collaboration/bbb/trunk/ repository, recompile using ant and restart all BBB processes.
cd ~/bin
./deploybbbclient.sh (will prompt to enter TAG, password for SVN and PROD user)
==== Recorder Code Deployment ====
This script will refresh recorder war file from collaboration/recorder/server/(trunk|tag) repository, recompile using ant, replace recorder.war and restart all BBB processes.
cd ~/bin
./deploy_recorder_server.sh (will prompt to enter TAG, password for SVN and PROD user)
==== Expertus Meeting Ruby Process ====
cd ~/bin
./expertus_meeting.sh [stop|start|status|restart]
==== BBB Processes ====
In case BBB processes need to be restarted manually, run the below:
sudo bbb-conf --restart
====== Master DB Server (proddb-mast01) ======
===== Server Access =====
Use the Internal IP Address (after connecting to VPN) with the PROD userid to login.
===== Software Components =====
The following components are installed/configured on the PROD Master DB Server
* Database: MySQL (5.5.13)
===== Scripts and Processes =====
All scripts and processes need to be ran as PROD userid
==== MySQL Service ====
cd ~/bin
./mysql_sss.sh [stop|start|restart|status] ## Use one of the 4 options
==== MySQL DB Backup ====
cd ~/bin
./runbackup.sh ## Backup of PROD CB DB will be placed under /data00/backups/
====== Slave DB Server (proddb-slav01) ======
===== Server Access =====
Use the Internal IP Address (after connecting to VPN) with the PROD userid to login.
===== Software Components =====
The following components are installed/configured on the PROD Slave DB Server
* Database: MySQL (5.5.13) running as slave of Master DB
===== Scripts and Processes =====
All scripts and processes need to be ran as PROD userid
==== MySQL Service ====
cd ~/bin
./mysql_sss.sh [stop|start|restart|status] ## Use one of the 4 options
==== Tomcat/Solr ====
cd ~/bin
./tomcat_sss.sh [stop|start|restart|status] ## Use one of the 4 options