multiple pool selection for application storage volumes

MichelB

Cadet
Joined
Jul 25, 2021
Messages
7
Hello all,

first thanks for this wonderfull software you developed! I finally came around to trying it out on real hardware :).

I would like to run some machine learning experiments on it, besides also other software that is less intensive (like plex, ...). From what I understood, all pod in the application-pool can only use 1 storage pool. Now, this would be a waste of resources and also limits the possibilities. I have a "high performance" nvme pool and also will be adding an old-school disk pool, which is then using an ssd as a cache. Again, thanks for the super simple/managed setup in comparison to doing this manually on linux, or windows storage spaces :).

So, would it technically be possible to assign some pod-storage persistent volumes to the nvme pool and others, which require more (and a bit slower) storage to the hdd pool? (Sorry if I mix up terms as I'm getting into kubernetes, coming from docker).

The nvme-setup is limited in storage space and that would mean that the hdd space is unusable, which really limits the setup-possibilities.

Thanks,

Michel
 

MichelB

Cadet
Joined
Jul 25, 2021
Messages
7
Based on what I know about Kubernetes now, you could implement this using storage classes. Of course, the provisioner needs to support the different kinds of storage classes as parameter-options.

Any chance of you implementing this? It would greatly increase the usability of Truenas I think. Most cloud-environments allow you to choose between "slower" and "faster" machines too.

Tx!
 
Last edited:

MichelB

Cadet
Joined
Jul 25, 2021
Messages
7
ok, I had some time to look further into this. Apparently the zfs storage interface used "https://github.com/openebs/zfs-localpv", already supports the "pool-path" as a parameter.

So, creating a storage class for a different specific pool, should be easy peasy :). So, creating "slow hdd/ssd cache" and "fast nvme" storage classes should be possible. so, that "apps" could be assigned a storage class on creation. However, the gui probably needs to be adapted a bit for this. But all the "lower" level stuff is already there apparently.
 
Top