(Update with the copy of version: 8.5.2DRAFT) |
|||
Line 1: | Line 1: | ||
− | =Upgrading from 8.5.201.18 to 8.5.201. | + | =Upgrading from 8.5.201.18 to 8.5.201.84= |
− | + | <ol> | |
− | + | <li> Stop Web Services and Applications on the node.</li> | |
− | + | <li> Install Java 8 on the node according to [[MigJavaMigration|Migrating from Java 7 to Java 8]].</li> | |
− | + | <li> Back up your old installation and configuration files in case you need to rollback your upgrade at a later date. Make sure to back up the following files if you configured the previous version as a service: | |
− | + | <ul> | |
− | + | <li> '''/etc/init.d/gws'''</li> | |
− | + | <li> '''/etc/default/gws'''</li> | |
− | + | </ul></li> | |
− | + | <li> Remove the following service initialization scripts from the host: | |
− | + | <ul> | |
− | + | <li> '''/etc/init.d/gws'''</li> | |
− | + | <li> '''/etc/default/gws'''</li> | |
− | + | </ul></li> | |
− | + | <li> [[Documentation:HTCC:Dep:DeployWebApp|Deploy the new version of Web Services and Applications]].</li> | |
− | + | <li> Copy the following configuration files from the configuration folder in your previous installation into the '''config''' folder in the home directory of the new installation: | |
− | + | <ul> | |
− | + | <li> '''application.yaml'''</li> | |
− | + | <li> '''elasticsearch.yml'''</li> | |
− | + | <li> '''hystrix.properties'''</li> | |
− | + | <li> '''logback.xml'''</li> | |
− | + | <li> '''statistics.yaml'''</li> | |
− | + | </ul></li> | |
− | + | <li> On the Red Hat Linux 6 platform, open the '''/etc/default/gws''' file and update the following environment variables to values appropriate for your Web Services and Applications node: | |
− | + | <ul> | |
− | + | <li> '''GWS_HOST''': This value must match the '''host''' value defined in the '''jetty''' section of the '''application.yaml''' file.</li> | |
− | + | <li> '''GWS_PORT''': This value must match '''port''' value defined in the '''jetty''' section of the '''application.yaml''' file.</li> | |
− | + | </ul></li> | |
− | + | <li> Update the '''application.yaml''' file with the new path to the '''logback.xml''' file.</li> | |
− | + | <li> Adjust the '''updateOnStartup''' option in the '''application.yaml'''. See [[MigConfigNewOptions#DeployUpdate|Web Services and Applications deployment update]].</li> | |
− | + | <li> Update the Cassandra schema: | |
− | + | <ul> | |
− | + | <li> If you are using Cassandra 2.x: | |
− | + | <ol type=a> | |
− | + | <li> Copy the '''cf-schema-8.5.201.84.cql''' file from <tt>/installation_path/gws/data/updates</tt> to the Cassandra node host.</li> | |
+ | <li> Run the following command: | ||
+ | <source lang="text"> | ||
+ | cqlsh cassandra_host --file cf-schema-8.5.201.84.cql | ||
+ | </source></li> | ||
+ | </ol></li> | ||
+ | <li> If you are using Cassandra 1.2: | ||
+ | <ol type=a> | ||
+ | <li> Copy the '''cf-schema-8.5.201.84.txt''' file from <tt>/installation_path/gws/data/updates</tt> to the Cassandra node host.</li> | ||
+ | <li> Run the following command: | ||
+ | <source lang="text"> | ||
+ | cassandra_install_dir/bin/cassandra-cli -h cassandra_host --file cf-schema-8.5.201.84.txt | ||
+ | </source></li> | ||
+ | </ol></li> | ||
+ | </ul></li> | ||
+ | <li> Start Web Services and Applications according to [[Documentation:HTCC:Dep:StartHTCC|Starting and testing]].</li> | ||
+ | <li> After all Web Services and Applications nodes are upgraded and started, update ElasticSearch: | ||
+ | <ul> | ||
+ | <li> If you use embedded Elasticsearch, run the following script on ''one'' Web Services and Applications node: <source lang="text"> | ||
+ | /installation_path/gws/tools/rebuild-es-index.sh | ||
+ | </source></li> | ||
+ | <li> If you use standalone Elasticsearch: | ||
+ | <ol type=a> | ||
+ | <li> Copy files from the <tt>/installation_path/gws/elasticsearch/templates</tt> folder to the templates folder on each Elasticsearch node.</li> | ||
+ | <li> Run the following script on ''one'' Web Services and Applications node: | ||
+ | <source lang="text"> | ||
+ | /installation_path/gws/tools/rebuild-es-index.sh | ||
+ | </source></li> | ||
+ | </ol></li> | ||
+ | </ul></li> | ||
+ | </ol> | ||
[[Category:V:HTCC:8.5.2]] | [[Category:V:HTCC:8.5.2]] |
Revision as of 16:41, July 14, 2017
Upgrading from 8.5.201.18 to 8.5.201.84
- Stop Web Services and Applications on the node.
- Install Java 8 on the node according to Migrating from Java 7 to Java 8.
- Back up your old installation and configuration files in case you need to rollback your upgrade at a later date. Make sure to back up the following files if you configured the previous version as a service:
- /etc/init.d/gws
- /etc/default/gws
- Remove the following service initialization scripts from the host:
- /etc/init.d/gws
- /etc/default/gws
- Deploy the new version of Web Services and Applications.
- Copy the following configuration files from the configuration folder in your previous installation into the config folder in the home directory of the new installation:
- application.yaml
- elasticsearch.yml
- hystrix.properties
- logback.xml
- statistics.yaml
- On the Red Hat Linux 6 platform, open the /etc/default/gws file and update the following environment variables to values appropriate for your Web Services and Applications node:
- GWS_HOST: This value must match the host value defined in the jetty section of the application.yaml file.
- GWS_PORT: This value must match port value defined in the jetty section of the application.yaml file.
- Update the application.yaml file with the new path to the logback.xml file.
- Adjust the updateOnStartup option in the application.yaml. See Web Services and Applications deployment update.
- Update the Cassandra schema:
- If you are using Cassandra 2.x:
- Copy the cf-schema-8.5.201.84.cql file from /installation_path/gws/data/updates to the Cassandra node host.
- Run the following command:
cqlsh cassandra_host --file cf-schema-8.5.201.84.cql
- If you are using Cassandra 1.2:
- Copy the cf-schema-8.5.201.84.txt file from /installation_path/gws/data/updates to the Cassandra node host.
- Run the following command:
cassandra_install_dir/bin/cassandra-cli -h cassandra_host --file cf-schema-8.5.201.84.txt
- If you are using Cassandra 2.x:
- Start Web Services and Applications according to Starting and testing.
- After all Web Services and Applications nodes are upgraded and started, update ElasticSearch:
- If you use embedded Elasticsearch, run the following script on one Web Services and Applications node:
/installation_path/gws/tools/rebuild-es-index.sh
- If you use standalone Elasticsearch:
- Copy files from the /installation_path/gws/elasticsearch/templates folder to the templates folder on each Elasticsearch node.
- Run the following script on one Web Services and Applications node:
/installation_path/gws/tools/rebuild-es-index.sh
- If you use embedded Elasticsearch, run the following script on one Web Services and Applications node:
Comments or questions about this documentation? Contact us for support!