Puppeteer中的”userDatadDir”从S3获取?

huangapple go评论69阅读模式
英文:

Puppeteer "userDataDir" from S3?

问题

可以使用 Puppeteer 中的 "userDataDir" 从 AWS S3 而不是本地文件吗?
事实证明,由于我有负载均衡,我需要上传用户文件到 S3。

英文:

Is it possible to use "userDataDir" of Puppeteer coming from AWS S3 instead of local files?
It turns out that I need to upload user files to S3 because I have a load balance

答案1

得分: 1

Chromium期望userDataDir是一个本地文件夹,它可以读写。

但是您可以使用以下解决方案将远程S3文件夹挂载到本地:

然而,这种方法的性能可能会相当低。在工作前/后,您可能最好是将userDataDir文件夹压缩并下载/上传到S3。

英文:

Chromium expects userDataDir to be a local folder that it can read and write to.

However you could mount remote S3 folder locally with solutions like these:

Still the performance of this approach is likely to be quite low. You would probably be better off zipping userDataDir folder and downloading/uploading it to S3 before/after work instead.

huangapple
  • 本文由 发表于 2023年6月29日 00:13:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/76574998.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定