Saltar al contenido

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?

preguntada hace 2 años558 visualizaciones
2 Respuestas
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.

respondido hace 2 años
EXPERTO
revisado hace 2 años
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

EXPERTO
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.