Git Product home page Git Product logo

Comments (3)

afranken avatar afranken commented on May 27, 2024

@JJRdec
I have an M1 MacBook here and the test case is running without problems:

$ cat docker-compose.yml
services:
  s3mock:
    image: adobe/s3mock:3.1.0
    environment:
      - initialBuckets=bucket1,bucket2
      - root=/data
      - debug=true
      - retainFilesOnExit=true
    ports:
      - 9090:9090
    volumes:
      - ./data:/data
$ docker compose up -d
$ truncate -s 1G output.file
$ aws s3 cp ./output.file s3://bucket1/ --endpoint-url=http://localhost:9090
Completed 1.0 GiB/1.0 GiB (134.0 MiB/s) with 1 file(s) remaining
upload: ./output.file to s3://bucket1/output.file

This took 38s.
Without a mounted volume it takes about half that time.

I see that you're running Docker on Windows.
Unfortunately, volumes are known to be super slow in Windows.
Search the web, many people are complaining about this.

Can't do much here in the short term, I'm afraid.
My advice is to use smaller files for testing, or move to a different operating system.
Docker on Mac introduced VirtioFS which is way faster than the previously available formats.
Supposedly, Docker on Linux is also way faster than Docker on Windows.

At some point, I plan to refactor the way we handle multipart uploads (can't fix #1205 without a refactoring), but I can't say yet if that will speed up the process... Currently we persist every part separately and when the multipart upload is completed, we synchronously write all parts to a new file and delete all parts.
The speed of this operation is highly dependent on the speed of the disk.

from s3mock.

JJRdec avatar JJRdec commented on May 27, 2024

Thanks for the detail around this issue. I see now this is more a docker on windows related issue!

For others on Windows we see two workaround options:

  1. Set the read timeout to infinite (only for local develop of course)
  2. Use WSL2 and mount a volume on linux subsystem instead on windows.

@afranken I'll leave it up to you if you want to close this issue, thanks!

from s3mock.

afranken avatar afranken commented on May 27, 2024

@JJRdec sorry I can't do more right now.
I'll close this issue, you should open an issue in the Docker for win repo if you haven't already done so:
https://github.com/docker/for-win
maybe - if enough people ask about it - the Docker team will implement a speed improvement for Windows in the future :)

from s3mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.