|
1 | 1 | # Managed FerretDB Service |
2 | 2 |
|
| 3 | +FerretDB is an open source MongoDB alternative. |
| 4 | +It translates MongoDB wire protocol queries to SQL and can be used as a direct replacement for MongoDB 5.0+. |
| 5 | +Internally, FerretDB service is backed by Postgres. |
| 6 | + |
3 | 7 | ## Parameters |
4 | 8 |
|
5 | 9 | ### Common parameters |
6 | 10 |
|
7 | | -| Name | Description | Value | |
8 | | -| ------------------------ | ----------------------------------------------------------------------------------------------------------------------- | ------- | |
9 | | -| `external` | Enable external access from outside the cluster | `false` | |
10 | | -| `size` | Persistent Volume size | `10Gi` | |
11 | | -| `replicas` | Number of Postgres replicas | `2` | |
12 | | -| `storageClass` | StorageClass used to store the data | `""` | |
13 | | -| `quorum.minSyncReplicas` | Minimum number of synchronous replicas that must acknowledge a transaction before it is considered committed. | `0` | |
14 | | -| `quorum.maxSyncReplicas` | Maximum number of synchronous replicas that can acknowledge a transaction (must be lower than the number of instances). | `0` | |
| 11 | +| Name | Description | Value | |
| 12 | +| ------------------------ | --------------------------------------------------------------------------------------------------------------------------- | ------- | |
| 13 | +| `external` | Enable external access from outside the cluster | `false` | |
| 14 | +| `size` | Persistent Volume size | `10Gi` | |
| 15 | +| `replicas` | Number of replicas | `2` | |
| 16 | +| `storageClass` | StorageClass used to store the data | `""` | |
| 17 | +| `quorum.minSyncReplicas` | Minimum number of synchronous replicas that must acknowledge a transaction before it is considered committed | `0` | |
| 18 | +| `quorum.maxSyncReplicas` | Maximum number of synchronous replicas that can acknowledge a transaction (must be lower than the total number of replicas) | `0` | |
15 | 19 |
|
16 | 20 | ### Configuration parameters |
17 | 21 |
|
|
21 | 25 |
|
22 | 26 | ### Backup parameters |
23 | 27 |
|
24 | | -| Name | Description | Value | |
25 | | -| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------ | |
26 | | -| `backup.enabled` | Enable pereiodic backups | `false` | |
27 | | -| `backup.s3Region` | The AWS S3 region where backups are stored | `us-east-1` | |
28 | | -| `backup.s3Bucket` | The S3 bucket used for storing backups | `s3.example.org/postgres-backups` | |
29 | | -| `backup.schedule` | Cron schedule for automated backups | `0 2 * * *` | |
30 | | -| `backup.cleanupStrategy` | The strategy for cleaning up old backups | `--keep-last=3 --keep-daily=3 --keep-within-weekly=1m` | |
31 | | -| `backup.s3AccessKey` | The access key for S3, used for authentication | `oobaiRus9pah8PhohL1ThaeTa4UVa7gu` | |
32 | | -| `backup.s3SecretKey` | The secret key for S3, used for authentication | `ju3eum4dekeich9ahM1te8waeGai0oog` | |
33 | | -| `backup.resticPassword` | The password for Restic backup encryption | `ChaXoveekoh6eigh4siesheeda2quai0` | |
34 | | -| `resources` | Resources | `{}` | |
35 | | -| `resourcesPreset` | Use a common resources preset when `resources` is not set explicitly. (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge) | `nano` | |
| 28 | +| Name | Description | Value | |
| 29 | +| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | |
| 30 | +| `backup.enabled` | Enable periodic backups | `false` | |
| 31 | +| `backup.s3Region` | The AWS S3 region where backups are stored | `us-east-1` | |
| 32 | +| `backup.s3Bucket` | The S3 bucket used for storing backups | `s3.example.org/postgres-backups` | |
| 33 | +| `backup.schedule` | Cron schedule for automated backups | `0 2 * * *` | |
| 34 | +| `backup.cleanupStrategy` | The strategy for cleaning up old backups | `--keep-last=3 --keep-daily=3 --keep-within-weekly=1m` | |
| 35 | +| `backup.s3AccessKey` | The access key for S3, used for authentication | `oobaiRus9pah8PhohL1ThaeTa4UVa7gu` | |
| 36 | +| `backup.s3SecretKey` | The secret key for S3, used for authentication | `ju3eum4dekeich9ahM1te8waeGai0oog` | |
| 37 | +| `backup.resticPassword` | The password for Restic backup encryption | `ChaXoveekoh6eigh4siesheeda2quai0` | |
| 38 | +| `resources` | Explicit CPU and memory configuration for each FerretDB replica. When left empty, the preset defined in `resourcesPreset` is applied. | `{}` | |
| 39 | +| `resourcesPreset` | Default sizing preset used when `resources` is omitted. Allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge. | `nano` | |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +## Parameter examples and reference |
| 44 | + |
| 45 | +### resources and resourcesPreset |
| 46 | + |
| 47 | +`resources` sets explicit CPU and memory configurations for each replica. |
| 48 | +When left empty, the preset defined in `resourcesPreset` is applied. |
| 49 | + |
| 50 | +```yaml |
| 51 | +resources: |
| 52 | + cpu: 4000m |
| 53 | + memory: 4Gi |
| 54 | +``` |
36 | 55 |
|
| 56 | +`resourcesPreset` sets named CPU and memory configurations for each replica. |
| 57 | +This setting is ignored if the corresponding `resources` value is set. |
37 | 58 |
|
| 59 | +| Preset name | CPU | memory | |
| 60 | +|-------------|--------|---------| |
| 61 | +| `nano` | `250m` | `128Mi` | |
| 62 | +| `micro` | `500m` | `256Mi` | |
| 63 | +| `small` | `1` | `512Mi` | |
| 64 | +| `medium` | `1` | `1Gi` | |
| 65 | +| `large` | `2` | `2Gi` | |
| 66 | +| `xlarge` | `4` | `4Gi` | |
| 67 | +| `2xlarge` | `8` | `8Gi` | |
0 commit comments