-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Docker slowness on Mac #4042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @ThomasLabstep, I was unable to reproduce this, below you can see my config and files, taken from this example. System:
docker-compose.yml:
serverless.yml:
candidate.js:
Commands (The usual I guess):
Time curl:
Localstack debug:
Let me know how it goes for you, both trying the second time (first is pull lambda images) and after works smoothly for me (I am running firefox, chrome, videos on youtube, among other containers.. so my computer is running some other things besides the docker compose) |
Thank you so much.
This piece of code did it.
Good enough for me. I haven't added any plugin. Are serverless-offline + serverless-s3-local really useful for something? |
Nah, those are leftovers from other tests I ran. Glad it worked for you. Cheers mate. |
Type of request: This is a ...
[ ] Performance issue
Detailed description
time curl http://localhost:4566/restapis/vhupi9pjeg/local/_user_request_/hello
The lambda is a hello world with serverless framework.
Expected behavior
~50ms
Actual behavior
7000ms (not just the first time)
Steps to reproduce
Command used to start LocalStack
docker-compose up
Client code (AWS SDK code snippet, or sequence of "awslocal" commands)
Localstack logs:
The docker exec is taking 95% of the time. Why is that?
I'm on Mac 11.3.1. Everything else is latest version.
Not an issue anymore.
As you can see I disabled the volume but it's still super slow.
How do you specify S3Bucket and S3Key with serverless framework?
Couldn't find any clue.
Cf: https://forum.serverless.com/t/is-it-possible-to-specify-the-s3-key-in-serverless-yml/5702
I'm trying this now: https://github.com/cipri-p/serverless-package-location-customizer
Thanks for any feedback.
The text was updated successfully, but these errors were encountered: