You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,12 @@ By executing `SLOWMO_MS=250 npm run local`, you can check the operation while ac
12
12
13
13
## Packaging & Deploy
14
14
15
-
Lambda's memory is set to 384 MB or more.
15
+
Lambda's memory needs to be set to at least 384 MB, but the more memory, the better the performance of any operations.
16
+
17
+
```
18
+
512MB -> goto(youtube): 6.481s
19
+
1536MB(Max) -> goto(youtube): 2.154s
20
+
```
16
21
17
22
### chrome in package (recommended)
18
23
@@ -30,6 +35,8 @@ Run `npm run package-nochrome`, deploy the package.zip, and set following env va
30
35
31
36
## Build Headless-Chrome (optional)
32
37
38
+
This kit includes Chrome built by myself because official build Chrome installed by Puppeteer has problems about running on Lambda (missing shared library etc.).
39
+
33
40
If you want to use latest chrome, run chrome/buildChrome.sh on EC2 having at least 16GB memory and 30GB volume.
34
41
See also [serverless-chrome](https://github.com/adieuadieu/serverless-chrome/blob/master/chrome/README.md).
35
42
Once you build it, link to `headless_shell.tar.gz` in `chrome` dir.
0 commit comments