跳至内容

Multiprocess issues in AWS Lambda when running Ansible

0

Encountering error related to Multiprocessing in AWS Lambda - Enter image description here

We're utilizing Ansible packages within our Lambda code via AWS EFS. Our objective is to leverage the PlaybookExecutor for inventory and playbook management. However, we encountered the above mentioned error on multiprocessing. Could you provide assistance in resolving this issue?

2 回答
1

Hello, Lambda does not have shared memory device. You can have a look on these:

https://github.com/ansible/ansible/issues/18469

https://pypi.org/project/lambda-multiprocessing/

Thanks.

已回答 2 年前
专家
已审核 2 年前
0

When deploying applications on AWS Lambda, one of the common limitations is the absence of shared memory for concurrent processes. If you need to implement parallel processing in your Lambda functions, you might face challenges due to this constraint. The lambda-multiprocessing library can help address this issue by providing a way to leverage Python's multiprocessing module in the Lambda environment.

You can refer to the url that @Zen shared

专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。