Restart Swimlane Services for Swimlane 10.x
In Swimlane, there are four main services that make up the server:
- Web
- Tasks
- API
- MongoDB
In certain circumstances, it may be necessary to restart any one of these services. The instructions vary based on which platform Swimlane is running on.
- Login to a Swimlane master
- Scale down api, tasks, and web deployment to 0
# Get replicasets
kubectl get replicasets --namespace=<namespace>
kubectl scale replicaset/<api-set> replicaset/<tasks-set> replicaset/<web-set> --replicas=0 --namespace=<namespace>
- Scale down mongo sts down to 0
# Get statefulset
kubectl get sts --namespace=<namespace>
kubectl scale sts/<sts-mongo-name> --replicas=0
- Confirm all pods have terminated properly
kubectl get pods -w -n <namespace>
- Scale up mongo sts to 3
kubectl scale sts/<sts-mongo-name> --replicas=3
- Scale up api, tasks, and web deployment up to 3
kubectl scale replicaset/<api-set> replicaset/<tasks-set> replicaset/<web-set> --replicas=3 --namespace=<namespace>