英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论