RAJ - Rally Adapter for Jira - How to Scale Nodes down and up - how to restart adapter nodes
search cancel

RAJ - Rally Adapter for Jira - How to Scale Nodes down and up - how to restart adapter nodes

book

Article ID: 267196

calendar_today

Updated On:

Products

Rally SaaS

Issue/Introduction

RAJ - Rally Adapter for Jira - How to Scale Nodes down and up 

Resolution

Set stopProcessing=1 in the DB
Note the number of running rji-adapters with the following command: 
UPDATE integration_settings SET settings_value = 1 WHERE settings_key = 'stopProcessing';
# kubectl get pods
Scale back the deployment:
# kubectl scale --replicas=0 deployment rji-adapter
Delete the rji-adapter pods if necessary, using the pod IDs from get pods output above:
# kubectl delete pod rji-adapter-9999999999-zzzzz
This is a good time to clean up evicted containers with the following command:
# kubectl get pods -A | grep Evicted | awk '{print $1,$2,$4}' | xargs kubectl delete pod $2 -n $1
Count the number of rji-adapter pods from the get pods output above and use that number for the --replicas parameter in the below command:
# kubectl scale --replicas=2 deployment rji-adapter
Set stopProcessing=0 in the DB