Does the CSI driver automatically detach volumes from nodes if it goes down and schedules it on another node #360
-
I'm looking to build a service that might be needing more performant storage than Longhorn RWX for some usecases, so I was looking to understand if the current Hetzner-CSI driver will allow me to attach a volume to a node, let kubernetes schedule a pod on that node which for example could be a database, and if that said node goes down then the CSI driver would automatically detach the volume from the dead node and attach it to a new node and schedule the database on then ew node alongside the same volume? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Yes, that's the default behaviour although there is some time delay before Kubernetes decides the node is not coming back up and therefore it attempts to reattach the volume on another node. A side note: while performance with Hetzner volumes is pretty good (around 300MB/sec sequential both read and write, and around 7500 IOPS both read and write), if you need the highest performance for databases I would recommend you use the local path provisioner so to use the local disk directly. |
Beta Was this translation helpful? Give feedback.
Yes, that's the default behaviour although there is some time delay before Kubernetes decides the node is not coming back up and therefore it attempts to reattach the volume on another node.
A side note: while performance with Hetzner volumes is pretty good (around 300MB/sec sequential both read and write, and around 7500 IOPS both read and write), if you need the highest performance for databases I would recommend you use the local path provisioner so to use the local disk directly.