最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

file upload - SeaweedFS fileSizeLimitMB flag isn't working in Docker Compose - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论