diff --git a/packages/apps/foundationdb/README.md b/packages/apps/foundationdb/README.md index 4790e054..6b0cb2bc 100644 --- a/packages/apps/foundationdb/README.md +++ b/packages/apps/foundationdb/README.md @@ -22,16 +22,16 @@ This package provides a managed FoundationDB cluster deployment using the Founda ### Basic Configuration ```yaml -# Number of total instances -replicas: 3 - # Cluster process configuration cluster: version: "7.3.63" processCounts: - storage: 3 # Storage processes + storage: 3 # Number of storage processes (determines cluster size) stateless: -1 # Automatically calculated cluster_controller: 1 + faultDomain: + key: "kubernetes.io/hostname" + valueFrom: "spec.nodeName" ``` ### Storage @@ -45,15 +45,13 @@ storage: ### Resources ```yaml +# Use preset sizing +resourcesPreset: "medium" # small, medium, large, xlarge, 2xlarge + +# Or custom resource configuration resources: - preset: "medium" # small, medium, large, xlarge - # Custom overrides - limits: - cpu: "2000m" - memory: "4Gi" - requests: - cpu: "1000m" - memory: "2Gi" + cpu: "2000m" + memory: "4Gi" ``` ### Backup (Optional) @@ -74,16 +72,20 @@ backup: ### Advanced Configuration ```yaml -advanced: - # Custom FoundationDB parameters - customParameters: - - "knob_disable_posix_kernel_aio=1" - - # Image type (split recommended for production) - imageType: "split" - - # Enable automatic pod replacements - automaticReplacements: true +# Custom FoundationDB parameters +customParameters: + - "knob_disable_posix_kernel_aio=1" + +# Image type (unified is default and recommended for new deployments) +imageType: "unified" + +# Enable automatic pod replacements +automaticReplacements: true + +# Security context configuration +securityContext: + runAsUser: 4059 + runAsGroup: 4059 ``` ## Prerequisites @@ -141,11 +143,10 @@ For Cozystack-specific issues, consult the Cozystack documentation or support ch | Name | Description | Type | Value | | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | ------------------------ | -| `replicas` | Number of FoundationDB replicas (total instances) | `int` | `3` | | `cluster` | Cluster configuration | `object` | `{}` | | `cluster.processCounts` | Process counts for different roles | `object` | `{}` | | `cluster.processCounts.stateless` | Number of stateless processes (-1 for automatic) | `int` | `-1` | -| `cluster.processCounts.storage` | Number of storage processes | `int` | `0` | +| `cluster.processCounts.storage` | Number of storage processes (determines cluster size) | `int` | `3` | | `cluster.processCounts.cluster_controller` | Number of cluster controller processes | `int` | `1` | | `cluster.version` | Version of FoundationDB to use | `string` | `7.3.63` | | `cluster.faultDomain` | Fault domain configuration | `object` | `{}` | diff --git a/packages/apps/foundationdb/values.schema.json b/packages/apps/foundationdb/values.schema.json index c2734b69..c1395a6a 100644 --- a/packages/apps/foundationdb/values.schema.json +++ b/packages/apps/foundationdb/values.schema.json @@ -107,7 +107,8 @@ }, "processCounts": { "cluster_controller": 1, - "stateless": -1 + "stateless": -1, + "storage": 3 }, "version": "7.3.63" }, @@ -146,7 +147,8 @@ "type": "object", "default": { "cluster_controller": 1, - "stateless": -1 + "stateless": -1, + "storage": 3 }, "required": [ "cluster_controller", @@ -165,8 +167,9 @@ "default": -1 }, "storage": { - "description": "Number of storage processes", - "type": "integer" + "description": "Number of storage processes (determines cluster size)", + "type": "integer", + "default": 3 } } }, @@ -211,11 +214,6 @@ } } }, - "replicas": { - "description": "Number of FoundationDB replicas (total instances)", - "type": "integer", - "default": 3 - }, "resources": { "description": "Explicit CPU and memory configuration for each FoundationDB instance. When left empty, the preset defined in `resourcesPreset` is applied.", "type": "object", diff --git a/packages/apps/foundationdb/values.yaml b/packages/apps/foundationdb/values.yaml index 4c061409..4c5ccfbd 100644 --- a/packages/apps/foundationdb/values.yaml +++ b/packages/apps/foundationdb/values.yaml @@ -4,13 +4,10 @@ ## @section Common parameters ## -## @param replicas {int} Number of FoundationDB replicas (total instances) -replicas: 3 - ## @param cluster {cluster} Cluster configuration ## @field cluster.processCounts {clusterProcessCounts} Process counts for different roles ## @field clusterProcessCounts.stateless {int} Number of stateless processes (-1 for automatic) -## @field clusterProcessCounts.storage {int} Number of storage processes +## @field clusterProcessCounts.storage {int} Number of storage processes (determines cluster size) ## @field clusterProcessCounts.cluster_controller {int} Number of cluster controller processes ## @field cluster.version {string} Version of FoundationDB to use ## @field cluster.faultDomain {clusterFaultDomain} Fault domain configuration @@ -19,6 +16,7 @@ replicas: 3 cluster: processCounts: stateless: -1 # Automatically calculated + storage: 3 # Number of storage processes (determines cluster size) cluster_controller: 1 version: "7.3.63"