Skip to content

Commit 945887f

Browse files
authored
[seaweedfs] Fix timeout while uploading hude files (#1483)
Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- Thank you for making a contribution! Here are some tips for you: - Start the PR title with the [label] of Cozystack component: - For system components: [platform], [system], [linstor], [cilium], [kube-ovn], [dashboard], [cluster-api], etc. - For managed apps: [apps], [tenant], [kubernetes], [postgres], [virtual-machine] etc. - For development and maintenance: [tests], [ci], [docs], [maintenance]. - If it's a work in progress, consider creating this PR as a draft. - Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft. - Add the label `backport` if it's a bugfix that needs to be backported to a previous version. --> ## What this PR does related to seaweedfs/seaweedfs#7294 ### Release note <!-- Write a release note: - Explain what has changed internally and for users. - Start with the same [label] as in the PR title - Follow the guidelines at https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md. --> ```release-note [] ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Allow supplying extra S3 server startup arguments via configuration, enabling custom runtime flags for the S3 service. * **Chores** * Set default S3 idle timeout to 60 seconds for improved default connection handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 295fdf1 + 408b8dd commit 945887f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

packages/system/seaweedfs/charts/seaweedfs/templates/s3/s3-deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ spec:
152152
{{- if .Values.s3.auditLogConfig }}
153153
-auditLogConfig=/etc/sw/s3_auditLogConfig.json \
154154
{{- end }}
155-
-filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }}
155+
-filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }} \
156+
{{- range .Values.s3.extraArgs }}
157+
{{ . }} \
158+
{{- end }}
156159
volumeMounts:
157160
{{- if or (eq .Values.s3.logs.type "hostPath") (eq .Values.s3.logs.type "emptyDir") }}
158161
- name: logs

packages/system/seaweedfs/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ seaweedfs:
8484
auditLogConfig: {}
8585
s3:
8686
enabled: true
87+
extraArgs:
88+
- -idleTimeout=60
8789
enableAuth: false
8890
readinessProbe:
8991
scheme: HTTPS

0 commit comments

Comments
 (0)