I have a dockerized seaweed_master
and a seaweed_volume
to store files. The file upload and download is working fine via HTTP requests. For example, I can submit files to the server with:
curl -F [email protected] http://localhost:9333/submit
And download them with:
curl http://localhost:8080/<FID>
The problem comes when I try to upload a file larger than default max file size (256MB):
curl -F [email protected] http://localhost:9333/submit
{"error":"file over the limited 268435456 bytes"}
This is my Docker-Compose setup for Seaweed File System:
# SeaweedFS server
seaweedfs-master:
image: chrislusf/seaweedfs:latest
container_name: seaweedfs_master
ports:
- "9333:9333"
command: 'master -ip=0.0.0.0 -port=9333'
volumes:
- ./seaweedfs/master-data:/data
restart: always
seaweedfs-volume:
image: chrislusf/seaweedfs:latest
container_name: seaweedfs_volume
ports:
- "8080:8080"
command: 'volume -dir=/data -port=8080 -mserver=seaweedfs_master:9333 -fileSizeLimitMB=5120'
volumes:
- ./seaweedfs/volume-data:/data
depends_on:
- seaweedfs-master
restart: always
Note the -fileSizeLimitMB
flag to allow up to 5GB. But it's not working. I haven't found any information about this, but I'm sure I'm missing something.
Why is it not respecting the fileSizeLimitMB
flag?