Longhorn is a persistant storage provider that installs are storage class longhorn
on the cluster.
./pre_install.sh
- PV replica count is set to 1. Set the replicas for the storage class appropriately.
persistence.defaultClassReplicaCount=1 defaultSettings.defaultReplicaCount=1
- The value "5" means 5% of the total available node CPU is allocated to each
instance-manager
pod in thelonghorn-system
namespace. This value should be fine for sandbox and pilot but you may have to increase the default to "12" for production. The value can be updated on Longhorn UI after installation.guaranteedEngineManagerCPU: 5 guaranteedReplicaManagerCPU: 5
- Run
install.sh
to install longhorn../install.sh
- For cloud-native installation, disable the default storage class flag.
This will ensure that the cloud providers' storage class shall be used as default.
kubectl patch storageclass longhorn -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
- Access the Longhorn dashboard from Rancher.
- Review the
Reserved
space shown on the Longhorn dashboard. If the node storage is not used for any other purpose other than MOSIP functionality, you may reduce the reserved space on every node by going to the Node tab --> menu for each node on the right --> Edit node and disk --> Storage Reserved.
For some basic tests and, how to setup an AWS S3 backupstore in Longhorn, refer docs/longhorn-backupstore-and-tests.md.