Elffuss BraidHub

kikocis/falkordb-omnistrate public

main · 72.5 KiBRawPermalink
1version: "3.9"
2
3x-omnistrate-service-plan:
4 name: "FalkorDB Pro"
5 tenancyType: "OMNISTRATE_DEDICATED_TENANCY"
6 deployment:
7 hostedDeployment:
8 GcpProjectId: "$GcpProjectId"
9 GcpProjectNumber: "$GcpProjectNumber"
10 GcpServiceAccountEmail: "$GcpServiceAccountEmail"
11 AwsAccountId: "$AwsAccountId"
12 AwsBootstrapRoleAccountArn: "$AwsBootstrapRoleAccountArn"
13
14x-omnistrate-load-balancer:
15 tcp:
16 - name: Single Zone Sentinel LB
17 description: L4 Load Balancer for Sentinel in Single Zone
18 ports:
19 - associatedResourceKeys:
20 - node-sz
21 - sentinel-sz
22 ingressPort: 26379
23 backendPort: 26379
24
25 - name: Multi Zone Sentinel LB
26 description: L4 Load Balancer for Sentinel in Multi Zone
27 ports:
28 - associatedResourceKeys:
29 - node-mz
30 - sentinel-mz
31 ingressPort: 26379
32 backendPort: 26379
33
34x-internal-integrations:
35 logs:
36 provider: native
37 metrics:
38 provider: native
39
40x-redisMetrics: &metrics
41 prometheusEndpoint: "http://localhost:9121/metrics"
42 metrics:
43 redis_blocked_clients:
44 "Blocked Clients":
45 aggregationFunction: sum
46 redis_cluster_connections:
47 "Cluster Connections":
48 aggregationFunction: sum
49 redis_commands_duration_seconds_total:
50 "Total Command Duration (Seconds)":
51 aggregationFunction: sum
52 redis_commands_failed_calls_total:
53 "Failed Command Calls":
54 aggregationFunction: sum
55 redis_commands_latencies_usec_bucket:
56 "Command Latency (μs) Bucket":
57 aggregationFunction: sum
58 redis_commands_latencies_usec_sum:
59 "Total Command Latency (μs)":
60 aggregationFunction: sum
61 redis_commands_latencies_usec_count:
62 "Command Latency Count (μs)":
63 aggregationFunction: sum
64 redis_commands_processed_total:
65 "Total Processed Commands":
66 aggregationFunction: sum
67 redis_commands_rejected_calls_total:
68 "Rejected Command Calls":
69 aggregationFunction: sum
70 redis_commands_total:
71 "Total Commands":
72 aggregationFunction: sum
73 redis_config_maxclients:
74 "Max Clients Configured":
75 aggregationFunction: sum
76 redis_config_maxmemory:
77 "Max Memory Configured":
78 aggregationFunction: sum
79 redis_connected_clients:
80 "Connected Clients":
81 aggregationFunction: sum
82 redis_connections_received_total:
83 "Total Connections Received":
84 aggregationFunction: sum
85 redis_cpu_sys_children_seconds_total:
86 "CPU Sys Children Time (Seconds)":
87 aggregationFunction: sum
88 redis_cpu_sys_main_thread_seconds_total:
89 "Total CPU Sys Main Thread Time (Seconds)":
90 aggregationFunction: sum
91 redis_cpu_sys_seconds_total:
92 "Total CPU Sys Time (Seconds)":
93 aggregationFunction: sum
94 redis_cpu_user_children_seconds_total:
95 "Total CPU User Children Time (Seconds)":
96 aggregationFunction: sum
97 redis_cpu_user_main_thread_seconds_total:
98 "Total CPU User Main Thread Time (Seconds)":
99 aggregationFunction: sum
100 redis_cpu_user_seconds_total:
101 "Total CPU User Time (Seconds)":
102 aggregationFunction: sum
103 redis_db_keys:
104 "Database Keys":
105 aggregationFunction: sum
106 redis_errors_total:
107 "Total Errors":
108 aggregationFunction: sum
109 redis_exporter_scrapes_total:
110 "Total Exporter Scrapes":
111 aggregationFunction: sum
112 redis_io_threads_active:
113 "Active I/O Threads":
114 aggregationFunction: sum
115 redis_keyspace_hits_total:
116 "Total Keyspace Hits":
117 aggregationFunction: sum
118 redis_keyspace_misses_total:
119 "Total Keyspaces Misses":
120 aggregationFunction: sum
121 redis_last_slow_execution_duration_seconds:
122 "Last Slow Execution Duration (Seconds)":
123 aggregationFunction: sum
124 redis_latency_percentiles_usec:
125 "Latency Percentiles (μs)":
126 aggregationFunction: sum
127 redis_latency_percentiles_usec_sum:
128 "Total Latency Percentiles (μs)":
129 aggregationFunction: sum
130 redis_latency_percentiles_usec_count:
131 "Latency Percentiles Count":
132 aggregationFunction: sum
133 redis_latest_fork_seconds:
134 "Latest Fork Time (Seconds)":
135 aggregationFunction: sum
136 redis_loading_dump_file:
137 "Loading Dump File":
138 aggregationFunction: sum
139 redis_master_repl_offset:
140 "Master Replication Offset":
141 aggregationFunction: sum
142 redis_mem_clients_normal:
143 "Memory Used By Normal Clients":
144 aggregationFunction: sum
145 redis_mem_clients_slaves:
146 "Memory Used By Slave Clients":
147 aggregationFunction: sum
148 redis_memory_max_bytes:
149 "Max Memory (Bytes)":
150 aggregationFunction: sum
151 redis_memory_used_bytes:
152 "Memory Used (Bytes)":
153 aggregationFunction: sum
154 redis_memory_used_dataset_bytes:
155 "Memory Used By Dataset (Bytes)":
156 aggregationFunction: sum
157 redis_rdb_bgsave_in_progress:
158 "RDB BGSAVE In Progress":
159 aggregationFunction: sum
160 redis_rdb_changes_since_last_save:
161 "Changes Since Last RDB Save":
162 aggregationFunction: sum
163 redis_rdb_current_bgsave_duration_sec:
164 "Current RDB BGSAVE Duration (Seconds)":
165 aggregationFunction: sum
166 redis_rdb_last_bgsave_duration_sec:
167 "Last RDB BGSAVE Duration (Seconds)":
168 aggregationFunction: sum
169 redis_rdb_last_bgsave_status:
170 "Last RDB BGSAVE Status":
171 aggregationFunction: sum
172 redis_rdb_last_cow_size_bytes:
173 "Last RDB Copy-On-Write Size (Bytes)":
174 aggregationFunction: sum
175 redis_rdb_last_load_loaded_keys:
176 "Last RDB Load: Loaded Keys":
177 aggregationFunction: sum
178 redis_rdb_last_save_timestamp_seconds:
179 "Last RDB Save Timestamp (Seconds)":
180 aggregationFunction: sum
181 redis_rdb_saves_total:
182 "Total RDB Saves":
183 aggregationFunction: sum
184 redis_rejected_connections_total:
185 "Total Rejected Connections":
186 aggregationFunction: sum
187 redis_slowlog_last_id:
188 "Slow Log Last ID":
189 aggregationFunction: sum
190 redis_slowlog_length:
191 "Slow Log Length":
192 aggregationFunction: sum
193 redis_start_time_seconds:
194 "Start Time (Seconds)":
195 aggregationFunction: sum
196 redis_unexpected_error_replies:
197 "Unexpected Error Replies":
198 aggregationFunction: sum
199 redis_up:
200 "Redis Up":
201 aggregationFunction: sum
202 redis_uptime_in_seconds:
203 "Uptime (Seconds)":
204 aggregationFunction: sum
205
206x-omnistrate-integrations:
207 - omnistrateLogging:
208 - omnistrateMetrics:
209 additionalMetrics:
210 node-s:
211 <<: *metrics
212 node-sz:
213 <<: *metrics
214 node-mz:
215 <<: *metrics
216 cluster-sz:
217 <<: *metrics
218 cluster-mz:
219 <<: *metrics
220
221x-rebalanceparam: &rebalanceparam
222 x-omnistrate-api-params:
223 - key: enableTLS
224 description: Whether to enable TLS for the database
225 name: Enable TLS
226 type: Boolean
227 modifiable: false
228 required: true
229 export: true
230 defaultValue: "false"
231
232x-clusterparam: &clusterparam
233 x-omnistrate-api-params:
234 - key: nodeInstanceType
235 description: The size of the node instance. Check the documentation for more information.
236 name: Node Instance Type
237 type: String
238 modifiable: true
239 required: true
240 export: true
241 defaultValue: e2-custom-4-8192
242 options:
243 - e2-medium
244 - e2-custom-4-8192
245 - e2-custom-8-16384
246 - e2-custom-16-32768
247 - e2-custom-32-65536
248 - t2.medium
249 - c6i.xlarge
250 - c6i.2xlarge
251 - c6i.4xlarge
252 - c6i.8xlarge
253 - key: enableTLS
254 description: Whether to enable TLS for the database
255 name: Enable TLS
256 type: Boolean
257 modifiable: false
258 required: true
259 export: true
260 defaultValue: "false"
261 - key: falkordbUser
262 description: Choose a default username for your database
263 name: FalkorDB User
264 type: String
265 modifiable: false
266 required: true
267 export: true
268 defaultValue: "falkordb"
269 - key: falkordbPassword
270 description: Choose a default password for your database
271 name: FalkorDB Password
272 type: Password
273 modifiable: false
274 required: true
275 export: false
276 - key: RDBPersistenceConfig
277 description: How often to save the RDB file to disk. Check the documentation for more information.
278 name: RDB Persistence Config
279 type: String
280 modifiable: false
281 required: false
282 export: true
283 defaultValue: "low"
284 options:
285 - "low"
286 - "medium"
287 - "high"
288 - key: AOFPersistenceConfig
289 description: Whether to enable AOF persistence. Check the documentation for more information.
290 name: AOF Persistence Config
291 type: String
292 modifiable: false
293 required: false
294 export: true
295 defaultValue: "everysec"
296 options:
297 - "everysec"
298 - "always"
299 - key: falkorDBCacheSize
300 description: Choose the cache size for your database
301 name: FalkorDB Cache Size
302 type: Float64
303 modifiable: false
304 required: false
305 export: true
306 defaultValue: "25"
307 min: 0
308 max: 256
309 - key: falkorDBNodeCreationBuffer
310 description: Choose the buffer size for your database
311 name: FalkorDB Node Creation Buffer
312 type: Float64
313 modifiable: false
314 required: false
315 export: true
316 defaultValue: "16384"
317 min: 256
318 max: 32768
319 - key: falkorDBMaxQueuedQueries
320 description: Choose the max queued queries for your database
321 name: FalkorDB Max Queued Queries
322 type: Float64
323 modifiable: false
324 required: false
325 export: true
326 defaultValue: "50"
327 min: 0
328 max: 512
329 - key: falkorDBTimeoutMax
330 description: Choose the timeout max for your database
331 name: FalkorDB Timeout Max
332 type: Float64
333 modifiable: false
334 required: false
335 export: true
336 defaultValue: "0"
337 min: 0
338 max: 45000
339 - key: falkorDBTimeoutDefault
340 description: Choose the timeout default for your database
341 name: FalkorDB Timeout Default
342 type: Float64
343 modifiable: false
344 required: false
345 export: true
346 defaultValue: "0"
347 min: 0
348 max: 45000
349 - key: falkorDBResultSetSize
350 description: Choose the result set size for your database
351 name: FalkorDB Result Set Size
352 type: Float64
353 modifiable: false
354 required: false
355 export: true
356 defaultValue: "0"
357 min: 0
358 max: 1000000
359 - key: falkorDBQueryMemCapacity
360 description: Choose the query mem capacity for your database
361 name: FalkorDB Query Mem Capacity
362 type: Float64
363 modifiable: false
364 required: false
365 export: true
366 defaultValue: "0"
367 min: 0
368 max: 2000000000
369
370services:
371 # Standalone
372
373 Standalone:
374 x-omnistrate-mode-internal: false
375 image: omnistrate/noop
376 x-omnistrate-api-params:
377 - key: name
378 description: Name
379 name: Name
380 type: String
381 modifiable: true
382 required: false
383 defaultValue: My favorite database
384 export: true
385 - key: description
386 description: Description
387 name: Description
388 type: String
389 modifiable: true
390 required: false
391 defaultValue: Description
392 export: true
393 - key: nodeInstanceType
394 description: The size of the node instance. Check the documentation for more information.
395 name: Node Instance Type
396 type: String
397 modifiable: true
398 required: true
399 export: true
400 options:
401 - e2-medium
402 - e2-custom-4-8192
403 - e2-custom-8-16384
404 - e2-custom-16-32768
405 - e2-custom-32-65536
406 - t2.medium
407 - c6i.xlarge
408 - c6i.2xlarge
409 - c6i.4xlarge
410 - c6i.8xlarge
411 parameterDependencyMap:
412 node-s: nodeInstanceType
413 - key: enableTLS
414 description: Whether to enable TLS for the database
415 name: Enable TLS
416 type: Boolean
417 modifiable: false
418 required: true
419 export: true
420 defaultValue: "false"
421 parameterDependencyMap:
422 node-s: enableTLS
423 - key: falkordbUser
424 description: Choose a default username for your database
425 name: FalkorDB User
426 type: String
427 modifiable: false
428 required: true
429 export: true
430 defaultValue: "falkordb"
431 parameterDependencyMap:
432 node-s: falkordbUser
433 - key: falkordbPassword
434 description: Choose a default password for your database
435 name: FalkorDB Password
436 type: Password
437 modifiable: false
438 required: true
439 export: false
440 parameterDependencyMap:
441 node-s: falkordbPassword
442 - key: RDBPersistenceConfig
443 description: How often to save the RDB file to disk. Check the documentation for more information.
444 name: RDB Persistence Config
445 type: String
446 modifiable: false
447 required: false
448 export: true
449 defaultValue: "low"
450 options:
451 - "low"
452 - "medium"
453 - "high"
454 parameterDependencyMap:
455 node-s: RDBPersistenceConfig
456 - key: AOFPersistenceConfig
457 description: Whether to enable AOF persistence. Check the documentation for more information.
458 name: AOF Persistence Config
459 type: String
460 modifiable: false
461 required: false
462 export: true
463 defaultValue: "everysec"
464 options:
465 - "everysec"
466 - "always"
467 parameterDependencyMap:
468 node-s: AOFPersistenceConfig
469 - key: falkorDBCacheSize
470 description: Choose the cache size for your database
471 name: FalkorDB Cache Size
472 type: Float64
473 modifiable: false
474 required: false
475 export: true
476 defaultValue: "25"
477 min: 0
478 max: 256
479 parameterDependencyMap:
480 node-s: falkorDBCacheSize
481 - key: falkorDBNodeCreationBuffer
482 description: Choose the buffer size for your database
483 name: FalkorDB Node Creation Buffer
484 type: Float64
485 modifiable: false
486 required: false
487 export: true
488 defaultValue: "16384"
489 min: 256
490 max: 32768
491 parameterDependencyMap:
492 node-s: falkorDBNodeCreationBuffer
493 - key: falkorDBMaxQueuedQueries
494 description: Choose the max queued queries for your database
495 name: FalkorDB Max Queued Queries
496 type: Float64
497 modifiable: false
498 required: false
499 export: true
500 defaultValue: "50"
501 min: 0
502 max: 512
503 parameterDependencyMap:
504 node-s: falkorDBMaxQueuedQueries
505 - key: falkorDBTimeoutMax
506 description: Choose the timeout max for your database
507 name: FalkorDB Timeout Max
508 type: Float64
509 modifiable: false
510 required: false
511 export: true
512 defaultValue: "0"
513 min: 0
514 max: 45000
515 parameterDependencyMap:
516 node-s: falkorDBTimeoutMax
517 - key: falkorDBTimeoutDefault
518 description: Choose the timeout default for your database
519 name: FalkorDB Timeout Default
520 type: Float64
521 modifiable: false
522 required: false
523 export: true
524 defaultValue: "0"
525 min: 0
526 max: 45000
527 parameterDependencyMap:
528 node-s: falkorDBTimeoutDefault
529 - key: falkorDBResultSetSize
530 description: Choose the result set size for your database
531 name: FalkorDB Result Set Size
532 type: Float64
533 modifiable: false
534 required: false
535 export: true
536 defaultValue: "10000"
537 min: 0
538 max: 1000000
539 parameterDependencyMap:
540 node-s: falkorDBResultSetSize
541 - key: falkorDBQueryMemCapacity
542 description: Choose the query mem capacity for your database
543 name: FalkorDB Query Mem Capacity
544 type: Float64
545 modifiable: false
546 required: false
547 export: true
548 defaultValue: "0"
549 min: 0
550 max: 2000000000
551 parameterDependencyMap:
552 node-s: falkorDBQueryMemCapacity
553 x-omnistrate-capabilities:
554 backupConfiguration:
555 backupRetentionInDays: 7
556 backupPeriodInHours: 12
557 depends_on:
558 - node-s
559
560 node-s:
561 x-omnistrate-mode-internal: true
562 image: $FalkorDBNodeImage
563 x-omnistrate-compute:
564 replicaCount: 1
565 instanceTypes:
566 - cloudProvider: gcp
567 apiParam: nodeInstanceType
568 - cloudProvider: aws
569 apiParam: nodeInstanceType
570 x-omnistrate-api-params:
571 - key: nodeInstanceType
572 description: The size of the node instance. Check the documentation for more information.
573 name: Node Instance Type
574 type: String
575 modifiable: true
576 required: true
577 export: true
578 options:
579 - e2-medium
580 - e2-custom-4-8192
581 - e2-custom-8-16384
582 - e2-custom-16-32768
583 - e2-custom-32-65536
584 - t2.medium
585 - c6i.xlarge
586 - c6i.2xlarge
587 - c6i.4xlarge
588 - c6i.8xlarge
589 - key: enableTLS
590 description: Whether to enable TLS for the database
591 name: Enable TLS
592 type: Boolean
593 modifiable: false
594 required: true
595 export: true
596 defaultValue: "false"
597 - key: falkordbUser
598 description: Choose a default username for your database
599 name: FalkorDB User
600 type: String
601 modifiable: false
602 required: true
603 export: true
604 defaultValue: "falkordb"
605 - key: falkordbPassword
606 description: Choose a default password for your database
607 name: FalkorDB Password
608 type: Password
609 modifiable: false
610 required: true
611 export: false
612 - key: RDBPersistenceConfig
613 description: How often to save the RDB file to disk. Check the documentation for more information.
614 name: RDB Persistence Config
615 type: String
616 modifiable: false
617 required: false
618 export: true
619 defaultValue: "low"
620 options:
621 - "low"
622 - "medium"
623 - "high"
624 - key: AOFPersistenceConfig
625 description: Whether to enable AOF persistence. Check the documentation for more information.
626 name: AOF Persistence Config
627 type: String
628 modifiable: false
629 required: false
630 export: true
631 defaultValue: "everysec"
632 options:
633 - "everysec"
634 - "always"
635 - key: falkorDBCacheSize
636 description: Choose the cache size for your database
637 name: FalkorDB Cache Size
638 type: Float64
639 modifiable: false
640 required: false
641 export: true
642 defaultValue: "25"
643 min: 0
644 max: 256
645 - key: falkorDBNodeCreationBuffer
646 description: Choose the buffer size for your database
647 name: FalkorDB Node Creation Buffer
648 type: Float64
649 modifiable: false
650 required: false
651 export: true
652 defaultValue: "16384"
653 min: 256
654 max: 32768
655 - key: falkorDBMaxQueuedQueries
656 description: Choose the max queued queries for your database
657 name: FalkorDB Max Queued Queries
658 type: Float64
659 modifiable: false
660 required: false
661 export: true
662 defaultValue: "50"
663 min: 0
664 max: 512
665 - key: falkorDBTimeoutMax
666 description: Choose the timeout max for your database
667 name: FalkorDB Timeout Max
668 type: Float64
669 modifiable: false
670 required: false
671 export: true
672 defaultValue: "0"
673 min: 0
674 max: 45000
675 - key: falkorDBTimeoutDefault
676 description: Choose the timeout default for your database
677 name: FalkorDB Timeout Default
678 type: Float64
679 modifiable: false
680 required: false
681 export: true
682 defaultValue: "0"
683 min: 0
684 max: 45000
685 - key: falkorDBResultSetSize
686 description: Choose the result set size for your database
687 name: FalkorDB Result Set Size
688 type: Float64
689 modifiable: false
690 required: false
691 export: true
692 defaultValue: "10000"
693 min: 0
694 max: 1000000
695 - key: falkorDBQueryMemCapacity
696 description: Choose the query mem capacity for your database
697 name: FalkorDB Query Mem Capacity
698 type: Float64
699 modifiable: false
700 required: false
701 export: true
702 defaultValue: "0"
703 min: 0
704 max: 2000000000
705 volumes:
706 - source: ./data
707 target: /data
708 type: bind
709 x-omnistrate-storage:
710 gcp:
711 instanceStorageType: GCP::PD_BALANCED
712 instanceStorageSizeGi: 200
713 aws:
714 instanceStorageType: AWS::EBS_GP3
715 instanceStorageSizeGi: 200
716 secrets:
717 - source: adminpasspath
718 target: /run/secrets/adminpassword
719 - source: falkordbpasspath
720 target: /run/secrets/falkordbpassword
721 environment:
722 - RUN_NODE=1
723 - RUN_SENTINEL=0
724 - RUN_METRICS=1
725 - RUN_HEALTH_CHECK=1
726 - BROWSER=0
727 - NODE_HOST=$sys.network.node.externalEndpoint
728 - NODE_PORT=6379
729 - TLS=$var.enableTLS
730 - FALKORDB_USER=$var.falkordbUser
731 - DATA_DIR=/data
732 - INSTANCE_TYPE=$var.nodeInstanceType
733 - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
734 - PERSISTENCE_RDB_CONFIG_INPUT=$var.RDBPersistenceConfig
735 - PERSISTENCE_AOF_CONFIG=$var.AOFPersistenceConfig
736 - FALKORDB_CACHE_SIZE=$var.falkorDBCacheSize
737 - FALKORDB_NODE_CREATION_BUFFER=$var.falkorDBNodeCreationBuffer
738 - FALKORDB_MAX_QUEUED_QUERIES=$var.falkorDBMaxQueuedQueries
739 - FALKORDB_TIMEOUT_MAX=$var.falkorDBTimeoutMax
740 - FALKORDB_TIMEOUT_DEFAULT=$var.falkorDBTimeoutDefault
741 - FALKORDB_RESULT_SET_SIZE=$var.falkorDBResultSetSize
742 - FALKORDB_QUERY_MEM_CAPACITY=$var.falkorDBQueryMemCapacity
743 ports:
744 - "6379:6379"
745 x-omnistrate-capabilities:
746 enableMultiZone: false
747 enableEndpointPerReplica: true
748 x-omnistrate-actionhooks:
749
750 # Single Zone
751
752 Single-Zone:
753 x-omnistrate-mode-internal: false
754 image: omnistrate/noop
755 x-omnistrate-api-params:
756 - key: name
757 description: Name
758 name: Name
759 type: String
760 modifiable: true
761 required: false
762 defaultValue: FalkorDB Instance
763 export: true
764 - key: description
765 description: Description
766 name: Description
767 type: String
768 modifiable: true
769 required: false
770 defaultValue: FalkorDB Instance
771 export: true
772 - key: nodeInstanceType
773 description: The size of the node instance. Check the documentation for more information.
774 name: Node Instance Type
775 type: String
776 modifiable: true
777 required: true
778 export: true
779 options:
780 - e2-medium
781 - e2-custom-4-8192
782 - e2-custom-8-16384
783 - e2-custom-16-32768
784 - e2-custom-32-65536
785 - t2.medium
786 - c6i.xlarge
787 - c6i.2xlarge
788 - c6i.4xlarge
789 - c6i.8xlarge
790 parameterDependencyMap:
791 node-sz: nodeInstanceType
792 - key: numReplicas
793 description: Number of Replicas
794 name: Number of Replicas
795 type: Float64
796 modifiable: true
797 required: false
798 export: true
799 defaultValue: "2"
800 options:
801 - "2"
802 - "3"
803 parameterDependencyMap:
804 node-sz: numReplicas
805 - key: enableTLS
806 description: Whether to enable TLS for the database
807 name: Enable TLS
808 type: Boolean
809 modifiable: false
810 required: true
811 export: true
812 defaultValue: "false"
813 parameterDependencyMap:
814 node-sz: enableTLS
815 - key: falkordbUser
816 description: Choose a default username for your database
817 name: FalkorDB User
818 type: String
819 modifiable: false
820 required: true
821 export: true
822 defaultValue: "falkordb"
823 parameterDependencyMap:
824 node-sz: falkordbUser
825 - key: falkordbPassword
826 description: Choose a default password for your database
827 name: FalkorDB Password
828 type: Password
829 modifiable: false
830 required: true
831 export: false
832 parameterDependencyMap:
833 node-sz: falkordbPassword
834 - key: RDBPersistenceConfig
835 description: How often to save the RDB file to disk. Check the documentation for more information.
836 name: RDB Persistence Config
837 type: String
838 modifiable: false
839 required: false
840 export: true
841 defaultValue: "low"
842 options:
843 - "low"
844 - "medium"
845 - "high"
846 parameterDependencyMap:
847 node-sz: RDBPersistenceConfig
848 - key: AOFPersistenceConfig
849 description: Whether to enable AOF persistence. Check the documentation for more information.
850 name: AOF Persistence Config
851 type: String
852 modifiable: false
853 required: false
854 export: true
855 defaultValue: "everysec"
856 options:
857 - "everysec"
858 - "always"
859 parameterDependencyMap:
860 node-sz: AOFPersistenceConfig
861 - key: falkorDBCacheSize
862 description: Choose the cache size for your database
863 name: FalkorDB Cache Size
864 type: Float64
865 modifiable: false
866 required: false
867 export: true
868 defaultValue: "25"
869 min: 0
870 max: 256
871 parameterDependencyMap:
872 node-sz: falkorDBCacheSize
873 - key: falkorDBNodeCreationBuffer
874 description: Choose the buffer size for your database
875 name: FalkorDB Node Creation Buffer
876 type: Float64
877 modifiable: false
878 required: false
879 export: true
880 defaultValue: "16384"
881 min: 256
882 max: 32768
883 parameterDependencyMap:
884 node-sz: falkorDBNodeCreationBuffer
885 - key: falkorDBMaxQueuedQueries
886 description: Choose the max queued queries for your database
887 name: FalkorDB Max Queued Queries
888 type: Float64
889 modifiable: false
890 required: false
891 export: true
892 defaultValue: "50"
893 min: 0
894 max: 512
895 parameterDependencyMap:
896 node-sz: falkorDBMaxQueuedQueries
897 - key: falkorDBTimeoutMax
898 description: Choose the timeout max for your database
899 name: FalkorDB Timeout Max
900 type: Float64
901 modifiable: false
902 required: false
903 export: true
904 defaultValue: "0"
905 min: 0
906 max: 45000
907 parameterDependencyMap:
908 node-sz: falkorDBTimeoutMax
909 - key: falkorDBTimeoutDefault
910 description: Choose the timeout default for your database
911 name: FalkorDB Timeout Default
912 type: Float64
913 modifiable: false
914 required: false
915 export: true
916 defaultValue: "0"
917 min: 0
918 max: 45000
919 parameterDependencyMap:
920 node-sz: falkorDBTimeoutDefault
921 - key: falkorDBResultSetSize
922 description: Choose the result set size for your database
923 name: FalkorDB Result Set Size
924 type: Float64
925 modifiable: false
926 required: false
927 export: true
928 defaultValue: "10000"
929 min: 0
930 max: 1000000
931 parameterDependencyMap:
932 node-sz: falkorDBResultSetSize
933 - key: falkorDBQueryMemCapacity
934 description: Choose the query mem capacity for your database
935 name: FalkorDB Query Mem Capacity
936 type: Float64
937 modifiable: false
938 required: false
939 export: true
940 defaultValue: "0"
941 min: 0
942 max: 2000000000
943 parameterDependencyMap:
944 node-sz: falkorDBQueryMemCapacity
945 x-omnistrate-capabilities:
946 backupConfiguration:
947 backupRetentionInDays: 7
948 backupPeriodInHours: 12
949 depends_on:
950 - node-sz
951
952 node-sz:
953 x-omnistrate-mode-internal: true
954 image: $FalkorDBNodeImage
955 x-omnistrate-compute:
956 replicaCountAPIParam: numReplicas
957 instanceTypes:
958 - cloudProvider: gcp
959 apiParam: nodeInstanceType
960 - cloudProvider: aws
961 apiParam: nodeInstanceType
962 x-omnistrate-api-params:
963 - key: nodeInstanceType
964 description: The size of the node instance. Check the documentation for more information.
965 name: Node Instance Type
966 type: String
967 modifiable: true
968 required: true
969 export: true
970 options:
971 - e2-medium
972 - e2-custom-4-8192
973 - e2-custom-8-16384
974 - e2-custom-16-32768
975 - e2-custom-32-65536
976 - t2.medium
977 - c6i.xlarge
978 - c6i.2xlarge
979 - c6i.4xlarge
980 - c6i.8xlarge
981 - key: numReplicas
982 description: Number of Replicas
983 name: Number of Replicas
984 type: Float64
985 modifiable: true
986 required: false
987 export: true
988 defaultValue: "2"
989 options:
990 - "2"
991 - "3"
992 - key: enableTLS
993 description: Whether to enable TLS for the database
994 name: Enable TLS
995 type: Boolean
996 modifiable: false
997 required: true
998 export: true
999 defaultValue: "false"
1000 parameterDependencyMap:
1001 sentinel-sz: enableTLS
1002 - key: falkordbUser
1003 description: Choose a default username for your database
1004 name: FalkorDB User
1005 type: String
1006 modifiable: false
1007 required: true
1008 export: true
1009 defaultValue: "falkordb"
1010 - key: falkordbPassword
1011 description: Choose a default password for your database
1012 name: FalkorDB Password
1013 type: Password
1014 modifiable: false
1015 required: true
1016 export: false
1017 parameterDependencyMap:
1018 sentinel-sz: falkordbPassword
1019 - key: RDBPersistenceConfig
1020 description: How often to save the RDB file to disk. Check the documentation for more information.
1021 name: RDB Persistence Config
1022 type: String
1023 modifiable: false
1024 required: false
1025 export: true
1026 defaultValue: "low"
1027 options:
1028 - "low"
1029 - "medium"
1030 - "high"
1031 - key: AOFPersistenceConfig
1032 description: Whether to enable AOF persistence. Check the documentation for more information.
1033 name: AOF Persistence Config
1034 type: String
1035 modifiable: false
1036 required: false
1037 export: true
1038 defaultValue: "everysec"
1039 options:
1040 - "everysec"
1041 - "always"
1042 - key: falkorDBCacheSize
1043 description: Choose the cache size for your database
1044 name: FalkorDB Cache Size
1045 type: Float64
1046 modifiable: false
1047 required: false
1048 export: true
1049 defaultValue: "25"
1050 min: 0
1051 max: 256
1052 - key: falkorDBNodeCreationBuffer
1053 description: Choose the buffer size for your database
1054 name: FalkorDB Node Creation Buffer
1055 type: Float64
1056 modifiable: false
1057 required: false
1058 export: true
1059 defaultValue: "16384"
1060 min: 256
1061 max: 32768
1062 - key: falkorDBMaxQueuedQueries
1063 description: Choose the max queued queries for your database
1064 name: FalkorDB Max Queued Queries
1065 type: Float64
1066 modifiable: false
1067 required: false
1068 export: true
1069 defaultValue: "50"
1070 min: 0
1071 max: 512
1072 - key: falkorDBTimeoutMax
1073 description: Choose the timeout max for your database
1074 name: FalkorDB Timeout Max
1075 type: Float64
1076 modifiable: false
1077 required: false
1078 export: true
1079 defaultValue: "0"
1080 min: 0
1081 max: 45000
1082 - key: falkorDBTimeoutDefault
1083 description: Choose the timeout default for your database
1084 name: FalkorDB Timeout Default
1085 type: Float64
1086 modifiable: false
1087 required: false
1088 export: true
1089 defaultValue: "0"
1090 min: 0
1091 max: 45000
1092 - key: falkorDBResultSetSize
1093 description: Choose the result set size for your database
1094 name: FalkorDB Result Set Size
1095 type: Float64
1096 modifiable: false
1097 required: false
1098 export: true
1099 defaultValue: "10000"
1100 min: 0
1101 max: 1000000
1102 - key: falkorDBQueryMemCapacity
1103 description: Choose the query mem capacity for your database
1104 name: FalkorDB Query Mem Capacity
1105 type: Float64
1106 modifiable: false
1107 required: false
1108 export: true
1109 defaultValue: "0"
1110 min: 0
1111 max: 2000000000
1112 volumes:
1113 - source: ./data
1114 target: /data
1115 type: bind
1116 x-omnistrate-storage:
1117 gcp:
1118 instanceStorageType: GCP::PD_BALANCED
1119 instanceStorageSizeGi: 200
1120 aws:
1121 instanceStorageType: AWS::EBS_GP3
1122 instanceStorageSizeGi: 200
1123 secrets:
1124 - source: adminpasspath
1125 target: /run/secrets/adminpassword
1126 - source: falkordbpasspath
1127 target: /run/secrets/falkordbpassword
1128 environment:
1129 - RUN_NODE=1
1130 - RUN_SENTINEL=1
1131 - RUN_METRICS=1
1132 - RUN_HEALTH_CHECK=1
1133 - RUN_HEALTH_CHECK_SENTINEL=1
1134 - BROWSER=0
1135 - DEBUG=0
1136 - REDIS_EXPORTER_DEBUG=false
1137 - SENTINEL_HOST=$sentinel-sz.sys.network.externalClusterEndpoint
1138 - SENTINEL_PORT=26379
1139 - MASTER_NAME=master
1140 - NODE_HOST=$sys.network.node.externalEndpoint
1141 - NODE_PORT=6379
1142 - TLS=$var.enableTLS
1143 - FALKORDB_USER=$var.falkordbUser
1144 - DATA_DIR=/data
1145 - INSTANCE_TYPE=$var.nodeInstanceType
1146 - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
1147 - PERSISTENCE_RDB_CONFIG_INPUT=$var.RDBPersistenceConfig
1148 - PERSISTENCE_AOF_CONFIG=$var.AOFPersistenceConfig
1149 - FALKORDB_CACHE_SIZE=$var.falkorDBCacheSize
1150 - FALKORDB_NODE_CREATION_BUFFER=$var.falkorDBNodeCreationBuffer
1151 - FALKORDB_MAX_QUEUED_QUERIES=$var.falkorDBMaxQueuedQueries
1152 - FALKORDB_TIMEOUT_MAX=$var.falkorDBTimeoutMax
1153 - FALKORDB_TIMEOUT_DEFAULT=$var.falkorDBTimeoutDefault
1154 - FALKORDB_RESULT_SET_SIZE=$var.falkorDBResultSetSize
1155 - FALKORDB_QUERY_MEM_CAPACITY=$var.falkorDBQueryMemCapacity
1156 ports:
1157 - "6379:6379"
1158 - "26379:26379"
1159 x-omnistrate-capabilities:
1160 enableMultiZone: false
1161 enableEndpointPerReplica: true
1162 x-omnistrate-actionhooks:
1163 - scope: NODE
1164 type: HEALTH_CHECK
1165 commandTemplate: |
1166 #!/bin/bash
1167
1168 HEALTH_CHECK_URL="${HEALTH_CHECK_HOST:-localhost}:${HEALTH_CHECK_PORT:-8081}/healthcheck"
1169 SENTINEL_HEALTH_CHECK_URL="${SENTINEL_HEALTH_CHECK_HOST:-localhost}:${SENTINEL_HEALTH_CHECK_PORT:-8082}/healthcheck"
1170 call_health_check() {
1171
1172 echo "Health check URL: $HEALTH_CHECK_URL"
1173 curl -sf $HEALTH_CHECK_URL
1174
1175 if [ $? -ne 0 ]; then
1176 echo "Health check failed"
1177 exit 1
1178 fi
1179 }
1180
1181 sentinel_call_health_check() {
1182
1183 echo "Health check URL: $SENTINEL_HEALTH_CHECK_URL"
1184 curl -sf $SENTINEL_HEALTH_CHECK_URL
1185
1186 if [ $? -ne 0 ]; then
1187 echo "Health check failed"
1188 exit 1
1189 fi
1190 }
1191
1192 if [[ ! -z RUN_HEALTH_CHECK ]] && [[ $RUN_HEALTH_CHECK -eq 1 ]];then
1193 call_health_check
1194 fi
1195
1196 if [[ ! -z $RUN_HEALTH_CHECK_SENTINEL ]] && [[ $RUN_HEALTH_CHECK_SENTINEL -eq 1 ]] && [[ $NODE_INDEX -le 1 ]];then
1197 sentinel_call_health_check
1198 fi
1199 - scope: NODE
1200 type: REMOVE
1201 commandTemplate: |
1202 #!/bin/bash
1203
1204 # Trigger failover before master is removed
1205
1206 role=$(redis-cli -p $NODE_PORT info replication | grep role | cut -d ':' -f 2)
1207
1208 if [ "$role" == "master" ]; then
1209 redis-cli -h $SENTINEL_HOST -p $SENTINEL_PORT SENTINEL failover $MASTER_NAME
1210 fi
1211
1212 depends_on:
1213 - sentinel-sz
1214
1215 sentinel-sz:
1216 x-omnistrate-mode-internal: true
1217 image: $FalkorDBNodeImage
1218 x-omnistrate-compute:
1219 replicaCount: 1
1220 instanceTypes:
1221 - cloudProvider: gcp
1222 name: e2-small
1223 environment:
1224 - RUN_NODE=0
1225 - RUN_SENTINEL=1
1226 - RUN_METRICS=0
1227 - RUN_HEALTH_CHECK=1
1228 - RUN_HEALTH_CHECK_SENTINEL=1
1229 - DEBUG=0
1230 - REDIS_EXPORTER_DEBUG=false
1231 - SENTINEL_PORT=26379
1232 - TLS=$var.enableTLS
1233 - DATA_DIR=/data
1234 - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
1235 ports:
1236 - "26379:26379"
1237 volumes:
1238 - source: ./data
1239 target: /data
1240 type: bind
1241 x-omnistrate-storage:
1242 gcp:
1243 instanceStorageType: GCP::PD_BALANCED
1244 instanceStorageSizeGi: 10
1245 aws:
1246 instanceStorageType: AWS::EBS_GP3
1247 instanceStorageSizeGi: 10
1248 secrets:
1249 - source: adminpasspath
1250 target: /run/secrets/adminpassword
1251 - source: falkordbpasspath
1252 target: /run/secrets/falkordbpassword
1253 x-omnistrate-capabilities:
1254 enableMultiZone: false
1255 enableEndpointPerReplica: true
1256 x-omnistrate-api-params:
1257 - key: enableTLS
1258 description: Whether to enable TLS for the database
1259 name: Enable TLS
1260 type: Boolean
1261 modifiable: false
1262 required: true
1263 export: true
1264 defaultValue: "false"
1265 - key: falkordbPassword
1266 description: Choose a default password for your database
1267 name: FalkorDB Password
1268 type: Password
1269 modifiable: false
1270 required: true
1271 export: false
1272 x-omnistrate-actionhooks:
1273 - scope: NODE
1274 type: HEALTH_CHECK
1275 commandTemplate: |
1276 #!/bin/bash
1277
1278 SENTINEL_HEALTH_CHECK_URL="${SENTINEL_HEALTH_CHECK_HOST:-localhost}:${SENTINEL_HEALTH_CHECK_PORT:-8082}/healthcheck"
1279 sentinel_call_health_check() {
1280
1281 echo "Health check URL: $SENTINEL_HEALTH_CHECK_URL"
1282 curl -sf $SENTINEL_HEALTH_CHECK_URL
1283
1284 if [ $? -ne 0 ]; then
1285 echo "Health check failed"
1286 exit 1
1287 fi
1288 }
1289
1290 if [[ ! -z $RUN_HEALTH_CHECK_SENTINEL ]] && [[ $RUN_HEALTH_CHECK_SENTINEL -eq 1 ]] && [[ $NODE_INDEX -le 1 ]];then
1291 sentinel_call_health_check
1292 fi
1293
1294 # Multi Zone
1295
1296 Multi-Zone:
1297 x-omnistrate-mode-internal: false
1298 image: omnistrate/noop
1299 x-omnistrate-api-params:
1300 - key: name
1301 description: Name
1302 name: Name
1303 type: String
1304 modifiable: true
1305 required: false
1306 defaultValue: FalkorDB Instance
1307 export: true
1308 - key: description
1309 description: Description
1310 name: Description
1311 type: String
1312 modifiable: true
1313 required: false
1314 defaultValue: FalkorDB Instance
1315 export: true
1316 - key: nodeInstanceType
1317 description: The size of the node instance. Check the documentation for more information.
1318 name: Node Instance Type
1319 type: String
1320 modifiable: true
1321 required: true
1322 export: true
1323 options:
1324 - e2-medium
1325 - e2-custom-4-8192
1326 - e2-custom-8-16384
1327 - e2-custom-16-32768
1328 - e2-custom-32-65536
1329 - t2.medium
1330 - c6i.xlarge
1331 - c6i.2xlarge
1332 - c6i.4xlarge
1333 - c6i.8xlarge
1334 parameterDependencyMap:
1335 node-mz: nodeInstanceType
1336 - key: numReplicas
1337 description: Number of Replicas
1338 name: Number of Replicas
1339 type: Float64
1340 modifiable: true
1341 required: false
1342 export: true
1343 defaultValue: "2"
1344 options:
1345 - "2"
1346 - "3"
1347 parameterDependencyMap:
1348 node-mz: numReplicas
1349 - key: enableTLS
1350 description: Whether to enable TLS for the database
1351 name: Enable TLS
1352 type: Boolean
1353 modifiable: false
1354 required: true
1355 export: true
1356 defaultValue: "false"
1357 parameterDependencyMap:
1358 node-mz: enableTLS
1359 - key: falkordbUser
1360 description: Choose a default username for your database
1361 name: FalkorDB User
1362 type: String
1363 modifiable: false
1364 required: true
1365 export: true
1366 defaultValue: "falkordb"
1367 parameterDependencyMap:
1368 node-mz: falkordbUser
1369 - key: falkordbPassword
1370 description: Choose a default password for your database
1371 name: FalkorDB Password
1372 type: Password
1373 modifiable: false
1374 required: true
1375 export: false
1376 parameterDependencyMap:
1377 node-mz: falkordbPassword
1378 - key: RDBPersistenceConfig
1379 description: How often to save the RDB file to disk. Check the documentation for more information.
1380 name: RDB Persistence Config
1381 type: String
1382 modifiable: false
1383 required: false
1384 export: true
1385 defaultValue: "low"
1386 options:
1387 - "low"
1388 - "medium"
1389 - "high"
1390 parameterDependencyMap:
1391 node-mz: RDBPersistenceConfig
1392 - key: AOFPersistenceConfig
1393 description: Whether to enable AOF persistence. Check the documentation for more information.
1394 name: AOF Persistence Config
1395 type: String
1396 modifiable: false
1397 required: false
1398 export: true
1399 defaultValue: "everysec"
1400 options:
1401 - "everysec"
1402 - "always"
1403 parameterDependencyMap:
1404 node-mz: AOFPersistenceConfig
1405 - key: falkorDBCacheSize
1406 description: Choose the cache size for your database
1407 name: FalkorDB Cache Size
1408 type: Float64
1409 modifiable: false
1410 required: false
1411 export: true
1412 defaultValue: "25"
1413 min: 0
1414 max: 256
1415 parameterDependencyMap:
1416 node-mz: falkorDBCacheSize
1417 - key: falkorDBNodeCreationBuffer
1418 description: Choose the buffer size for your database
1419 name: FalkorDB Node Creation Buffer
1420 type: Float64
1421 modifiable: false
1422 required: false
1423 export: true
1424 defaultValue: "16384"
1425 min: 256
1426 max: 32768
1427 parameterDependencyMap:
1428 node-mz: falkorDBNodeCreationBuffer
1429 - key: falkorDBMaxQueuedQueries
1430 description: Choose the max queued queries for your database
1431 name: FalkorDB Max Queued Queries
1432 type: Float64
1433 modifiable: false
1434 required: false
1435 export: true
1436 defaultValue: "50"
1437 min: 0
1438 max: 512
1439 parameterDependencyMap:
1440 node-mz: falkorDBMaxQueuedQueries
1441 - key: falkorDBTimeoutMax
1442 description: Choose the timeout max for your database
1443 name: FalkorDB Timeout Max
1444 type: Float64
1445 modifiable: false
1446 required: false
1447 export: true
1448 defaultValue: "0"
1449 min: 0
1450 max: 45000
1451 parameterDependencyMap:
1452 node-mz: falkorDBTimeoutMax
1453 - key: falkorDBTimeoutDefault
1454 description: Choose the timeout default for your database
1455 name: FalkorDB Timeout Default
1456 type: Float64
1457 modifiable: false
1458 required: false
1459 export: true
1460 defaultValue: "0"
1461 min: 0
1462 max: 45000
1463 parameterDependencyMap:
1464 node-mz: falkorDBTimeoutDefault
1465 - key: falkorDBResultSetSize
1466 description: Choose the result set size for your database
1467 name: FalkorDB Result Set Size
1468 type: Float64
1469 modifiable: false
1470 required: false
1471 export: true
1472 defaultValue: "10000"
1473 min: 0
1474 max: 1000000
1475 parameterDependencyMap:
1476 node-mz: falkorDBResultSetSize
1477 - key: falkorDBQueryMemCapacity
1478 description: Choose the query mem capacity for your database
1479 name: FalkorDB Query Mem Capacity
1480 type: Float64
1481 modifiable: false
1482 required: false
1483 export: true
1484 defaultValue: "0"
1485 min: 0
1486 max: 2000000000
1487 parameterDependencyMap:
1488 node-mz: falkorDBQueryMemCapacity
1489 x-omnistrate-capabilities:
1490 backupConfiguration:
1491 backupRetentionInDays: 7
1492 backupPeriodInHours: 12
1493 depends_on:
1494 - node-mz
1495
1496 node-mz:
1497 x-omnistrate-mode-internal: true
1498 image: $FalkorDBNodeImage
1499 x-omnistrate-compute:
1500 replicaCountAPIParam: numReplicas
1501 instanceTypes:
1502 - cloudProvider: gcp
1503 apiParam: nodeInstanceType
1504 - cloudProvider: aws
1505 apiParam: nodeInstanceType
1506 x-omnistrate-api-params:
1507 - key: nodeInstanceType
1508 description: The size of the node instance. Check the documentation for more information.
1509 name: Node Instance Type
1510 type: String
1511 modifiable: true
1512 required: true
1513 export: true
1514 options:
1515 - e2-medium
1516 - e2-custom-4-8192
1517 - e2-custom-8-16384
1518 - e2-custom-16-32768
1519 - e2-custom-32-65536
1520 - t2.medium
1521 - c6i.xlarge
1522 - c6i.2xlarge
1523 - c6i.4xlarge
1524 - c6i.8xlarge
1525 - key: numReplicas
1526 description: Number of Replicas
1527 name: Number of Replicas
1528 type: Float64
1529 modifiable: true
1530 required: false
1531 export: true
1532 defaultValue: "2"
1533 options:
1534 - "2"
1535 - "3"
1536 - key: enableTLS
1537 description: Whether to enable TLS for the database
1538 name: Enable TLS
1539 type: Boolean
1540 modifiable: false
1541 required: true
1542 export: true
1543 defaultValue: "false"
1544 parameterDependencyMap:
1545 sentinel-mz: enableTLS
1546 - key: falkordbUser
1547 description: Choose a default username for your database
1548 name: FalkorDB User
1549 type: String
1550 modifiable: false
1551 required: true
1552 export: true
1553 defaultValue: "falkordb"
1554 - key: falkordbPassword
1555 description: Choose a default password for your database
1556 name: FalkorDB Password
1557 type: Password
1558 modifiable: false
1559 required: true
1560 export: false
1561 parameterDependencyMap:
1562 sentinel-mz: falkordbPassword
1563 - key: RDBPersistenceConfig
1564 description: How often to save the RDB file to disk. Check the documentation for more information.
1565 name: RDB Persistence Config
1566 type: String
1567 modifiable: false
1568 required: false
1569 export: true
1570 defaultValue: "low"
1571 options:
1572 - "low"
1573 - "medium"
1574 - "high"
1575 - key: AOFPersistenceConfig
1576 description: Whether to enable AOF persistence. Check the documentation for more information.
1577 name: AOF Persistence Config
1578 type: String
1579 modifiable: false
1580 required: false
1581 export: true
1582 defaultValue: "everysec"
1583 options:
1584 - "everysec"
1585 - "always"
1586 - key: falkorDBCacheSize
1587 description: Choose the cache size for your database
1588 name: FalkorDB Cache Size
1589 type: Float64
1590 modifiable: false
1591 required: false
1592 export: true
1593 defaultValue: "25"
1594 min: 0
1595 max: 256
1596 - key: falkorDBNodeCreationBuffer
1597 description: Choose the buffer size for your database
1598 name: FalkorDB Node Creation Buffer
1599 type: Float64
1600 modifiable: false
1601 required: false
1602 export: true
1603 defaultValue: "16384"
1604 min: 256
1605 max: 32768
1606 - key: falkorDBMaxQueuedQueries
1607 description: Choose the max queued queries for your database
1608 name: FalkorDB Max Queued Queries
1609 type: Float64
1610 modifiable: false
1611 required: false
1612 export: true
1613 defaultValue: "50"
1614 min: 0
1615 max: 512
1616 - key: falkorDBTimeoutMax
1617 description: Choose the timeout max for your database
1618 name: FalkorDB Timeout Max
1619 type: Float64
1620 modifiable: false
1621 required: false
1622 export: true
1623 defaultValue: "0"
1624 min: 0
1625 max: 45000
1626 - key: falkorDBTimeoutDefault
1627 description: Choose the timeout default for your database
1628 name: FalkorDB Timeout Default
1629 type: Float64
1630 modifiable: false
1631 required: false
1632 export: true
1633 defaultValue: "0"
1634 min: 0
1635 max: 45000
1636 - key: falkorDBResultSetSize
1637 description: Choose the result set size for your database
1638 name: FalkorDB Result Set Size
1639 type: Float64
1640 modifiable: false
1641 required: false
1642 export: true
1643 defaultValue: "0"
1644 min: 0
1645 max: 1000000
1646 - key: falkorDBQueryMemCapacity
1647 description: Choose the query mem capacity for your database
1648 name: FalkorDB Query Mem Capacity
1649 type: Float64
1650 modifiable: false
1651 required: false
1652 export: true
1653 defaultValue: "0"
1654 min: 0
1655 max: 2000000000
1656 volumes:
1657 - source: ./data
1658 target: /data
1659 type: bind
1660 x-omnistrate-storage:
1661 gcp:
1662 instanceStorageType: GCP::PD_BALANCED
1663 instanceStorageSizeGi: 200
1664 aws:
1665 instanceStorageType: AWS::EBS_GP3
1666 instanceStorageSizeGi: 200
1667 secrets:
1668 - source: adminpasspath
1669 target: /run/secrets/adminpassword
1670 - source: falkordbpasspath
1671 target: /run/secrets/falkordbpassword
1672 environment:
1673 - RUN_NODE=1
1674 - RUN_SENTINEL=1
1675 - RUN_METRICS=1
1676 - RUN_HEALTH_CHECK=1
1677 - RUN_HEALTH_CHECK_SENTINEL=1
1678 - BROWSER=0
1679 - DEBUG=0
1680 - REDIS_EXPORTER_DEBUG=false
1681 - IS_MULTI_ZONE=1
1682 - SENTINEL_HOST=$sentinel-mz.sys.network.externalClusterEndpoint
1683 - SENTINEL_PORT=26379
1684 - MASTER_NAME=master
1685 - NODE_HOST=$sys.network.node.externalEndpoint
1686 - NODE_PORT=6379
1687 - TLS=$var.enableTLS
1688 - FALKORDB_USER=$var.falkordbUser
1689 - DATA_DIR=/data
1690 - INSTANCE_TYPE=$var.nodeInstanceType
1691 - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
1692 - PERSISTENCE_RDB_CONFIG_INPUT=$var.RDBPersistenceConfig
1693 - PERSISTENCE_AOF_CONFIG=$var.AOFPersistenceConfig
1694 - FALKORDB_CACHE_SIZE=$var.falkorDBCacheSize
1695 - FALKORDB_NODE_CREATION_BUFFER=$var.falkorDBNodeCreationBuffer
1696 - FALKORDB_MAX_QUEUED_QUERIES=$var.falkorDBMaxQueuedQueries
1697 - FALKORDB_TIMEOUT_MAX=$var.falkorDBTimeoutMax
1698 - FALKORDB_TIMEOUT_DEFAULT=$var.falkorDBTimeoutDefault
1699 - FALKORDB_RESULT_SET_SIZE=$var.falkorDBResultSetSize
1700 - FALKORDB_QUERY_MEM_CAPACITY=$var.falkorDBQueryMemCapacity
1701 ports:
1702 - "6379:6379"
1703 - "26379:26379"
1704 x-omnistrate-capabilities:
1705 enableMultiZone: true
1706 enableEndpointPerReplica: true
1707 x-omnistrate-actionhooks:
1708 - scope: NODE
1709 type: HEALTH_CHECK
1710 commandTemplate: |
1711 #!/bin/bash
1712
1713 HEALTH_CHECK_URL="${HEALTH_CHECK_HOST:-localhost}:${HEALTH_CHECK_PORT:-8081}/healthcheck"
1714 SENTINEL_HEALTH_CHECK_URL="${SENTINEL_HEALTH_CHECK_HOST:-localhost}:${SENTINEL_HEALTH_CHECK_PORT:-8082}/healthcheck"
1715 call_health_check() {
1716
1717 echo "Health check URL: $HEALTH_CHECK_URL"
1718 curl -sf $HEALTH_CHECK_URL
1719
1720 if [ $? -ne 0 ]; then
1721 echo "Health check failed"
1722 exit 1
1723 fi
1724 }
1725
1726 sentinel_call_health_check() {
1727
1728 echo "Health check URL: $SENTINEL_HEALTH_CHECK_URL"
1729 curl -sf $SENTINEL_HEALTH_CHECK_URL
1730
1731 if [ $? -ne 0 ]; then
1732 echo "Health check failed"
1733 exit 1
1734 fi
1735 }
1736
1737 if [[ ! -z RUN_HEALTH_CHECK ]] && [[ $RUN_HEALTH_CHECK -eq 1 ]];then
1738 call_health_check
1739 fi
1740
1741 if [[ ! -z $RUN_HEALTH_CHECK_SENTINEL ]] && [[ $RUN_HEALTH_CHECK_SENTINEL -eq 1 ]] && [[ $NODE_INDEX -le 1 ]];then
1742 sentinel_call_health_check
1743 fi
1744 - scope: NODE
1745 type: REMOVE
1746 commandTemplate: |
1747 #!/bin/bash
1748
1749 # Trigger failover before master is removed
1750
1751 role=$(redis-cli -p $NODE_PORT info replication | grep role | cut -d ':' -f 2)
1752
1753 if [ "$role" == "master" ]; then
1754 redis-cli -h $SENTINEL_HOST -p $SENTINEL_PORT SENTINEL failover $MASTER_NAME
1755 fi
1756 depends_on:
1757 - sentinel-mz
1758
1759 sentinel-mz:
1760 x-omnistrate-mode-internal: true
1761 image: $FalkorDBNodeImage
1762 x-omnistrate-compute:
1763 replicaCount: 1
1764 instanceTypes:
1765 - cloudProvider: gcp
1766 name: e2-small
1767 environment:
1768 - RUN_NODE=0
1769 - RUN_SENTINEL=1
1770 - RUN_METRICS=0
1771 - RUN_HEALTH_CHECK=1
1772 - RUN_HEALTH_CHECK_SENTINEL=1
1773 - DEBUG=0
1774 - REDIS_EXPORTER_DEBUG=false
1775 - SENTINEL_PORT=26379
1776 - TLS=$var.enableTLS
1777 - DATA_DIR=/data
1778 - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
1779 ports:
1780 - "26379:26379"
1781 volumes:
1782 - source: ./data
1783 target: /data
1784 type: bind
1785 x-omnistrate-storage:
1786 gcp:
1787 instanceStorageType: GCP::PD_BALANCED
1788 instanceStorageSizeGi: 10
1789 aws:
1790 instanceStorageType: AWS::EBS_GP3
1791 instanceStorageSizeGi: 10
1792 secrets:
1793 - source: adminpasspath
1794 target: /run/secrets/adminpassword
1795 - source: falkordbpasspath
1796 target: /run/secrets/falkordbpassword
1797 x-omnistrate-capabilities:
1798 enableMultiZone: false
1799 enableEndpointPerReplica: true
1800 x-omnistrate-api-params:
1801 - key: enableTLS
1802 description: Whether to enable TLS for the database
1803 name: Enable TLS
1804 type: Boolean
1805 modifiable: false
1806 required: true
1807 export: true
1808 defaultValue: "false"
1809 - key: falkordbPassword
1810 description: Choose a default password for your database
1811 name: FalkorDB Password
1812 type: Password
1813 modifiable: false
1814 required: true
1815 export: false
1816 x-omnistrate-actionhooks:
1817 - scope: NODE
1818 type: HEALTH_CHECK
1819 commandTemplate: |
1820 #!/bin/bash
1821
1822 SENTINEL_HEALTH_CHECK_URL="${SENTINEL_HEALTH_CHECK_HOST:-localhost}:${SENTINEL_HEALTH_CHECK_PORT:-8082}/healthcheck"
1823 sentinel_call_health_check() {
1824
1825 echo "Health check URL: $SENTINEL_HEALTH_CHECK_URL"
1826 curl -sf $SENTINEL_HEALTH_CHECK_URL
1827
1828 if [ $? -ne 0 ]; then
1829 echo "Health check failed"
1830 exit 1
1831 fi
1832 }
1833
1834 if [[ ! -z $RUN_HEALTH_CHECK_SENTINEL ]] && [[ $RUN_HEALTH_CHECK_SENTINEL -eq 1 ]] && [[ $NODE_INDEX -le 1 ]];then
1835 sentinel_call_health_check
1836 fi
1837
1838 Cluster-Single-Zone:
1839 x-omnistrate-mode-internal: false
1840 image: omnistrate/noop
1841 x-omnistrate-api-params:
1842 - key: name
1843 description: Name
1844 name: Name
1845 type: String
1846 modifiable: true
1847 required: false
1848 defaultValue: My favorite database
1849 export: true
1850 - key: description
1851 description: Description
1852 name: Description
1853 type: String
1854 modifiable: true
1855 required: false
1856 defaultValue: Description
1857 export: true
1858 - key: nodeInstanceType
1859 description: The size of the node instance. Check the documentation for more information.
1860 name: Node Instance Type
1861 type: String
1862 modifiable: true
1863 required: true
1864 export: true
1865 defaultValue: e2-custom-4-8192
1866 options:
1867 - e2-medium
1868 - e2-custom-4-8192
1869 - e2-custom-8-16384
1870 - e2-custom-16-32768
1871 - e2-custom-32-65536
1872 - t2.medium
1873 - c6i.xlarge
1874 - c6i.2xlarge
1875 - c6i.4xlarge
1876 - c6i.8xlarge
1877 parameterDependencyMap:
1878 cluster-sz: nodeInstanceType
1879 - key: enableTLS
1880 description: Whether to enable TLS for the database
1881 name: Enable TLS
1882 type: Boolean
1883 modifiable: false
1884 required: true
1885 export: true
1886 defaultValue: "false"
1887 parameterDependencyMap:
1888 cluster-sz: enableTLS
1889 cluster-sz-rebalance: enableTLS
1890 - key: falkordbUser
1891 description: Choose a default username for your database
1892 name: FalkorDB User
1893 type: String
1894 modifiable: false
1895 required: true
1896 export: true
1897 defaultValue: "falkordb"
1898 parameterDependencyMap:
1899 cluster-sz: falkordbUser
1900 - key: falkordbPassword
1901 description: Choose a default password for your database
1902 name: FalkorDB Password
1903 type: Password
1904 modifiable: false
1905 required: true
1906 export: false
1907 parameterDependencyMap:
1908 cluster-sz: falkordbPassword
1909 - key: RDBPersistenceConfig
1910 description: How often to save the RDB file to disk. Check the documentation for more information.
1911 name: RDB Persistence Config
1912 type: String
1913 modifiable: false
1914 required: false
1915 export: true
1916 defaultValue: "low"
1917 options:
1918 - "low"
1919 - "medium"
1920 - "high"
1921 parameterDependencyMap:
1922 cluster-sz: RDBPersistenceConfig
1923 - key: AOFPersistenceConfig
1924 description: Whether to enable AOF persistence. Check the documentation for more information.
1925 name: AOF Persistence Config
1926 type: String
1927 modifiable: false
1928 required: false
1929 export: true
1930 defaultValue: "everysec"
1931 options:
1932 - "everysec"
1933 - "always"
1934 parameterDependencyMap:
1935 cluster-sz: AOFPersistenceConfig
1936 - key: falkorDBCacheSize
1937 description: Choose the cache size for your database
1938 name: FalkorDB Cache Size
1939 type: Float64
1940 modifiable: false
1941 required: false
1942 export: true
1943 defaultValue: "25"
1944 min: 0
1945 max: 256
1946 parameterDependencyMap:
1947 cluster-sz: falkorDBCacheSize
1948 - key: falkorDBNodeCreationBuffer
1949 description: Choose the buffer size for your database
1950 name: FalkorDB Node Creation Buffer
1951 type: Float64
1952 modifiable: false
1953 required: false
1954 export: true
1955 defaultValue: "16384"
1956 min: 256
1957 max: 32768
1958 parameterDependencyMap:
1959 cluster-sz: falkorDBNodeCreationBuffer
1960 - key: falkorDBMaxQueuedQueries
1961 description: Choose the max queued queries for your database
1962 name: FalkorDB Max Queued Queries
1963 type: Float64
1964 modifiable: false
1965 required: false
1966 export: true
1967 defaultValue: "50"
1968 min: 0
1969 max: 512
1970 parameterDependencyMap:
1971 cluster-sz: falkorDBMaxQueuedQueries
1972 - key: falkorDBTimeoutMax
1973 description: Choose the timeout max for your database
1974 name: FalkorDB Timeout Max
1975 type: Float64
1976 modifiable: false
1977 required: false
1978 export: true
1979 defaultValue: "0"
1980 min: 0
1981 max: 45000
1982 parameterDependencyMap:
1983 cluster-sz: falkorDBTimeoutMax
1984 - key: falkorDBTimeoutDefault
1985 description: Choose the timeout default for your database
1986 name: FalkorDB Timeout Default
1987 type: Float64
1988 modifiable: false
1989 required: false
1990 export: true
1991 defaultValue: "0"
1992 min: 0
1993 max: 45000
1994 parameterDependencyMap:
1995 cluster-sz: falkorDBTimeoutDefault
1996 - key: falkorDBResultSetSize
1997 description: Choose the result set size for your database
1998 name: FalkorDB Result Set Size
1999 type: Float64
2000 modifiable: false
2001 required: false
2002 export: true
2003 defaultValue: "10000"
2004 min: 0
2005 max: 1000000
2006 parameterDependencyMap:
2007 cluster-sz: falkorDBResultSetSize
2008 - key: falkorDBQueryMemCapacity
2009 description: Choose the query mem capacity for your database
2010 name: FalkorDB Query Mem Capacity
2011 type: Float64
2012 modifiable: false
2013 required: false
2014 export: true
2015 defaultValue: "0"
2016 min: 0
2017 max: 2000000000
2018 parameterDependencyMap:
2019 cluster-sz: falkorDBQueryMemCapacity
2020 x-omnistrate-capabilities:
2021 backupConfiguration:
2022 backupRetentionInDays: 7
2023 backupPeriodInHours: 12
2024 depends_on:
2025 - cluster-sz
2026 - cluster-sz-rebalance
2027
2028
2029 cluster-sz:
2030 x-omnistrate-mode-internal: true
2031 image: $FalkorDBClusterImage
2032 x-omnistrate-compute:
2033 replicaCount: 6
2034 instanceTypes:
2035 - cloudProvider: gcp
2036 apiParam: nodeInstanceType
2037 <<: *clusterparam
2038 volumes:
2039 - source: ./data
2040 target: /data
2041 type: bind
2042 x-omnistrate-storage:
2043 gcp:
2044 instanceStorageType: GCP::PD_BALANCED
2045 instanceStorageSizeGi: 200
2046 aws:
2047 instanceStorageType: AWS::EBS_GP3
2048 instanceStorageSizeGi: 200
2049 secrets:
2050 - source: adminpasspath
2051 target: /run/secrets/adminpassword
2052 - source: falkordbpasspath
2053 target: /run/secrets/falkordbpassword
2054 environment:
2055 - RUN_NODE=1
2056 - RUN_METRICS=1
2057 - RUN_HEALTH_CHECK=1
2058 - BROWSER=0
2059 - NODE_HOST=$sys.network.node.externalEndpoint
2060 - TLS=$var.enableTLS
2061 - FALKORDB_USER=$var.falkordbUser
2062 - DATA_DIR=/data
2063 - INSTANCE_TYPE=$var.nodeInstanceType
2064 - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
2065 - PERSISTENCE_RDB_CONFIG_INPUT=$var.RDBPersistenceConfig
2066 - PERSISTENCE_AOF_CONFIG=$var.AOFPersistenceConfig
2067 - FALKORDB_CACHE_SIZE=$var.falkorDBCacheSize
2068 - FALKORDB_NODE_CREATION_BUFFER=$var.falkorDBNodeCreationBuffer
2069 - FALKORDB_MAX_QUEUED_QUERIES=$var.falkorDBMaxQueuedQueries
2070 - FALKORDB_TIMEOUT_MAX=$var.falkorDBTimeoutMax
2071 - FALKORDB_TIMEOUT_DEFAULT=$var.falkorDBTimeoutDefault
2072 - FALKORDB_RESULT_SET_SIZE=$var.falkorDBResultSetSize
2073 - FALKORDB_QUERY_MEM_CAPACITY=$var.falkorDBQueryMemCapacity
2074 - CLUSTER_REPLICAS=1
2075 ports:
2076 - "6379"
2077 - "16379"
2078 x-omnistrate-capabilities:
2079 enableMultiZone: false
2080 enableEndpointPerReplica: true
2081 x-omnistrate-actionhooks:
2082 - scope: NODE
2083 type: HEALTH_CHECK
2084 commandTemplate: |
2085 #!/bin/bash
2086
2087 HEALTH_CHECK_URL="${HEALTH_CHECK_HOST:-localhost}:${HEALTH_CHECK_PORT:-8081}/healthcheck"
2088
2089 call_health_check() {
2090
2091 echo "Health check URL: $HEALTH_CHECK_URL"
2092 curl -sf $HEALTH_CHECK_URL
2093
2094 if [ $? -ne 0 ]; then
2095 echo "Health check failed"
2096 exit 1
2097 fi
2098 }
2099
2100 if [[ ! -z RUN_HEALTH_CHECK ]] && [[ $RUN_HEALTH_CHECK -eq 1 ]];then
2101 call_health_check
2102 fi
2103 cluster-sz-rebalance:
2104 x-omnistrate-mode-internal: true
2105 image: $FalkorDBClusterRebalanceImage
2106 x-omnistrate-capabilities:
2107 networkType: INTERNAL
2108 x-omnistrate-compute:
2109 replicaCount: 1
2110 instanceTypes:
2111 - cloudProvider: gcp
2112 name: e2-small
2113 <<: *rebalanceparam
2114 environment:
2115 - IS_MULTI_ZONE=0
2116 - TLS=$var.enableTLS
2117 - CLUSTER_REPLICAS=1
2118 - NODE_PORT=6379
2119 - DEBUG=0
2120 - REDIS_EXPORTER_DEBUG=false
2121 secrets:
2122 - source: adminpasspath
2123 target: /run/secrets/adminpassword
2124 x-omnistrate-actionhooks:
2125 - scope: NODE
2126 type: HEALTH_CHECK
2127 commandTemplate: |
2128 #!/bin/bash
2129
2130 HEALTH_CHECK_URL="${HEALTH_CHECK_HOST:-localhost}:${HEALTH_CHECK_PORT:-8081}/healthcheck"
2131
2132 call_health_check() {
2133
2134 echo "Health check URL: $HEALTH_CHECK_URL"
2135 curl -sf $HEALTH_CHECK_URL
2136
2137 if [ $? -ne 0 ]; then
2138 echo "Health check failed"
2139 exit 1
2140 fi
2141 }
2142
2143 if [[ ! -z RUN_HEALTH_CHECK ]] && [[ $RUN_HEALTH_CHECK -eq 1 ]];then
2144 call_health_check
2145 fi
2146
2147 Cluster-Multi-Zone:
2148 x-omnistrate-mode-internal: false
2149 image: omnistrate/noop
2150 x-omnistrate-api-params:
2151 - key: name
2152 description: Name
2153 name: Name
2154 type: String
2155 modifiable: true
2156 required: false
2157 defaultValue: My favorite database
2158 export: true
2159 - key: description
2160 description: Description
2161 name: Description
2162 type: String
2163 modifiable: true
2164 required: false
2165 defaultValue: Description
2166 export: true
2167 - key: nodeInstanceType
2168 description: The size of the node instance. Check the documentation for more information.
2169 name: Node Instance Type
2170 type: String
2171 modifiable: true
2172 required: true
2173 export: true
2174 defaultValue: e2-custom-4-8192
2175 options:
2176 - e2-medium
2177 - e2-custom-4-8192
2178 - e2-custom-8-16384
2179 - e2-custom-16-32768
2180 - e2-custom-32-65536
2181 - t2.medium
2182 - c6i.xlarge
2183 - c6i.2xlarge
2184 - c6i.4xlarge
2185 - c6i.8xlarge
2186 parameterDependencyMap:
2187 cluster-mz: nodeInstanceType
2188 - key: enableTLS
2189 description: Whether to enable TLS for the database
2190 name: Enable TLS
2191 type: Boolean
2192 modifiable: false
2193 required: true
2194 export: true
2195 defaultValue: "false"
2196 parameterDependencyMap:
2197 cluster-mz: enableTLS
2198 cluster-mz-rebalance: enableTLS
2199 - key: falkordbUser
2200 description: Choose a default username for your database
2201 name: FalkorDB User
2202 type: String
2203 modifiable: false
2204 required: true
2205 export: true
2206 defaultValue: "falkordb"
2207 parameterDependencyMap:
2208 cluster-mz: falkordbUser
2209 - key: falkordbPassword
2210 description: Choose a default password for your database
2211 name: FalkorDB Password
2212 type: Password
2213 modifiable: false
2214 required: true
2215 export: false
2216 parameterDependencyMap:
2217 cluster-mz: falkordbPassword
2218 - key: RDBPersistenceConfig
2219 description: How often to save the RDB file to disk. Check the documentation for more information.
2220 name: RDB Persistence Config
2221 type: String
2222 modifiable: false
2223 required: false
2224 export: true
2225 defaultValue: "low"
2226 options:
2227 - "low"
2228 - "medium"
2229 - "high"
2230 parameterDependencyMap:
2231 cluster-mz: RDBPersistenceConfig
2232 - key: AOFPersistenceConfig
2233 description: Whether to enable AOF persistence. Check the documentation for more information.
2234 name: AOF Persistence Config
2235 type: String
2236 modifiable: false
2237 required: false
2238 export: true
2239 defaultValue: "everysec"
2240 options:
2241 - "everysec"
2242 - "always"
2243 parameterDependencyMap:
2244 cluster-mz: AOFPersistenceConfig
2245 - key: falkorDBCacheSize
2246 description: Choose the cache size for your database
2247 name: FalkorDB Cache Size
2248 type: Float64
2249 modifiable: false
2250 required: false
2251 export: true
2252 defaultValue: "25"
2253 min: 0
2254 max: 256
2255 parameterDependencyMap:
2256 cluster-mz: falkorDBCacheSize
2257 - key: falkorDBNodeCreationBuffer
2258 description: Choose the buffer size for your database
2259 name: FalkorDB Node Creation Buffer
2260 type: Float64
2261 modifiable: false
2262 required: false
2263 export: true
2264 defaultValue: "16384"
2265 min: 256
2266 max: 32768
2267 parameterDependencyMap:
2268 cluster-mz: falkorDBNodeCreationBuffer
2269 - key: falkorDBMaxQueuedQueries
2270 description: Choose the max queued queries for your database
2271 name: FalkorDB Max Queued Queries
2272 type: Float64
2273 modifiable: false
2274 required: false
2275 export: true
2276 defaultValue: "50"
2277 min: 0
2278 max: 512
2279 parameterDependencyMap:
2280 cluster-mz: falkorDBMaxQueuedQueries
2281 - key: falkorDBTimeoutMax
2282 description: Choose the timeout max for your database
2283 name: FalkorDB Timeout Max
2284 type: Float64
2285 modifiable: false
2286 required: false
2287 export: true
2288 defaultValue: "0"
2289 min: 0
2290 max: 45000
2291 parameterDependencyMap:
2292 cluster-mz: falkorDBTimeoutMax
2293 - key: falkorDBTimeoutDefault
2294 description: Choose the timeout default for your database
2295 name: FalkorDB Timeout Default
2296 type: Float64
2297 modifiable: false
2298 required: false
2299 export: true
2300 defaultValue: "0"
2301 min: 0
2302 max: 45000
2303 parameterDependencyMap:
2304 cluster-mz: falkorDBTimeoutDefault
2305 - key: falkorDBResultSetSize
2306 description: Choose the result set size for your database
2307 name: FalkorDB Result Set Size
2308 type: Float64
2309 modifiable: false
2310 required: false
2311 export: true
2312 defaultValue: "10000"
2313 min: 0
2314 max: 1000000
2315 parameterDependencyMap:
2316 cluster-mz: falkorDBResultSetSize
2317 - key: falkorDBQueryMemCapacity
2318 description: Choose the query mem capacity for your database
2319 name: FalkorDB Query Mem Capacity
2320 type: Float64
2321 modifiable: false
2322 required: false
2323 export: true
2324 defaultValue: "0"
2325 min: 0
2326 max: 2000000000
2327 parameterDependencyMap:
2328 cluster-mz: falkorDBQueryMemCapacity
2329 x-omnistrate-capabilities:
2330 backupConfiguration:
2331 backupRetentionInDays: 7
2332 backupPeriodInHours: 12
2333 depends_on:
2334 - cluster-mz
2335 - cluster-mz-rebalance
2336
2337 cluster-mz:
2338 x-omnistrate-mode-internal: true
2339 image: $FalkorDBClusterImage
2340 x-omnistrate-compute:
2341 replicaCount: 6
2342 instanceTypes:
2343 - cloudProvider: gcp
2344 apiParam: nodeInstanceType
2345 <<: *clusterparam
2346 volumes:
2347 - source: ./data
2348 target: /data
2349 type: bind
2350 x-omnistrate-storage:
2351 gcp:
2352 instanceStorageType: GCP::PD_BALANCED
2353 instanceStorageSizeGi: 200
2354 aws:
2355 instanceStorageType: AWS::EBS_GP3
2356 instanceStorageSizeGi: 200
2357 secrets:
2358 - source: adminpasspath
2359 target: /run/secrets/adminpassword
2360 - source: falkordbpasspath
2361 target: /run/secrets/falkordbpassword
2362 environment:
2363 - RUN_NODE=1
2364 - RUN_METRICS=1
2365 - RUN_HEALTH_CHECK=1
2366 - BROWSER=0
2367 - NODE_HOST=$sys.network.node.externalEndpoint
2368 - TLS=$var.enableTLS
2369 - FALKORDB_USER=$var.falkordbUser
2370 - DATA_DIR=/data
2371 - INSTANCE_TYPE=$var.nodeInstanceType
2372 - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
2373 - PERSISTENCE_RDB_CONFIG_INPUT=$var.RDBPersistenceConfig
2374 - PERSISTENCE_AOF_CONFIG=$var.AOFPersistenceConfig
2375 - FALKORDB_CACHE_SIZE=$var.falkorDBCacheSize
2376 - FALKORDB_NODE_CREATION_BUFFER=$var.falkorDBNodeCreationBuffer
2377 - FALKORDB_MAX_QUEUED_QUERIES=$var.falkorDBMaxQueuedQueries
2378 - FALKORDB_TIMEOUT_MAX=$var.falkorDBTimeoutMax
2379 - FALKORDB_TIMEOUT_DEFAULT=$var.falkorDBTimeoutDefault
2380 - FALKORDB_RESULT_SET_SIZE=$var.falkorDBResultSetSize
2381 - FALKORDB_QUERY_MEM_CAPACITY=$var.falkorDBQueryMemCapacity
2382 - CLUSTER_REPLICAS=1
2383 ports:
2384 - "6379"
2385 - "16379"
2386 x-omnistrate-capabilities:
2387 enableMultiZone: true
2388 enableEndpointPerReplica: true
2389 x-omnistrate-actionhooks:
2390 - scope: NODE
2391 type: HEALTH_CHECK
2392 commandTemplate: |
2393 #!/bin/bash
2394
2395 HEALTH_CHECK_URL="${HEALTH_CHECK_HOST:-localhost}:${HEALTH_CHECK_PORT:-8081}/healthcheck"
2396
2397 call_health_check() {
2398
2399 echo "Health check URL: $HEALTH_CHECK_URL"
2400 curl -sf $HEALTH_CHECK_URL
2401
2402 if [ $? -ne 0 ]; then
2403 echo "Health check failed"
2404 exit 1
2405 fi
2406 }
2407
2408 if [[ ! -z RUN_HEALTH_CHECK ]] && [[ $RUN_HEALTH_CHECK -eq 1 ]];then
2409 call_health_check
2410 fi
2411
2412 cluster-mz-rebalance:
2413 x-omnistrate-mode-internal: true
2414 image: $FalkorDBClusterRebalanceImage
2415 x-omnistrate-capabilities:
2416 networkType: INTERNAL
2417 x-omnistrate-compute:
2418 replicaCount: 1
2419 instanceTypes:
2420 - cloudProvider: gcp
2421 name: e2-small
2422 <<: *rebalanceparam
2423 environment:
2424 - IS_MULTI_ZONE=1
2425 - TLS=$var.enableTLS
2426 - CLUSTER_REPLICAS=1
2427 - NODE_PORT=6379
2428 - DEBUG=0
2429 - REDIS_EXPORTER_DEBUG=false
2430 secrets:
2431 - source: adminpasspath
2432 target: /run/secrets/adminpassword
2433 x-omnistrate-actionhooks:
2434 - scope: NODE
2435 type: HEALTH_CHECK
2436 commandTemplate: |
2437 #!/bin/bash
2438
2439 HEALTH_CHECK_URL="${HEALTH_CHECK_HOST:-localhost}:${HEALTH_CHECK_PORT:-8081}/healthcheck"
2440
2441 call_health_check() {
2442
2443 echo "Health check URL: $HEALTH_CHECK_URL"
2444 curl -sf $HEALTH_CHECK_URL
2445
2446 if [ $? -ne 0 ]; then
2447 echo "Health check failed"
2448 exit 1
2449 fi
2450 }
2451
2452 if [[ ! -z RUN_HEALTH_CHECK ]] && [[ $RUN_HEALTH_CHECK -eq 1 ]];then
2453 call_health_check
2454 fi
2455secrets:
2456 adminpasspath:
2457 file: ./secrets/adminpassword
2458 falkordbpasspath:
2459 file: ./secrets/falkordbpassword