faasflow / faas-flow-example Goto Github PK
View Code? Open in Web Editor NEWExample flows cooked with faas-flow
Example flows cooked with faas-flow
I'm having this Problem for Days and I don't know how to fixing it.
can y helps me with it @s8sg
Images on https://github.com/s8sg/faasflow-example/blob/master/README.md do not load
Running on Docker swarm with just the basic instructions in the readme and getting [ Failed ] failed to init request tracer, error failed to init tracer, error lookup jaeger-agent.faasflow on 127.0.0 .11:53: no such host
I am a student, and your help means a lot to me. @s8sg @pasdam
I was trying out faas-flow-example, and take Sync-chain for example. As the following figure shows, I successfully deployed them to OpenFaas API gateway, and I can invoked the function. But with failed information.
I checked the logs. basically connection refused error. But I can invoke func1, func2 in the ui. Why can't I invoke them in sync-chain function???
2024/03/10 12:18:35 stdout: [Request `cnmqa6qdbmlc70fup2jg`] Executing node 0_1_sync
2024/03/10 12:18:35 stdout: [Request `cnmqa6qdbmlc70fup2jg`] Executing function `func1`
2024/03/10 12:18:35 stdout: [Request `cnmqa6qdbmlc70fup2jg`] Failed: Node(0_1_sync), Operation (func1), error: execution failed, Function(func1), error: function execution failed, Post "http://localhost:31112/function/func1": dial tcp [::1]:31112: connect: connection refused
2024/03/10 12:18:35 stderr: 2024/03/10 12:18:35 Reporting span 0385fbc86a493339:6afb878cc7e86aac:68d885664cf3df05:1
2024/03/10 12:18:35 stderr: 2024/03/10 12:18:35 Reporting span 0385fbc86a493339:0385fbc86a493339:0000000000000000:1
2024/03/10 12:18:35 stderr: 2024/03/10 12:18:35 Node(0_1_sync), Operation (func1), error: execution failed, Function(func1), error: function execution failed, Post "http://localhost:31112/function/func1": dial tcp [::1]:31112: connect: connection refused
2024/03/10 12:18:35 stdout: [ Failed ] failed to execute request
2024/03/10 12:18:35 stderr: 2024/03/10 12:18:35 http: superfluous response.WriteHeader call from main.makeRequestHandler.func1 (main.go:89)
2024/03/10 12:18:35 POST / - 200 OK - ContentLength: 37
Some configuration information are as follows
flow.yml
environment:
gateway: "localhost:31112"
enable_tracing: true
trace_server: "jaeger-agent.faasflow:5775"
enable_hmac: true
consul_url: "consul.faasflow:8500"
consul_dc: "dc1"
s3_url: "minio.faasflow:9000"
s3_tls: false
stack.yml
provider:
name: openfaas
gateway: http://127.0.0.1:31112
functions:
sync-chain:
lang: faas-flow
handler: ./sync-chain
image: s8sg/sync-chain-example:2.0.0
labels:
faas-flow: 1
annotations:
faas-flow-desc: "flow for a example synchronous chain execution"
environment_file:
- flow.yml
secrets:
- s3-secret-key
- s3-access-key
# async-chain:
# lang: faas-flow
# handler: ./async-chain
# image: s8sg/async-chain-example:2.0.0
# labels:
# faas-flow: 1
# annotations:
# faas-flow-desc: "flow for a example asynchronous chain execution"
# environment_file:
# - flow.yml
# secrets:
# - s3-secret-key
# - s3-access-key
# parallel-branching:
# lang: faas-flow
# handler: ./parallel-branching
# image: s8sg/parallel-branching-example:2.0.0
# labels:
# faas-flow: 1
# annotations:
# faas-flow-desc: "flow for a example parallel branch execution"
# environment_file:
# - flow.yml
# secrets:
# - s3-secret-key
# - s3-access-key
# dynamic-branching:
# lang: faas-flow
# handler: ./dynamic-branching
# image: s8sg/dynamic-branching-example:2.0.0
# labels:
# faas-flow: 1
# annotations:
# faas-flow-desc: "flow for a example dynamic branch execution"
# environment_file:
# - flow.yml
# secrets:
# - s3-secret-key
# - s3-access-key
# conditional-branching:
# lang: faas-flow
# handler: ./conditional-branching
# image: s8sg/conditional-branching:2.0.0
# labels:
# faas-flow: 1
# annotations:
# faas-flow-desc: "flow for a example synchronous chain execution"
# environment_file:
# - flow.yml
# secrets:
# - s3-secret-key
# - s3-access-key
func1:
lang: python3-http
handler: ./func1
image: s8sg/func1-example:1.0.0
func2:
lang: python3-http
handler: ./func2
image: s8sg/func2-example:1.0.0
fake-storage:
lang: python3-http
handler: ./fake-storage
image: s8sg/fake-storage:1.0.0
environment:
write_debug: true
combine_output: false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.