
kubectl get ns command to make sure the cluster is available:-> goosefs kubectl get nsNAME STATUS AGEdefault Active 7h31mkube-node-lease Active 7h31mkube-public Active 7h31mkube-system Active 7h31m
helm. Refer to Helm docs for directions.helm install command to install a chart package and Fluid:-> goosefs helm install fluid ./charts/fluid-on-tkeNAME: fluidLAST DEPLOYED: Tue Jul 6 17:41:20 2021NAMESPACE: defaultSTATUS: deployedREVISION: 1TEST SUITE: None
fluid:-> goosefs kubectl -n fluid-system get podNAME READY STATUS RESTARTS AGEalluxioruntime-controller-78877d9d47-p2pv6 1/1 Running 0 59sdataset-controller-5f565988cc-wnp7l 1/1 Running 0 59sgoosefsruntime-controller-6c55b57cd6-hr78j 1/1 Running 0 59s
dataset, modify the relevant variables as appropriate, and run the kubectl apply -f dataset.yaml command to apply the dataset:apiVersion: data.fluid.io/v1alpha1kind: Datasetmetadata:name: ${dataset-name}spec:mounts:- mountPoint: cosn://${bucket-name}name: ${dataset-name}options:fs.cosn.userinfo.secretKey: XXXXXXXfs.cosn.userinfo.secretId: XXXXXXXfs.cosn.bucket.region: ap-${region}fs.cosn.impl: org.apache.hadoop.fs.CosFileSystemfs.AbstractFileSystem.cosn.impl: org.apache.hadoop.fs.CosNfs.cos.app.id: ${user-app-id}
GooseFS cluster with yaml below, and run kubectl apply -f runtime.yaml:apiVersion: data.fluid.io/v1alpha1kind: GooseFSRuntimemetadata:name: slice1annotations:master.goosefs.eks.tencent.com/model: c6worker.goosefs.eks.tencent.com/model: c6spec:replicas: 6 # Number of workers. Although the controller can be expanded, GooseFS currently does not support automatic data re-balance.data:replicas: 1 # Number of GooseFS data replicasgoosefsVersion:imagePullPolicy: Alwaysimage: ccr.ccs.tencentyun.com/cosdev/goosefs # Image and version of a GooseFS clusterimageTag: v1.0.1tieredstore:levels:- mediumtype: MEM # Supports MEM, HDD, and SSD, which represent memory, premium cloud storage, and SSD cloud storage respectively.path: /dataquota: 5G # Both memory and cloud storage will take effect. The minimum capacity of cloud storage is 10 GB.high: "0.95"low: "0.7"properties:goosefs.user.streaming.data.timeout: 5sgoosefs.job.worker.threadpool.size: "22"goosefs.master.journal.type: UFS # UFS or EMBEDDED. UFS for the case of only one master.# goosefs.worker.network.reader.buffer.size: 128MBgoosefs.user.block.size.bytes.default: 128MB# goosefs.user.streaming.reader.chunk.size.bytes: 32MB# goosefs.user.local.reader.chunk.size.bytes: 32MBgoosefs.user.metrics.collection.enabled: "false"goosefs.user.metadata.cache.enabled: "true"goosefs.user.metadata.cache.expiration.time: "2day"master:# A required parameter, which sets the VM specification of pods. Default value: 1c1gresources:requests:cpu: 8memory: "16Gi"limits:cpu: 8memory: "16Gi"replicas: 1# journal:# volumeType: pvc# storageClass: goosefs-hddjvmOptions:- "-Xmx12G"- "-XX:+UnlockExperimentalVMOptions"- "-XX:ActiveProcessorCount=8"- "-Xms10G"worker:jvmOptions:- "-Xmx28G"- "-Xms28G"- "-XX:+UnlockExperimentalVMOptions"- "-XX:MaxDirectMemorySize=28g"- "-XX:ActiveProcessorCount=8"resources:requests:cpu: 16memory: "32Gi"limits:cpu: 16memory: "32Gi"fuse:jvmOptions:- "-Xmx4G"- "-Xms4G"- "-XX:+UseG1GC"- "-XX:MaxDirectMemorySize=4g"- "-XX:+UnlockExperimentalVMOptions"- "-XX:ActiveProcessorCount=24"
-> goosefs kubectl get podNAME READY STATUS RESTARTS AGEslice1-master-0 2/2 Running 0 8m8sslice1-worker-0 2/2 Running 0 8m8sslice1-worker-1 2/2 Running 0 8m8sslice1-worker-2 2/2 Running 0 8m8sslice1-worker-3 2/2 Running 0 8m8sslice1-worker-4 2/2 Running 0 8m8sslice1-worker-5 2/2 Running 0 8m8s-> goosefs kubectl get pvcslice1 Bound default-slice1 100Gi ROX fluid 7m37s # PVC and dataset share the same name. 100Gi is a dummy value used as a placeholder.
kubectl apply -f dataload.yaml). A response example after running is as follows:apiVersion: data.fluid.io/v1alpha1kind: DataLoadmetadata:name: slice1-dataloadspec:# Configuring the dataset that needs to load datadataset:name: slice1namespace: default
kubectl get dataload slice1-dataload.delete command. This is a high-risk operation. Make sure that there is no I/O operation on GooseFS in the service pod.-> goosefs kubectl get stsNAME READY AGEslice1-master 1/1 14mslice1-worker 6/6 14m-> goosefs kubectl delete sts slice1-master slice1-workerstatefulset.apps "slice1-master" deletedstatefulset.apps "slice1-worker" deleted
Feedback