alibaba / alibaba/funcraft

fun local start 每次启动都很慢,正常吗?

Open
#1,009 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
931
Forks
128
PR merge metrics
No merged PRs in 30d

Description

刚接触funcraft和docker所以不太确定这是不是正常现象。昨天刚装好funcraft的时候,`fun local start`第一次启动很慢,因为要下载docker image,之后ctrl-c退出再重启, ***似乎*** 等待时间非常短服务器就起来了(记不太清了)。

今天却发现每次跑`fun local start`,第一次请求都要等一段时间,虽然没有重新下载image(命令行有`skip pulling image aliyunfc/runtime-nodejs12:1.9.6...`的log),但是至少要等几分钟。

昨天到今天我系统里做了一些别的改动,不知道有没有关系。
1. 装了一个nginx和mysql的docker image,用来模拟开发环境里的其他需要的服务。
2. 在Docker Desktop里改了Disk image location。
3. template.yaml里加了custom domain。(试过删掉,没有改善)

请问这是正常现象吗?

**EDIT**
刚才做了一些测试,修改代码的重新加载也会导致等待……

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `fun local start` with the runtime image `aliyunfc/runtime-nodejs12:1.9.6`, including a code reload and first request. Review the Docker Desktop setup and `template.yaml` custom-domain configuration mentioned in the report. Done means determining whether the delays are expected and identifying a reproducible cause or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, node.js
Domain
cli, devops, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.