Last Updated: Sep 12, 2022
The following Jiffy versions can do a direct upgrade to version 4.8.2.
Name | Version | Type | Description |
---|---|---|---|
jiffy-playbook.tar.gz | 4.8.2 | Ansible playbook | Ansible scripts which does the upgrade |
jiffy-upgrade.tar.gz | 4.8.2 | Compressed tar | Jiffy core artifacts |
jiffy-helms-v4.8.2.zip | 4.8.2 | Compressed zip | Helm charts |
- application stop all
- application stop vault
- pg_dump -h {DB hostname} -p 5432 {jiffy-schema-name} -U {username} | gzip > {filename.gz}
- pg_dump -h {DB hostname} -p 5432 {gus-schema-name} -U {username} | gzip > {filename.gz}
Command will prompt for DB admin password.mongodump --ssl --host {MongoDB hostname} --port 27017 --sslPEMKeyFile {Keyfile the certificate is a combination of ca+cert> } --sslAllowInvalidCertificates --authenticationDatabase admin -u admin --out {filename.dump}
- export JIFFY_INSTALL=“/tmp/jiffy-install/4.8.2/”
- mkdir -p $JIFFY_INSTALL/helm/
- cd $JIFFY_INSTALL/helm/
- wget –user {username} –ask-password downloads.jiffy.ai/4.8.2/Upgrade/jiffy-helms-v4.8.2.zip
unzip jiffy-helms-v4.8.2.zip
- cd $JIFFY_INSTALL
- wget –user {username} –ask-password downloads.jiffy.ai/4.8.2/Upgrade/jiffy-playbook.tar.gz
- wget –user {username} –ask-password downloads.jiffy.ai/4.8.2/Upgrade/jiffy-upgrade.tar.gz
- tar -xf jiffy-playbook.tar.gz
- tar -xf jiffy-upgrade.tar.gz -C $JIFFY_INSTALL/upgrade/
The following steps will cover code backup, in case of rollback to a previously installed version.
source /opt/jiffy3rdparty/ansibleEnv/bin/activate
For debug mode
- export JIFFY_INSTALL="/tmp/jiffy-install/4.8.2/"
- cd $JIFFY_INSTALL
- ansible-playbook pre-upgrade/root.yml -i inventory -e @variable.yml
For detailed debug mode:ansible-playbook pre-upgrade/root.yml -i inventory -e @variable.yml -v
ansible-playbook pre-upgrade/root.yml -i inventory -e @variable.yml -vvvv
chown -R {jiffyapp linux user}:{jiffyapp linux user group} /tmp/jiffy-install
source /opt/jiffy3rdparty/ansibleEnv/bin/activate
For debug mode:ansible-playbook pre-upgrade/non-root.yml -i inventory -e @variable.yml
For detailed debug mode:ansible-playbook pre-upgrade/non-root.yml -i inventory -e @variable.yml -v
ansible-playbook pre-upgrade/non-root.yml -i inventory -e @variable.yml -vvvv
source /opt/jiffy3rdparty/ansibleEnv/bin/activate
For debug mode:
- export JIFFY_INSTALL=“/tmp/jiffy-install/4.8.2/”
- cd $JIFFY_INSTALL
- ansible-playbook pre-req-mail.yml -l core -e @variable.yml
For detailed debug mode:ansible-playbook pre-req-mail.yml -l core -e @variable.yml -v
ansible-playbook pre-req-mail.yml -l core -e @variable.yml -vvvv
source /opt/jiffy3rdparty/ansibleEnv/bin/activate
For debug mode:
- export JIFFY_INSTALL="/tmp/jiffy-install/4.8.2/"
- cd $JIFFY_INSTALL
- ansible-playbook upgrade/root.yml -i inventory -l core -e @variable.yml
For detailed debug mode:ansible-playbook upgrade/root.yml -i inventory -l core -e @variable.yml -v
For sudo and ssh password prompt add -kK options along with run command:ansible-playbook upgrade/root.yml -i inventory -l core -e @variable.yml -vvvv
ansible-playbook upgrade/root.yml -i inventory -l core -e @variable.yml -kK
chown -R {jiffyapp linux user}:{jiffyapp linux user group} /tmp/jiffy-install
source /opt/jiffy3rdparty/ansibleEnv/bin/activate
For debug mode:
- export JIFFY_INSTALL="/tmp/jiffy-install/4.8.2/"
- cd $JIFFY_INSTALL
- ansible-playbook upgrade/non-root.yml -i inventory -l core -e @variable.yml
For detailed debug mode:ansible-playbook upgrade/non-root.yml -i inventory -l core -e @variable.yml -v
ansible-playbook upgrade/non-root.yml -i inventory -l core -e @variable.yml -vvvv
without masterkey prompt:ansible-playbook jiffyconfiguration.yml -l core -e @variable.yml
ansible-playbook jiffyconfiguration.yml -l core -e masterKey='{replaceme}' -e @variable.yml
application start all
- export JIFFY_INSTALL="/tmp/jiffy-install/4.8.2/"
- cd $JIFFY_INSTALL/helm/
- chmod 777 k8s-upgrade.sh
- namespace(n)=jiffy-cognitive
- replicacount(r)=1
- mountpoint(m)=/opt
helm uninstall docplit -n {namespace}
./k8s-upgrade.sh -k '{masterkey|mandatory}' -n {namespace} -c {clusterDNS|mandatory} -r {replicacount} -m {mountpoint}
As the jiffy application user, execute the below commands to modify/apply DRILL_MEMORY parameters
- #!/bin/bash
- sed -i 's/^#export DRILL_HEAP=${DRILL_HEAP:-"4G"}/export DRILL_HEAP=${DRILL_HEAP:-"8G"}/g' $DOCUBE_HOME/drill/conf/drill-env.sh
- sed -i 's/#export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-"8G"}/export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-"16G"}/g' $DOCUBE_HOME/drill/conf/drill-env.sh
- application stop all
- application start all
Verify the DRILL_MAX_HEAP_MEMORY on the drill configuration file.
cat $DOCUBE_HOME/drill/conf/drill-env.sh
Verification:
cat $JIFFY_HOME/productversion.txt
cat $JIFFY_HOME/data/client/setup/version.txt
supervisorctl status
kubectl get pods -n {namespace}
vault status
application stop all
application start all
Click here to learn more about the command for Code Restore and Properties Restore.