Jump to: navigation, search
(Deploying the web application)
(Deploying the web application)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
= Deploying the web application=
 
= Deploying the web application=
{{#ponycomment:KrisMcG|Completely revise page|JIRA}}
 
 
{{NoteFormat|
 
{{NoteFormat|
*If you're deploying Web Services and Applications version 8.5.201.50 or earlier, complete the steps on [[DeployWebAppLegacy50|Deploying the web application for 8.5.201.50 or earlier]] instead.
+
*If you're deploying Web Services and Applications version 8.5.201.50 or earlier, complete the steps on [[DeployWebAppLegacy50|Deploying the web application for 8.5.201.50 or later]] instead.
 
*If you're deploying Web Services and Applications version 8.5.201.09 or earlier, complete the steps on [[DeployWebAppLegacy|Deploying the web application for 8.5.201.09 or earlier]] instead.}}
 
*If you're deploying Web Services and Applications version 8.5.201.09 or earlier, complete the steps on [[DeployWebAppLegacy|Deploying the web application for 8.5.201.09 or earlier]] instead.}}
  
Line 16: Line 15:
 
# Copy the <nowiki>*.sample</nowiki> files from the '''/installation_path/gws/config/config-templates''' directory to the '''/installation_path/gws/config''' directory and remove the '''.sample''' extension.  
 
# Copy the <nowiki>*.sample</nowiki> files from the '''/installation_path/gws/config/config-templates''' directory to the '''/installation_path/gws/config''' directory and remove the '''.sample''' extension.  
 
# Run following command to register the new service on your host: <tt>chkconfig gws on</tt>
 
# Run following command to register the new service on your host: <tt>chkconfig gws on</tt>
# {{Editgrn_open}}Configure Web Services and Applications <link to configuration guide>.{{Editgrn_close}}
 
# Proceed to [[Documentation:HTCC:Dep:StartHTCC|Starting and Testing Web Services]].
 
  
 
'''End'''  
 
'''End'''  
 +
 +
==Next Steps==
 +
# [[ConfigurationPremise|Configuring Web Services]]
 +
# [[InitializingCassandra|Initializing Cassandra]]
 +
# [[Documentation:HTCC:Dep:StartHTCC|Starting and Testing Web Services]]
  
 
==Installation package files==
 
==Installation package files==
  
===Files for starting Web Services as a system service on Red Hat Enterprise Linux 6===
+
=== Web Services configuration and initialization files (Red Hat Enterprise Linux 6)===
  
 
{| border="1"
 
{| border="1"
Line 31: Line 33:
 
|-
 
|-
 
| /etc/default/gws
 
| /etc/default/gws
| The configuration file for the Web Services service on Red Hat Enterprise Linux 6 platform.
+
| The configuration file for the Web Services service.
 
|-
 
|-
 
| /etc/init.d/gws
 
| /etc/init.d/gws
| The initialization script for the Web Services service on Red Hat Enterprise Linux 6 platform.
+
| The initialization script for the Web Services service.
 
|}
 
|}
  
  
===Files for starting Web Services as a system service on Red Hat Enterprise Linux 7===
+
===Web Services configuration and initialization files (Red Hat Enterprise Linux 7)===
  
 
{| border="1"
 
{| border="1"
Line 47: Line 49:
 
|-
 
|-
 
| /usr/bin/gws
 
| /usr/bin/gws
| The initialization script for the Web Services service on Red Hat Enterprise Linux 7 platform.
+
| The initialization script for the Web Services service.
 
|-
 
|-
 
| /usr/lib/systemd/system/gws.service
 
| /usr/lib/systemd/system/gws.service
| The default configuration file for the Web Services service on Red Hat Enterprise Linux 7 platform.
+
| The default configuration file for the Web Services service.
 +
 
 +
The following scripts extend service functionality on the Red Hat Enterprise Linux 7 platform:
 +
 
 +
* /usr/libexec/initscripts/legacy-actions/gws/config
 +
* /usr/libexec/initscripts/legacy-actions/gws/version
 
|-
 
|-
 
| /usr/lib/systemd/system/gws.service.d/gws.conf
 
| /usr/lib/systemd/system/gws.service.d/gws.conf
Line 56: Line 63:
 
|}
 
|}
  
===Extended service functionality on Red Hat Enterprise Linux 7 platform===
+
===Web Services and Applications files===
 +
 
 
{| border="1"
 
{| border="1"
 
|-
 
|-
Line 62: Line 70:
 
! Description
 
! Description
 
|-
 
|-
| /usr/libexec/initscripts/legacy-actions/gws/config
+
| /installation_path/gws
|  
+
| The home directory of Web Services and Applications.
 
|-
 
|-
| /usr/libexec/initscripts/legacy-actions/gws/version
+
| /installation_path/gws/gws.jar
|
+
| The application .jar file.
 
|}
 
|}
  
{{Editgrn_open}}Moving the content in the next table into separate tables as shown above.{{Editgrn_close}}
+
===GWS Configuration files===
 +
 
 
{| border="1"
 
{| border="1"
 
|-
 
|-
 
! File/folder name
 
! File/folder name
 
! Description
 
! Description
|-
 
! colspan=2  style="background-color:#F5F5F5" | '''Web Services and Application Files'''
 
|-
 
| /installation_path/gws
 
| The home directory of Web Services and Applications.
 
|-
 
| /installation_path/gws/gws.jar
 
| The application .jar file.
 
|-
 
! colspan=2  style="background-color:#F5F5F5" | '''GWS Configuration Files'''
 
 
|-
 
|-
 
| /installation_path/gws/config
 
| /installation_path/gws/config
Line 90: Line 89:
 
* /installation_path/gws/config/hystrix.properties
 
* /installation_path/gws/config/hystrix.properties
 
* /installation_path/gws/config/logback.xml
 
* /installation_path/gws/config/logback.xml
|-
 
! colspan=2  style="background-color:#F5F5F5" | '''GWS Configuration Files'''
 
 
|-
 
|-
 
| /installation_path/gws/config-templates  
 
| /installation_path/gws/config-templates  
Line 98: Line 95:
 
* /installation_path/gws/config-templates/elasticsearch.yml.sample
 
* /installation_path/gws/config-templates/elasticsearch.yml.sample
 
* /installation_path/gws/config-templates/statistics.yaml.sample
 
* /installation_path/gws/config-templates/statistics.yaml.sample
 +
|}
 +
 +
===Cassandra schema===
 +
 +
{| border="1"
 
|-
 
|-
! colspan=2  style="background-color:#F5F5F5" | '''Cassandra schema'''
+
! File/folder name
 +
! Description
 
|-
 
|-
 
| /installation_path/gws/data
 
| /installation_path/gws/data
Line 113: Line 116:
 
** /installation_path/gws/data/ks-schema-prod_HA.txt
 
** /installation_path/gws/data/ks-schema-prod_HA.txt
 
** /installation_path/gws/data/cf-schema.txt
 
** /installation_path/gws/data/cf-schema.txt
|-
 
! colspan=2  style="background-color:#F5F5F5" | '''Elastic search templates'''
 
|-
 
| /installation_path/gws/elasticsearch
 
|
 
|-
 
! colspan=2  style="background-color:#F5F5F5" | '''Routing templates'''
 
|-
 
| /installation_path/gws/routing-templates
 
|
 
 
|}
 
|}
  
 +
===Elastic search templates and routing templates===
 +
 +
* /installation_path/gws/elasticsearch
 +
* /installation_path/gws/routing-templates
  
==Next Step==
 
*[[ConfigurationPremise|Configuring Web Services]]
 
  
 
[[Category:V:HTCC:8.5.2DRAFT]]
 
[[Category:V:HTCC:8.5.2DRAFT]]

Latest revision as of 07:40, June 25, 2019

Deploying the web application

Important


Complete the following steps for each Web Services node.

Start

  1. Copy the installation_CD/ gws-<version>.noarch.rpm file to a local folder.
  2. Perform the installation using the RPM package manager:
    rpm -ivh [--prefix installation_location] gws-<version>.noarch.rpm
    If --prefix is not specified, the default installation location is /usr/share folder.
  3. Copy the *.sample files from the /installation_path/gws/config/config-templates directory to the /installation_path/gws/config directory and remove the .sample extension.
  4. Run following command to register the new service on your host: chkconfig gws on

End

Next Steps

  1. Configuring Web Services
  2. Initializing Cassandra
  3. Starting and Testing Web Services

Installation package files

Web Services configuration and initialization files (Red Hat Enterprise Linux 6)

File/folder name Description
/etc/default/gws The configuration file for the Web Services service.
/etc/init.d/gws The initialization script for the Web Services service.


Web Services configuration and initialization files (Red Hat Enterprise Linux 7)

File/folder name Description
/usr/bin/gws The initialization script for the Web Services service.
/usr/lib/systemd/system/gws.service The default configuration file for the Web Services service.

The following scripts extend service functionality on the Red Hat Enterprise Linux 7 platform:

  • /usr/libexec/initscripts/legacy-actions/gws/config
  • /usr/libexec/initscripts/legacy-actions/gws/version
/usr/lib/systemd/system/gws.service.d/gws.conf The custom configuration file for the Web Services service. The settings defined in this file override the default settings.

Web Services and Applications files

File/folder name Description
/installation_path/gws The home directory of Web Services and Applications.
/installation_path/gws/gws.jar The application .jar file.

GWS Configuration files

File/folder name Description
/installation_path/gws/config The folder containing configuration files of Web Services and Applications, including:
  • /installation_path/gws/config/feature-definitions.json
  • /installation_path/gws/config/hystrix.properties
  • /installation_path/gws/config/logback.xml
/installation_path/gws/config-templates The folder that contains templates of the Web Services and Applications configuration files. After installation, files from the folder must be modified according to Web Services and Applications Configuration Guide and moved to /installation_path/gws/config. The templates include:
  • /installation_path/gws/config-templates/application.yaml.sample
  • /installation_path/gws/config-templates/elasticsearch.yml.sample
  • /installation_path/gws/config-templates/statistics.yaml.sample

Cassandra schema

File/folder name Description
/installation_path/gws/data The folder that contains scripts to deploy database schema. Files include:
  • Scripts for Cassandra schema deployment using the cqlsh tool:
    • /installation_path/gws/data/ks-schema-local.cql
    • /installation_path/gws/data/ks-schema-prod.cql
    • /installation_path/gws/data/ks-schema-prod_HA.cql
    • /installation_path/gws/data/cf-schema.cql
  • Scripts for Cassandra schema deployment using the cassandra-cli tool:
    • /installation_path/gws/data/ks-schema-local.txt
    • /installation_path/gws/data/ks-schema-prod.txt
    • /installation_path/gws/data/ks-schema-prod_HA.txt
    • /installation_path/gws/data/cf-schema.txt

Elastic search templates and routing templates

  • /installation_path/gws/elasticsearch
  • /installation_path/gws/routing-templates
This page was last edited on June 25, 2019, at 07:40.
Comments or questions about this documentation? Contact us for support!