ansible-collections / cloud.common

Common files for the Cloud collections
GNU General Public License v3.0
16 stars 24 forks source link

Fall back to regular execution if socket can't be opened #115

Open stiller-leser opened 2 years ago

stiller-leser commented 2 years ago
SUMMARY
ISSUE TYPE
COMPONENT NAME

TURBO_MODE in cloud.common

ADDITIONAL INFORMATION

We are using the turbbo_mode together with an Ansible operator, written with the help of the operator-sdk. We have many 1000s of objects in our cluster, resulting in many parallel reconciliations and executions of the community.kubernetes collection.

Activating the turbo_mode helps to increase the performance drastically. After facing out of memory issues with the turbo_mode (see https://github.com/operator-framework/operator-sdk/issues/5246#issuecomment-1232784978), we needed to make a couple of modifications already though:

As we have many parallel reconciliations running, all calling the community.kubernetes collection (hence all resulting in the same socket name, resulting in the conflicts described above), it would be great to enable the possibility to instead of raising here https://github.com/stiller-leser/cloud.common/blob/main/plugins/module_utils/turbo/common.py#L60 having the code fall back to a regular module execution.

Best regards, stiller-leser