forked from numaproj/numaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
11-join-on-reduce.yaml
43 lines (43 loc) · 1.06 KB
/
11-join-on-reduce.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: join-on-reduce
spec:
vertices:
- name: http-in
source:
http: {}
- name: kafka-in
source:
kafka:
brokers:
- my-broker1:19700
- my-broker2:19700
topic: my-topic
consumerGroup: my-consumer-group
# Both of the incoming Vertices join on this Reduce Vertex
- name: compute-sum
udf:
container:
# Compute the sum, see https://github.com/numaproj/numaflow-go/tree/main/pkg/reducer/examples/sum
image: quay.io/numaio/numaflow-go/reduce-sum:v0.6.0
groupBy:
window:
fixed:
length: 10s
keyed: false
storage:
persistentVolumeClaim:
volumeSize: 10Gi
accessMode: ReadWriteOnce
- name: sink
sink:
# A simple log printing sink
log: {}
edges:
- from: http-in
to: compute-sum
- from: kafka-in
to: compute-sum
- from: compute-sum
to: sink