-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquix.yaml
172 lines (169 loc) · 4.88 KB
/
quix.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Quix Project Descriptor
# This file describes the data pipeline and configuration of resources of a Quix Project.
metadata:
version: 1.0
# This section describes the Deployments of the data pipeline
deployments:
- name: Stream data from CSV
application: Stream data from CSV
deploymentType: Service
version: 20189b29c0177b97eb8a97073a15712834d515d1
resources:
cpu: 200
memory: 1000
replicas: 1
desiredStatus: Stopped
variables:
- name: output
inputType: OutputTopic
description: This is the output topic for realtime CSV data
required: true
value: click-data
- name: keep_timing
inputType: FreeText
description: Set to 1 to keep original timings, if set to false, send each click event every 0.2 seconds
required: false
value: 1
- name: Enrich With User And Product Data
application: Enrich With User And Product Data
deploymentType: Service
version: 4a24cd34b62fa7293013952524f72435d244a87a
resources:
cpu: 200
memory: 1000
replicas: 1
desiredStatus: Running
variables:
- name: input
inputType: InputTopic
description: This is the input topic where we will get user interactions
required: true
value: click-data
- name: output
inputType: OutputTopic
description: This is the output topic, where we will send the enriched data
required: true
value: enriched-click-data
- name: redis_host
inputType: FreeText
description: External Redis hostname
required: true
value: {{ redis_host }}
- name: redis_port
inputType: FreeText
description: External Redis port
required: true
value: {{ redis_port }}
- name: redis_password
inputType: Secret
description: External Redis password
required: true
secretKey: redis_password
- name: Load Products and Users
application: Load Products and Users
deploymentType: Job
version: 7a369a17b0d8e6f640f205f5d3e87ef628b0dd02
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: redis_host
inputType: FreeText
description: External Redis hostname
required: true
value: {{ redis_host }}
- name: redis_port
inputType: FreeText
description: External Redis port
required: true
value: {{ redis_port }}
- name: redis_password
inputType: Secret
description: External Redis password
required: true
secretKey: redis_password
- name: Detect User Behaviour
application: Detect User Behaviour
deploymentType: Service
version: 361f4b8ad8d0a958c75b01f8a89034a5eae51819
resources:
cpu: 200
memory: 500
replicas: 1
state:
enabled: true
size: 1
desiredStatus: Running
variables:
- name: input
inputType: InputTopic
description: This is the input topic for enriched click data
required: true
value: enriched-click-data
- name: window_minutes
inputType: FreeText
description: Minutes for the rolling window to detect user behaviour
required: false
value: 30
- name: output
inputType: OutputTopic
description: Topic to write offers
required: true
value: special-offers
- name: Aggregation Service
application: Aggregation Service
deploymentType: Service
version: 5200a21ff67db484ead755c1c655a23b90784ee6
resources:
cpu: 200
memory: 500
replicas: 1
state:
enabled: true
size: 1
desiredStatus: Running
variables:
- name: input
inputType: InputTopic
description: This is the input topic to read data from
required: true
value: enriched-click-data
- name: redis_host
inputType: FreeText
description: External Redis hostname
required: true
value: {{ redis_host }}
- name: redis_port
inputType: FreeText
description: External Redis port
required: true
value: {{ redis_port }}
- name: redis_password
inputType: Secret
description: External Redis password
required: true
secretKey: redis_password
# This section describes the Topics of the data pipeline
topics:
- name: click-data
persisted: false
configuration:
partitions: 2
replicationFactor: 2
retentionInMinutes: 60
retentionInBytes: 52428800
- name: enriched-click-data
persisted: false
configuration:
partitions: 2
replicationFactor: 2
retentionInMinutes: 60
retentionInBytes: 52428800
- name: special-offers
persisted: false
configuration:
partitions: 2
replicationFactor: 2
retentionInMinutes: 60
retentionInBytes: 52428800