zfs-localpv/pkg
Pawan Prakash Sharma a10dedbd5e feat(ZFSPV): volume count based scheduler for ZFSPV (#8)
This is an initial scheduler implementation for ZFS Local PV. 

* adding scheduler as a configurable option
* adding volumeWeightedScheduler as scheduling logic

The volumeWeightedScheduler  will go through all the nodes as per
topology information and it will pick the node which has less
volume provisioned in the given pool.

lets say there are 2 nodes node1 and node2 with below pool configuration :-
```
node1
|
|-----> pool1
|         |
|         |------> pvc1
|         |------> pvc2
|-----> pool2
          |------> pvc3

node2
|
|-----> pool1
|         |
|         |------> pvc4
|-----> pool2
          |------> pvc5
          |------> pvc6
```
So if application is using pool1 as shown in the below storage class, then ZFS driver will schedule it on node2 as it has one volume as compared to node1 which has 2 volumes in pool1.
```yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: openebs-zfspv
provisioner: zfs.csi.openebs.io
parameters:
  blocksize: "4k"
  compression: "on"
  dedup: "on"
  thinprovision: "yes"
  poolname: "pool1"
```

So if application is using pool2 as shown in the below storage class, then ZFS driver will schedule it on node1 as it has one volume only as compared node2 which has 2 volumes in pool2.
```yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: openebs-zfspv
provisioner: zfs.csi.openebs.io
parameters:
  blocksize: "4k"
  compression: "on"
  dedup: "on"
  thinprovision: "yes"
  poolname: "pool2"
```
In case of same number of volumes on all the nodes for the given pool, it can pick any node and schedule the PV on that.

Signed-off-by: Pawan <pawan@mayadata.io>
2019-11-06 21:20:49 +05:30
..
apis/openebs.io/core/v1alpha1 feat(ZFSPV): adding encryption in ZFSVolume CR (#6) 2019-10-15 22:51:48 +05:30
builder adding topology support for zfspv (#7) 2019-11-01 06:46:04 +05:30
common feat(zfs-localpv): initial commit 2019-09-18 08:44:08 +05:30
config feat(zfs-localpv): initial commit 2019-09-18 08:44:08 +05:30
driver feat(ZFSPV): volume count based scheduler for ZFSPV (#8) 2019-11-06 21:20:49 +05:30
generated feat(zfs-localpv): autogenerated code for zfs-localpv 2019-09-18 08:44:08 +05:30
response adding topology support for zfspv (#7) 2019-11-01 06:46:04 +05:30
version feat(zfs-localpv): initial commit 2019-09-18 08:44:08 +05:30
zfs feat(ZFSPV): volume count based scheduler for ZFSPV (#8) 2019-11-06 21:20:49 +05:30