Home > Mobile >  K3S SQLite slow on NFS
K3S SQLite slow on NFS

Time:02-21

I have an application running on my home cluster.
My cluster is running K3S.
The cluster exists of 5 Raspberry Pi's 3B and 1 Ubuntu VM.
One of my deployments is Domoticz.
This uses a SQLite database to store data.
I'm using this as a StorageClass. https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
The NFS is hosted in OpenMediaVault with arguments subtree_check,insecure,no_root_squash

When I store this database (14MB) on a PV volume linked to an NFS Storage Class, the applications becomes very slow.
When I use the Storage Class local-path, the application is as fast.
Problem is now that when that node dies, the Deployment doesn't start because of the node-affinity linked to the PVC.
I'm out of idea's to fix this issue.

Is there another SC better suited to my setup?
Is there a tweak to the SC local-path, so it's not linked to a node? (yes I know, database will not be transferred to the new node)

CodePudding user response:

I fixed this by using longhorn instead of NFS. Thanks Andrew Skorkin for the tip

  • Related