SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
update and add options to the filer statefulset & filer cmd
LazyDBA247-Anyvision2bed15f1dcbb
diff --git a/k8s/seaweedfs/templates/filer-statefulset.yaml b/k8s/seaweedfs/templates/filer-statefulset.yamlindex 0bf20f922f..d1dd851fee 100644--- a/k8s/seaweedfs/templates/filer-statefulset.yaml+++ b/k8s/seaweedfs/templates/filer-statefulset.yaml@@ -99,6 +99,9 @@ spec:{{- end }}filer \-port={{ .Values.filer.port }} \+ {{- if .Values.filer.redirectOnRead }}+ -redirectOnRead \+ {{- end }}{{- if .Values.filer.disableHttp }}-disableHttp \{{- end }}@@ -106,7 +109,24 @@ spec:-disableDirListing \{{- end }}-dirListLimit={{ .Values.filer.dirListLimit }} \+ {{- if .Values.global.enableReplication }}+ -defaultReplicaPlacement={{ .Values.global.replicationPlacment }} \+ {{- else }}+ -defaultReplicaPlacement={{ .Values.filer.defaultReplicaPlacement }} \+ {{- end }}+ {{- if .Values.filer.disableDirListing }}+ -disableDirListing \+ {{- end }}+ {{- if .Values.filer.maxMB }}+ -maxMB={{ .Values.filer.maxMB }} \+ {{- end }}+ {{- if .Values.filer.encryptVolumeData }}+ -encryptVolumeData \+ {{- end }}-ip=${POD_IP} \+ {{- if gt (.Values.filer.replicas | int) 1 }}+ -peers={{ range $index := until (.Values.filer.replicas | int) }}${SEAWEEDFS_FULLNAME}-filer-{{ $index }}.${SEAWEEDFS_FULLNAME}-filer:{{ $.Values.filer.port }}{{ if lt $index (sub ($.Values.filer.replicas | int) 1) }},{{ end }}{{ end }}+ {{- end }}-master={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{- if or (.Values.global.enableSecurity) (.Values.filer.extraVolumeMounts) }}volumeMounts:diff --git a/k8s/seaweedfs/values.yaml b/k8s/seaweedfs/values.yamlindex 38e8868199..3e1bce1816 100644--- a/k8s/seaweedfs/values.yaml+++ b/k8s/seaweedfs/values.yaml@@ -186,6 +186,20 @@ filer:port: 8888grpcPort: 18888loggingOverrideLevel: null+ # replication type is XYZ:+ # X number of replica in other data centers+ # Y number of replica in other racks in the same data center+ # Z number of replica in other servers in the same rack+ defaultReplicaPlacement: "000"+ # turn off directory listing+ disableDirListing: false+ # split files larger than the limit, default 32+ maxMB: null+ # encrypt data on volume servers+ encryptVolumeData: false++ # Whether proxy or redirect to volume server during file GET request+ redirectOnRead: false# Limit sub dir listing size (default 100000)dirListLimit: 100000@@ -269,6 +283,8 @@ filer:WEED_FILER_BUCKETS_FOLDER: "/buckets"# directories under this folder will be store message queue dataWEED_FILER_QUEUES_FOLDER: "/queues"+ # WEED_FILER_OPTIONS_BUCKETS_FSYNC a list of buckets names with all write requests fsync=true+ WEED_FILER_OPTIONS_BUCKETS_FSYNC: []s3:enabled: true