Skip to content

Commit fede151

Browse files
authored
Merge pull request #70 from linuxfoundation/asherman/nats-replicas
fix: add replicas configuration for KV buckets
2 parents 9623516 + d13b9dc commit fede151

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

charts/lfx-v1-sync-helper/templates/nats-resources.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ spec:
1717
storage: {{ .Values.natsResources.kv_bucket_v1_objects.storage }}
1818
maxValueSize: {{ .Values.natsResources.kv_bucket_v1_objects.maxValueSize }}
1919
maxBytes: {{ .Values.natsResources.kv_bucket_v1_objects.maxBytes }}
20+
replicas: {{ .Values.natsResources.kv_bucket_v1_objects.replicas }}
2021
compression: {{ .Values.natsResources.kv_bucket_v1_objects.compression }}
2122
{{- end }}
2223
---
@@ -36,6 +37,7 @@ spec:
3637
storage: {{ .Values.natsResources.kv_bucket_v1_mappings.storage }}
3738
maxValueSize: {{ .Values.natsResources.kv_bucket_v1_mappings.maxValueSize }}
3839
maxBytes: {{ .Values.natsResources.kv_bucket_v1_mappings.maxBytes }}
40+
replicas: {{ .Values.natsResources.kv_bucket_v1_mappings.replicas }}
3941
compression: {{ .Values.natsResources.kv_bucket_v1_mappings.compression }}
4042
{{- end }}
4143
---
@@ -55,6 +57,7 @@ spec:
5557
storage: {{ .Values.natsResources.kv_bucket_dynamodb_checkpoints.storage }}
5658
maxValueSize: {{ .Values.natsResources.kv_bucket_dynamodb_checkpoints.maxValueSize }}
5759
maxBytes: {{ .Values.natsResources.kv_bucket_dynamodb_checkpoints.maxBytes }}
60+
replicas: {{ .Values.natsResources.kv_bucket_dynamodb_checkpoints.replicas }}
5861
compression: {{ .Values.natsResources.kv_bucket_dynamodb_checkpoints.compression }}
5962
{{- end }}
6063
---

charts/lfx-v1-sync-helper/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ natsResources:
3333
maxValueSize: 10485760 # 10MB
3434
# maxBytes is the maximum number of bytes in the KV bucket
3535
maxBytes: 10737418240 # 10GB
36+
# replicas is the number of replicas for the KV bucket (1 for single instance)
37+
replicas: 1
3638
# compression is a boolean to determine if the KV bucket should be compressed
3739
compression: true
3840

@@ -54,6 +56,8 @@ natsResources:
5456
maxValueSize: 10485760 # 10MB
5557
# maxBytes is the maximum number of bytes in the KV bucket
5658
maxBytes: 2147483648 # 2GB
59+
# replicas is the number of replicas for the KV bucket (1 for single instance)
60+
replicas: 1
5761
# compression is a boolean to determine if the KV bucket should be compressed
5862
compression: true
5963

@@ -74,6 +78,8 @@ natsResources:
7478
maxValueSize: 1024
7579
# maxBytes is the maximum number of bytes in the KV bucket (-1 for unlimited)
7680
maxBytes: -1
81+
# replicas is the number of replicas for the KV bucket (1 for single instance)
82+
replicas: 1
7783
# compression is a boolean to determine if the KV bucket should be compressed
7884
compression: false
7985

0 commit comments

Comments
 (0)