Versions Compared

Key

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

...

WARNING: Before proceeding with initializations, make sure that you are pointing at branches/1.1.3.


DOWN

web into MAINT mode (SF_PROD_WEB)

put the web servers into maintenance mode (SF WEB, SD WEB)

Code Block
cd /var/www/html
sudo ./set_eas_mode.sh MAINT

database backup (SF_PROD_DB)

Code Block
sudo -u postgres -i
/home/dba/scripts/dbbackup.sh > /var/tmp/dbbackup.log

DEPLOY

migrate DB (ETL_PROD)

Log into to the ETL server and do the following.

Code Block
REM see warning above
cd "C:\Program Files\MAD\"
del etl
setup.bat
python job.py --job migrate_to_1.1.3 --action INIT --env SF_PROD

upgrade java (SF_PROD_GEO

...

, SD_PORD_GEO)

install the latest version of java

...

Code Block
cd /usr
sudo rm -rf jdk1.6.0_24

upgrade tomcat (SF_PROD_GEO

...

, SD_PROD_GEO)

preamble
Code Block
sudo /usr/sbin/usermod -g geodev tomcat
sudo /usr/sbin/usermod -d /usr/share/apache-tomcat-7.0.30 tomcat

...

Code Block
sudo rm -rf /usr/share/tomcat5
sudo rm /etc/init.d/tomcat5

upgrade geoserver (SF_PROD_GEO

...

, SD_PROD_GEO)

Code Block
cd /usr/share/apache-tomcat-7.0.30/webapps
sudo wget http://downloads.sourceforge.net/geoserver/geoserver-2.1.4-war.zip
sudo unzip geoserver-2.1.4-war.zip

...

Code Block
mkdir downloads/
cd downloads/
wget http://iweb.dl.sourceforge.net/project/geoserver/GeoServer%20Extensions/2.1.4/geoserver-2.1.4-pyramid-plugin.zip
unzip geoserver-2.1.4-pyramid-plugin.zip
sudo cp gt-imagepyramid-2.7.5.jar /usr/share/apache-tomcat-7.0.30/webapps/geoserver/WEB-INF/lib
sudo chown -R tomcat:geodev /usr/share/apache-tomcat-7.0.30/webapps/geoserver
sudo /sbin/service tomcat start

install image processing software (SF_PROD_GEO, SD_PROD_GEO)

We need to install the following on the geoserver boxes so we can process imagery in situ.

...

Code Block
LD_LIBRARY_PATH_DEFAULT=/usr/local/lib
export LD_LIBRARY_PATH_DEFAULT

LD_LIBRARY_PATH=$LD_LIBRARY_PATH_DEFAULT
export LD_LIBRARY_PATH

deploy imagery data (SF_PROD_GEO, SD_PROD_GEO)

setup imagery/geoserver directories

...

In the off chance that you need to build the pyramid from scratch, follow the instructions spelled out in main():
http://code.google.com/p/eas/source/browse/trunk/bin/build_pyramids.py

upgrade the deploy automation and deploy (SF_PROD_GEO, SD_PROD_GEO)

Code Block
cd /usr/share/apache-tomcat-7.0.30/webapps
sudo svn export http://eas.googlecode.com/svn/trunk/geoserver/deploy_geoserver_init.sh
sudo dos2unix deploy_geoserver_init.sh
sudo ./deploy_geoserver_init.sh

...

The should be no exceptions besides this one.

deploy web application (SF_PROD_WEB, SD_PROD_WEB)

Code Block
# see warning at top
cd /var/www/html
sudo ./deploy_eas_init.sh
# make sure web application works and is correct version

reset automated jobs (ETL_PROD)

Remove the crontab entry that truncate the geo web cache.
Add an automated job to the windows ETL server to truncate the geoweb cache.
The ETL job name is "map_cache_truncate".

UP

web

put SF WEB servers into LIVE mode

...