Documente Academic
Documente Profesional
Documente Cultură
GE Healthcare
Version 1.0
GE Healthcare Application Deployment Procedure
VERSION HISTORY
INDEX
1
1 Overview.................................................................................................................................................1
2 US Pole....................................................................................................................................................2
2.1 Deployment Procedure in Weblogic 8.x...........................................................................................2
2.1.1 New Deployment ........................................................................................................................2
2.1.2 Redeployment..............................................................................................................................4
2.2 Deployment in Weblogic 10.x...........................................................................................................5
2.2.1 New Deployment ........................................................................................................................5
2.2.2 Redeployment ...........................................................................................................................10
2.3 Deployment Procedure in JBoss......................................................................................................12
2.3.1 New Deployment ......................................................................................................................12
2.3.2 Redeployment (In Stage and Prod)............................................................................................13
2.3.3 Redeployment (In Dev).............................................................................................................14
2.4 Deployment Procedure in Coldfusion.............................................................................................15
2.4.1 Full Deployment........................................................................................................................16
2.4.2 Partial Deployment....................................................................................................................17
3 EMEA Pole...........................................................................................................................................18
3.1 Deployment Procedure in Weblogic...............................................................................................18
3.2 Deployment Procedure in Jboss - Introduction...............................................................................18
4 Asia Pole...............................................................................................................................................25
4.1 Deployment Procedure in JBoss......................................................................................................25
1 Overview
We have three levels in which Applications are maintained:
Development
Staging
Production.
The application is first hosted on Development to ensure its proper functionality and is moved to
staging.
Before an application comes to Production, it will undergo a LOADTEST in the Staging level to
simulate the real-time performance and have the necessary tuning for better performance and
stability in the production environment.
NOTE: Provide the below information to the user before deploying a New Application.
2 US Pole
Here we deal with three kinds of Application servers:
WEBLOGIC
JBOSS
COLDFUSION
Inputs Required
• Clarify case/Change control id.
• Location of the Application source(achieve files like war, ear)
• Name, Contact Details of the application Owner.
• Cross check if the application has any Customized settings or can it be deployed in the shared
Environment.
.
Procedure for executing the Deployment:
• Open the server in which the application should be deployed using the Inputs.
• Log in to the server using your "NIS credentials ".
• Switch to the respective user (here its "weblogic") by issuing the command "sudo su - weblogic".
• Go to "<Weblogic_Home>/User_projects/Domains/<Domain_Name>/Applications” folder
• Connect to the ftp server in which the user placed the application by giving in
ftp globe.med.ge.com (or) ftp gemsdev12.med.ge.com
GLOBE - Username/Password - anonymous/anonymous.
GEMSDEV12 - Username/Password - loguser/loguser.
• Go to the specific path provided by the user to ensure the application is present in the following
directory.
• Cross check the size of the application with the user.
• Change the mode to binary using the command "bin".
• Get the file to the location from where you have connected to ftp using "mget <filename>".
• Ensure
the
size of
the
2.1.2 Redeployment
Inputs Required
• Clarify case/Change control id.
• Location of the Application source(achieve files like war, ear)
• Application URL.
.
Procedure for executing the Deployment:
• Locate the appropriate web and application server by recognizing the URL.
• Log in to the server using your "NIS credentials ".
• Switch to the respective user (here its "weblogic") by issuing the command "sudo su - weblogic".
• Go to "<Weblogic_Home>/User_projects/Domains/<Domain_Name>/Applications” folder. Check
that application is present.
• Open the Admin console.
• Click on the "Deployments" in the left and the required from the list as per your requirement. (For
ex: For a war file we need to go to web applications module)
• On the right, it will display the list of deployed applications or modules.
• Select the one which you are trying to redeploy.
• Click on the Targets Tab and make a note as where the application is targeted to.
• Click on the Deploy Tab and click on STOP button. It should show the Deployment Status as
“Unavailable” and Status as “Success”.
• Take back up of the application using <appname>.mm/dd/yyyy format and in case of a CC use
<appname>.mm/dd/yyyy .cc#
• Now delete the application / module from the console.
• Connect to the ftp server in which the user placed the application by giving in
ftp://globe.med.ge.com (or) ftp://gemsdev12.med.ge.com.
GLOBE - Username/Password - anonymous/anonymous.
GEMSDEV12 - Username/Password - loguser/loguser.
• Go to the specific path provided by the user ensure the application is present in the following
directory.
• Cross check the size of the application with the user.
• Change the mode to binary using the command "bin".
• Get the file to the location from where you have connected to ftp using "mget <filename>".
• Ensure the size of the application in the FTP and the application folders are same.
• Open the Admin console.
• Ensure that the servers Instance/s are in running Condition.
• Ensure that the Heap memory of the server instance/s on application is planned to be targeted have
more than 15-20% of the heap space.
• Ensure that the server instance/s have no threads stuck before the deployment commences.
• Click on the "Deployments" in the left and the required from the list as per your requirement. (For
ex: For a war file we need to go to web applications module)
• Based on above selection, on the right side click on the “Deploy new ……………………..”
• Select the source location from where the application will be accessible.
• Select the Targets on which the application will be deployed.
• Select the Mode of Deployment: Stage/ No -Stage. Unless Specified The default method followed is
by using the stage mode of deployment.
• Keep the server out log ready to monitor the deployment process by issuing "tail -f serverout.log".
• Click on the "Deploy" in the Admin Console. Select the targets where it was earlier deployed.
• Ensure that the deployment is successful.
• Ensure that the application is working by Going to the testing tab and testing the URL.
• Update the User with the status of the application.
• Update the same in the clarify/ cc.
Inputs Required
• Clarify case/Change control id.
• Location of the Application source (archive files like war, ear).
• Name, Contact Details of the application Owner.
• Cross check if the application has any Customized settings or can it be deployed in the shared
Environment.
• Go to the specific path provided by the user to ensure the application is present in the following
directory.
• Cross check the size of the application with the user.
• Change the mode to binary using the command "bin".
• Get the file to the location from where you have connected to ftp using "mget <filename>".
• Ensure the size of the application in the FTP and the application folders are same.
• Open the Admin console. Ensure that the servers Instances are in running Condition.
• Ensure that the Heap memory of the server instance/s on which the application is planned to be
targeted has more than 15-20% of the heap space.
• Ensure that the server instances have no threads stuck before the deployment commences.
• Now open the Weblogic console >> Click on “Lock and Edit” which will let you modify the
configurations and perform deployments as per your need
• Upon clicking the deployments you will see a new window on the right side as shown in the
Figure below.
• To install a new application click on Install and you would be direct to a page similar to the one shown
below. You must locate the war file in the system by browsing through the directories and then Click
on “NEXT”
• You will be redirected to a page shown below since you are deploying an application select the First
option as shown and click on “NEXT”.
• You will be then redirected to another page in which you need to specify the targets server instances on
which the application will be hosted.
• Now after targeting the application you will need to specify a deployment type option like stage and
no-stage mode.
• Choose as per your requirement the staging or no-stage mode and then click on “Finish”.
• Once finished the application will be deployed but will be not ready to serve requests , you will need to
activate the changes by clicking on Activate changes.
2.2.2 Redeployment
Inputs Required
• Clarify case/Change control id.
• Location of the Application source(achieve files like war, ear)
• Application URL.
.
Procedure for executing the Deployment:
• Locate the appropriate web and application server by recognizing the URL.
• Log in to the server using your "NIS credentials ".
• Switch to the respective user j2ee-r/j2ee-a. (J2ee-r for restart and j2ee-a for configuration changes).
• Go to /data/egehc/Applications” folder. Check that application is present.
• Take back up of the existing application using <appname>.mm/dd/yyyy format and in case of a CC
use <appname>.mm/dd/yyyy .cc#
• Connect to the ftp server in which the user placed the application by giving in
ftp://globe.med.ge.com (or) ftp://gemsdev12.med.ge.com.
GLOBE - Username/Password - anonymous/anonymous.
GEMSDEV12 - Username/Password - loguser/loguser.
• Go to the specific path provided by the user ensure the application is present in the following
directory.
• Cross check the size of the application with the user.
• Change the mode to binary using the command "bin".
• Get the file to the location from where you have connected to ftp using "mget <filename>".
• Ensure the size of the application in the FTP and the application folders are same.
• Now open the Weblogic console >> Click on “Lock and Edit” which will let you modify the
configurations and perform deployments as per your need
• If the path in which you have placed the updated war/ear file you may go ahead clicking on
“Finish”, otherwise provide the new location and then click on “Finish”.
• You Will see the below window Showing that the selected deployments were updated and prompts
to activate changes. And also note the state of the deployment as Deployment Initializing.
• Once the changes are activated, the state of the application changes to active.
• Check the Application and inform the same to the user and update the case.
There are three nodes in jboss dev, stage and prod application servers.
The hostname is of the following format:
bronze-app-<environment>-<XX>.am.health.ge.com
Where in the <environment>= dev, stage or prod
Node number <XX>= 01, 02 or 03
Similarly the webserver are with the hostname of the format:
bronze-web-<environment>-<XX>.am.health.ge.com
Inputs Required
• Clarify case/Change control id.
• Application URL
• Location of the new war file and/or data source file (ds.xml)
.
Procedure for executing the Deployment:
• Login into any one of the nodes depending on the deployment in dev, stage or prod. .
• Login to the server using your NIS Credentials
• Here give the sudo login at the prompt:
/apps/sudo/bin/sudo /usr/bin/su - j2ee-r (for deployments/restarting nodes) or
/apps/sudo/bin/sudo /usr/bin/su - j2ee-a (for editing configuration files)
/apps/sudo/bin/sudo /usr/bin/su - j2ee-r
• Location of the application war and ds.xml files is : /data/bronze-app/nodeXX/farm
XX=01 or 02 or 03 (any of the nodes can be used to deploy)
• Connect to the ftp server in which the user placed the application by giving in
ftp://globe.med.ge.com (or) ftp://gemsdev12.med.ge.com.
GLOBE - Username/Password - anonymous/anonymous.
GEMSDEV12 - Username/Password - loguser/loguser.
• Go to the specific path provided by the user ensure the application is present in the following
directory.
• Cross check the size of the application with the user.
• Change the mode to binary using the command "bin".
• Get the file to the location from where you have connected to ftp using "mget <filename>
<filename>".
• Ensure the size of the application in the FTP and the farm folder is same.
• Ensure that the application is replicated in all the nodes (Sometimes it will take some time to
replicate in the other nodes so wait for few minutes)
• Access the farm folder of the other nodes to ensure that .war and/or the .xml file has been moved.
• If it did not get moved it shows that either of the nodes is down. Check the logs of the nodes from the
path: /logs/bronze-app/nodeXX.
• Check the given URL and update the status to the user.
• Update the same in the clarify/ cc
Inputs Required
• Clarify case/Change control id.
• Application URL
• Location of the new war file and/or data source file (ds.xml)
.
Procedure for executing the Deployment:
• Locate the appropriate web and application server by recognizing the URL.
• Login to the server using your NIS Credentials
• Here give the sudo login at the prompt:
/apps/sudo/bin/sudo /usr/bin/su - j2ee-r (for deployments/restarting nodes) or
/apps/sudo/bin/sudo /usr/bin/su - j2ee-a (for editing configuration files)
• Location of the application war and ds.xml files is : /data/bronze-app/nodeXX/farm
XX=01 or 02 or 03 (any of the nodes can be used to deploy)
• Move the appropriate file using the move command: mv
e.g., mv abc.war /tmp/abc.war.<mmddyyyy>
• Connect to the ftp server in which the user placed the application by giving in
ftp://globe.med.ge.com (or) ftp://gemsdev12.med.ge.com.
GLOBE - Username/Password - anonymous/anonymous.
GEMSDEV12 - Username/Password - loguser/loguser.
• Go to the specific path provided by the user ensure the application is present in the following
directory.
• Cross check the size of the application with the user.
• Change the mode to binary using the command "bin".
• Get the file to the location from where you have connected to ftp using "mget <filename>
<filename>".
• Ensure the size of the application in the FTP and the farm folder is same.
• Ensure that the application is replicated in all the nodes (Sometimes it will take some time to
replicate in the other nodes so wait for few minutes)
• Access the farm folder of the other nodes to ensure that .war and/or the .xml file has been moved.
• If it did not get moved it shows that either of the nodes is down. Check the logs of the nodes from the
path: /logs/bronze-app/nodeXX.
• Check the given URL and update the status to the user.
• Update the same in the clarify/ cc
• The “Admin” link should be accessed by the web services admin after which the following page is
given.
• After the user accesses the self-deploy url with his staging sso his name and the sso would appear in
the list above.
• Click on EDIT column icon corresponding to their sso in the above page.
• A page consisting of the list of applications (which are running on the server) with a check box next
to each would be given.
• Since you have deployed the application and then asked the user to access this url that application
would also be shown in the above said page mark the check in the box next to that application.
• This would give permissions to the user to deploy their app in development environment when ever
they need even without intimating us.
• So dev re-deployments are usually not done by us unless the user has some issue accessing the self-
deploy tool/url.
• In case a user faces issue in using the self-deploy URL then the Re-deployment process mentioned in
Section 2.2.2 can be followed replacing the box name with: bronze-app-dev-XX.am.health.ge.com.
3 EMEA Pole
3.1 Deployment Procedure in Weblogic
Deployment
• Take the backup of existing ear/war file (say For Ex. isd.ear) with extension as current date stamp
Prod --- /opt/appl/isd/backup
Stage --- /opt/appl/isd/bkp or same folder /opt/appl/isd/zzrcte/webapp
• Copy the war file
Prod --- /opt/appl/isd/zzprod/webapp
Stage --- /opt/appl/isd/zzrcte/webapp
• Stop the application (make sure cache must be removed)
• Using admin console stop the application and delete it.
(Login to the box through putty and Check the stage and .wlnotdelete folder, if isd related folder is
there remove it manually)
• Redeploy the application
Deploy as new Application by selecting the ear file source directory
Ex: - select “/” – “opt”—“appl” – “isd” – “zzprod” – “webapp”
isd.ear target to isd-server and click on deploy button.
• Target to virtual host
Select each application (using admin console tree -- Deployment --- Applications --- ISD) and
target it to Virtual Host ( isd-rcte) and deploy the each application.
Both Web and Application servers are present in the same box.
The application versions are controlled using CVS. The process to deploy new files using cvs is listed
below.
• You will be provided with the CC # which contains the required information for you to carry out the
deployment activity.
• Inputs you will need to carry out the deployment are :
a) Tag for the list of New/Old files provided.
b) Application URL
c) Details of the locations of new files and old files.
These details will be provided as an attachment to the CC.
• Start Eclipse and follow the below steps to copy the applications from CVS to your local system and
make necessary changes as per the cc.
Step 2: Right Click on the Specified Icon and Select “Other…” to get “Open Perspective” Window.
Step 3: you will find “Open Perspective” Window. Select “CVS Repository and Exploring” and
Click “OK”
In that window Right Click >> Select New >> Select Repository Location.
Step 5: You would find a new Window as shown below; In this Window you will need to fill up all
the required details.
Where
Host - address of the cvs
Repository path is the path of the Prod / Dev Application placed in cvs
User/Password: CVS credentials should be provided.
Step 6: You will find a new entry in the CVS Repository as shown below, You will have to add both
the prod and devl versions in the same manner.
Step 7: Now to check out from the CVS Repository to your local computer.
To Check out the devl version of the application from the repository:
Click on extssh:manyam@openge.ge.com/cvsroot/iid-devl
Go to HEAD >> iis-devl
Right Click on iis-devl and click on “Check out “
You will get a status Window as shown below with shows the status of the files being
copied to your local system from the cvs repository.
Once the Upload is completed you would find the directory structure of the application
copied to your local Computer / workspace. This is called a “PROJECT EXPLORER”
Step 8: Now as per the details mentioned in the Excel sheet Copy the new files from devl to the prod
and ensure the directory location of the file in devl and prod does not change.
Step 9: After Copying all the new files to prod Then right Click on the prod version of the application
and then click on “TEAM” >> click on “Commit”.
Step 10: Once done Open putty and login to the sever hubudweb01.em.health.ge.com and then go to
/opt/appl<app.Name>/zzprod/build/jboss/
Step 13: Now execute “ant –f goprod.xml”. It would prompt for source tag, target tag and User
credentials. Provide the same when prompted for.
Step 15: Once the Build is successful then test the application url and inform the user the same.
Step5: Now execute “ant –f goprod.xml”. It would prompt for source tag, target tag and User
credentials. Provide the same when prompted.
Step7: Once the Build is successful then test the application URL and inform the user the same.
4 Asia Pole
4.1 Deployment Procedure in JBoss
Inputs required:
You will be provided with the application URL and the path, where the Application is placed.
Deployment Process:
The locations where back has to be taken will be: /data/jboss/<App Name>/backup
Step3: Get the latest Application file provided by the user to the Application Directory. Generally the
applications are kept in ftp (globe / gemsdev12.).
Go to the path where you want the file/directory to be copied and execute the scp command:
Step4: Tail the logs to see if there are any errors during the deployment of the application.
Once the deployment is done Intimate the user.