Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Latest commit

 

History

History
106 lines (72 loc) · 2.87 KB

change_server_flowz.md

File metadata and controls

106 lines (72 loc) · 2.87 KB

Change Server

(1) Take backup of rethinkdb,ldap server and websites.

rethindb backup for develop:
rsync -avzh root@<rethinkdb_host_ip>:/rethinkdb-data-dev/_data <local_path>
rethindb backup for qa:
rsync -avzh root@<rethinkdb_host_ip>:/rethinkdb-data-qa/_data <local_path>
rethindb backup for staging:
rsync -avzh root@<rethinkdb_host_ip>:/rethinkdb-data <local_path>
ldap backup:
rsync -avzh root@<cluster_server_ip>:/openldapdocker <local_path>
NFS server backup:
rsync -avzh root@<client_webroot_ip>:/nfs <local_path>

(2) Purchase server from any cloud service provider.

selection_066_11

(3) Sync all backup with new server.

rsync -avzh <local_path_to_data> root@<remote_host>:/rethinkdb-data-dev/

(4) Add server in rancher.

selection_065

(5) Add certificate in rancher.

selection_057

(6) create NFS server using rancher CATALOG.

selection_058

(7) Start all service using docker-compose.yml and rancher-compose.yml files.

selection_066

(8) Upgrade those service which used NFS server by adding "rancher-nfs" in Volume Driver.

selection_061

(9) Change environment variable value of service-api-backend.

change IP of environment variable serverARecord in service-api-backend-flowz with client-webroot server IP.

(10) Change entry in Atomia DNS.

for develop:

Lable            Server

api              api-gateway server IP
auth             api-gateway server IP
ws               lbl-ws server IP
@                client-webroot server IP
devrethink       rethinkdb-dev server IP
ldap             cluster-flowz server IP
All front        lbl-ws server IP


for qa:

Lable            Server

api              metal-jobqueue server IP
auth             metal-jobqueue server IP
ws               client-webroot-qa server IP
@                client-webroot-qa server IP
qarethink        rethinkdb-dev server IP
ldap             cluster-flowz-qa server IP
All front        lbl-ws server IP


for staging:

Lable            Server

api              api-gateway server IP
auth             api-gateway server IP
ws               lbl-ws server IP
@                client-webroot server IP
rethinkdb        rethinkdb-server IP
ldap             cluster-flowz server IP
All front        lbl-ws server IP