Backup and Restore

This section defines the best practices to perform backup and restore operations in TIBCO Streaming Model Management Server (MMS) for Kubernetes deployments. These operations help in maintaining the safety and integrity of the stored artifacts in MMS.


Overview

MMS stores all working data like user sandboxes, projects, and artifacts on the file system in the artifact-management PVC. The PVC is mounted at /var/opt/spotfire/streaming-web/data in the Artifact Management Pod.

For more information on persistent volumes, see Kubernetes Persistent Volumes.

The published projects are stored in a Nexus Repository, which is backed by the artifact-repository PVC (project build artifacts) and the git-server. The git-server is backed by the git-server PVC (project source).

Since the data is stored on a PVC, the Artifact Management Pod can be safely restarted without any data loss.


Backups

All the necessary persistent data is on PVCs and can be backed up with standard Kubernetes back-up best practices.


Monitoring

As more artifacts are added to the system, the size of the data in the filesystem grows. This needs to be monitored to ensure that the PVC is large enough to accommodate the data.

Every user sandbox contains a local clone of the git repo for every space associated with the sandbox. This causes the used space on the artifact-management PVC to rise. As more projects are published, the use of the Git server and the artifact-repository PVC increases.

To ensure that the allocated PVC storage is never exhausted, the utilization of the Artifact Management PVC should be monitored. PVC utilization can be monitored using standard Kubernetes monitoring tools.


Accessing the Artifact Management Pod

The Artifact Management Pod name can be found with this command:

//
//	Use the selector to display the Artifact Management Server Pod
//
kubectl get pods --selector artifact-management --namespace mms
NAME	READY   STATUS    RESTARTS   AGE
artifact-management-59b7579b6f-n2c5t 2/2 Running 0 3h44m
artifact-management-59b7579b6f-p5szb 2/2 Running 0 3h44m

Use the Pod name with this command to access a shell in the Pod:

kubectl exec -it artifact-management-59b7579b6f-n2c5t --namespace mms – /bin/bash
Defaulted container "artifact-management" out of: artifact-management, otc-container, wait (init)
bash-5.1$

Restoring

Backed-up PVCs can be restored and the affected deployments can be restarted.