Alluxio / k8s-operator

An operator for managing Alluxio system on Kubernetes cluster
https://www.alluxio.io/
Apache License 2.0
10 stars 8 forks source link

Support multi mount through ETCD and STATIC_FILE #82

Closed ssz1997 closed 11 months ago

ssz1997 commented 11 months ago

If user wants to use multi mount, don't copy dataset path to site properties and fuse CLI, and set the mount table source. STATIC mount table is not supported in this PR.

Flow:

  1. User sets multipleMountPoints: true in dataset config
  2. Operator sees the dataset config and set alluxio.mount.table.source: ETCD in helm chart config file
  3. Helm chart checks whether this property is set to ETCD to determine whether to set alluxio.dora.client.ufs.root in alluxio-site.properties and fuse CLI mount command - don't set if using etcd as mount table

This feature is likely to be reverted after the correct repo is setup.

ssz1997 commented 11 months ago

For the sake of minimal code change, with the newest commit, user needs to explicitly set alluxio.mount.table.source: ETCD in alluxio config file to enable the multi mount feature. And if with this property properly set, alluxio.dora.client.ufs.root will not be set in alluxio-site.properties. Does this make sense?