Strange behaviour after fetching 1MB file from S3 in Lambda function (Node.js)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- aws, docker, javascript, node.js
- 领域
- cloud, devops, infrastructure
调研方向
Start with docker-compose.yml and the LocalStack 0.9.0 configuration, especially the Docker-based Lambda executor, mounted data directory, and Docker socket. Reproduce the repeated S3 and Lambda workflow on macOS, inspect the timeout behavior, and consider the issue done when the bucket can be created after repeated cleanup cycles without restarting Docker.
由索引模型根据 Issue 内容生成。
描述
Steps:
- Create a bucket
- Deploy Lambda function (~20MB) with
ffmpeg - Call ffprobe using S3 signed URL:
const input = s3.client.getSignedUrl('getObject', {
Bucket: 'my-bucket',
Key: 'video_1mb.mp4',
Expires: 1000
})
const metadata = await (new Promise((resolve, reject) => {
ffmpeg.ffprobe(input, async (err, data) => {
if (err) {
return reject(err)
}
resolve(data)
})
}))
- Stop & Destroy all containers and images
- Remove Localstack directory
./localstack
// Repeat 1 - 5 (~5 times) - Start localstack
- Try to create the S3 bucket
- Got a timeout error:
make_bucket failed: s3://my-bucket Read timeout on endpoint URL: "http://localhost:4572/my-bucket"
Workaround: Restart Docker daemon
docker-compose.yml
version: '3.7'
services:
localstack:
image: localstack/localstack:0.9.0
container_name: localstack
ports:
- '4567-4593:4567-4593'
- '8080:8080'
environment:
- SERVICES=iam,lambda,s3,dynamodb,apigateway
- DEBUG=yes
- DATA_DIR=/tmp/localstack/data
- PORT_WEB_UI=8080
- LAMBDA_EXECUTOR=docker-reuse
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- './localstack:/tmp/localstack'
- '/var/run/docker.sock:/var/run/docker.sock'
Host platform: MacOS
Localstack image version: 0.9.0
Docker version: 18.09.2, build 6247962
docker-compose version: 1.23.2, build 1110ad01
- 主要语言
- JavaScript
- 星标
- 1.4k
- 派生
- 185
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
motdotla/node-lambda 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
motdotla/node-lambda#840 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
motdotla/node-lambda#641 · 6 条评论 · 2 个 reaction ·
-
难度 5/5 一周以上 新手友好度 15/100
motdotla/node-lambda#618 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 30/100
motdotla/node-lambda#544 · 1 个 reaction ·
-
question
难度 4/5 3-5 天 新手友好度 25/100
motdotla/node-lambda#537 · 2 条评论 · 1 个 reaction ·
查看 motdotla/node-lambda 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 78/100
Automattic/studio#4908 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 2/5 1-3 小时 新手友好度 86/100
sugarlabs/musicblocks#8847 ·