s8sg / faas-flow

Function Composition for OpenFaaS
MIT License
258 stars 39 forks source link

Multiple-node Dag's execution fails #145

Closed dimgiagos44 closed 2 years ago

dimgiagos44 commented 2 years ago

When my workflow is sync with a single node, everything works fine.

When my workflow is async with more than one nodes, the dag execution always fails.

I work on a kubernetes cluster and i am using the localhost:8080 gateway for the openfaas functions by port-forwarding the svc/gateway from openfaas namespace.

Thanks in advance! Screenshot from 2021-12-22 12-55-05

dimgiagos44 commented 2 years ago

Problem solved looking at link1 and link2

dimgiagos44 commented 2 years ago

Setting direct_functions = "true" at the gateway deployment, solves this error but makes OpenFaas unable to distribute the load to available replicas of a function as bypasses the alertmanager component. As a result, parallel invocations cannot be executed.

dimgiagos44 commented 2 years ago

Solved with hack: here