You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-19Lines changed: 57 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,14 +204,21 @@ helm show values codefresh/codefresh
204
204
205
205
### Persistent services
206
206
207
-
The following table displays the list of **persistent** services created as part of the on-premises installation:
207
+
Codefresh relies on several persistent services to store its data:
208
208
209
-
| Database | Purpose | Required version |
210
-
| :--- | :---- | :--- |
211
-
| MongoDB | Stores all account data (account settings, users, projects, pipelines, builds etc.) | 7.x |
212
-
| Postgresql | Stores data about events for the account (pipeline updates, deletes, etc.). The audit log uses the data from this database. | 16.x or 17.x |
213
-
| Redis | Used for caching, and as a key-value store for cron trigger manager. | 7.0.x |
214
-
| RabbitMQ | Used for message queueing. | 3.13 \| 4.0.x |
209
+
- **MongoDB**: Stores all account data (account settings, users, projects, pipelines, builds etc.)
210
+
- **PostgreSQL**: Stores data about events for the account (pipeline updates, deletes, etc.). The audit log uses the data from this database.
211
+
- **Redis**: Used for caching, and as a key-value store for cron trigger manager.
212
+
- **RabbitMQ**: Used for message queueing.
213
+
214
+
The following table reflects the recommended and supported versions of these databases for different Codefresh releases:
> Running on netfs (nfs, cifs) is not recommended.
217
224
@@ -1484,7 +1491,8 @@ Use [obtain-oidc-id-token](https://github.com/codefresh-io/steps/blob/822afc0a9a
1484
1491
1485
1492
Sometimes, in new releases of Codefresh On-Prem, index requirements change. When this happens, it's mentioned in the [Upgrading section](#upgrading) for the specific release.
1486
1493
1487
-
> ℹ️ If you're upgrading from version `X` to version `Y`, and index requirements were updated in any of the intermediate versions, you only need to align your indexes with the index requirements of version `Y`. To do that, follow [Index alignment](#index-alignment) instructions.
1494
+
> [!TIP]
1495
+
> If you're upgrading from version `X` to version `Y`, and index requirements were updated in any of the intermediate versions, you only need to align your indexes with the index requirements of version `Y`. To do that, follow [Index alignment](#index-alignment) instructions.
1488
1496
1489
1497
### Index alignment
1490
1498
@@ -1493,10 +1501,9 @@ The required index definitions for each release can be found at the following re
The indexes are stored in JSON files with keys and options specified.
1498
-
1499
-
The directory structure is:
1506
+
The indexes specifications are stored in JSON files. The directory structure is:
1500
1507
1501
1508
```console
1502
1509
indexes
@@ -1507,11 +1514,12 @@ indexes
1507
1514
**Overview of the index alignment process:**
1508
1515
1509
1516
1. Identify the differences between the indexes in your MongoDB instance and the required index definitions.
1510
-
2. Create any missing indexes one by one. (It's important not to create them in bulk.)
1517
+
2. Create any missing indexes.
1511
1518
3. Perform the upgrade of Codefresh On-Prem installation.
1512
1519
4. Then remove any unnecessary indexes.
1513
1520
1514
-
> ⚠️ **Note! Any changes to indexes should be performed during a defined maintenance window or during periods of lowest traffic to MongoDB.**
1521
+
> [!IMPORTANT]
1522
+
> Any changes to indexes should be performed during a defined maintenance window or during periods of lowest traffic to MongoDB.**
1515
1523
>
1516
1524
> Building indexes during time periods where the target collection is under heavy write load can result in reduced write performance and longer index builds. ([*Source: MongoDB official documentation*](https://www.mongodb.com/docs/manual/core/index-creation/#index-build-impact-on-database-performance))
- Compare your indexes with the required indexes for the target release, and adjust them by creating any missing indexes or removing any unnecessary ones
1544
+
- Compare your indexes with the required indexes for the target release, and adjust them by creating any missing indexes or removing any unnecessary ones.
1537
1545
1538
1546
**Index creation**
1539
1547
1540
-
> ⚠ **Note! Always create indexes sequentially, one by one. Don't create them in bulk.**
1548
+
- To create an indexes, we recommend using the `createIndexes` command ([ref](https://www.mongodb.com/docs/manual/reference/command/createIndexes/)):
1541
1549
1542
-
- To create an index, use the `createIndex()` method:
1550
+
> [!IMPORTANT]
1551
+
> We recommend to create indexes in batches of 3 indexes at a time.
1552
+
> However, it's highly recommended before creating indexes in production DB to test performance impact on a staging instance with prod-like amount of data.
1553
+
>
1554
+
> Previous command should be completed before starting the next batch.
If you're hosting MongoDB on [Atlas](https://www.mongodb.com/atlas/database), use the following [Manage Indexes](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/) guide to View, Create or Remove indexes.
1561
1582
1562
-
> ⚠️ **Important!** In Atlas, for production environments, it is recommended to use rolling index builds by enabling the "Build index via rolling process" checkbox. ([*MongoDB official documentation*](https://www.mongodb.com/docs/v6.0/tutorial/build-indexes-on-replica-sets/))
1583
+
> [!IMPORTANT]
1584
+
> In Atlas, for production environments, it may be recommended to use rolling index builds by enabling the "Build index via rolling process" checkbox. ([*MongoDB official documentation*](https://www.mongodb.com/docs/v7.0/tutorial/build-indexes-on-replica-sets/))
1563
1585
1564
1586
## Upgrading
1565
1587
@@ -2356,10 +2378,26 @@ For built-in RabbitMQ `bitnami/rabbitmq` subchart, pre-upgrade hook was added to
2356
2378
2357
2379
### To 2-9-0
2358
2380
2381
+
> [!WARNING]
2382
+
> **BREAKING CHANGES**
2383
+
>
2384
+
> Default DinD image has been upgraded to 28.x, which removes support for pushing and pulling with legacy image manifest v2 schema 1 ([ref](https://docs.docker.com/engine/deprecated/#pushing-and-pulling-with-image-manifest-v2-schema-1)).
2385
+
>
2386
+
> Before upgrading Codefresh, please follow the instruction in [this doc](https://codefresh.io/docs/docs/kb/articles/upgrade-deprecated-docker-images/) to identify deprecated images, upgrade them, and then proceed with upgrading the platform.
2387
+
2359
2388
#### Affected values
2360
2389
2361
2390
- `.Values.runner`is removed
2362
2391
2392
+
#### Changes in MongoDB schema
2393
+
2394
+
Changes in indexes: follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements *before* the upgrade process.
2395
+
2396
+
Changes in collections: following collections can be safely dropped *after* the upgrade to 2.9.x if they exist. These collections are no longer used and should be removed to maintain optimal database performance and prevent the accumulation of obsolete data.
2397
+
2398
+
- `read-models.application-tree`
2399
+
- `read-models.<entity>-history`— every collection with `~-history` suffix, such as `read-models.applications-history`, `read-models.services-history`, etc.
2400
+
2363
2401
## Troubleshooting
2364
2402
2365
2403
### Error: Failed to validate connection to Docker daemon; caused by Error: certificate has expired
Copy file name to clipboardExpand all lines: README.md.gotmpl
+57-19Lines changed: 57 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -205,14 +205,21 @@ helm show values codefresh/codefresh
205
205
206
206
### Persistent services
207
207
208
-
The following table displays the list of **persistent** services created as part of the on-premises installation:
208
+
Codefresh relies on several persistent services to store its data:
209
209
210
-
| Database | Purpose | Required version |
211
-
| :--- | :---- | :--- |
212
-
| MongoDB | Stores all account data (account settings, users, projects, pipelines, builds etc.) | 7.x |
213
-
| Postgresql | Stores data about events for the account (pipeline updates, deletes, etc.). The audit log uses the data from this database. | 16.x or 17.x |
214
-
| Redis | Used for caching, and as a key-value store for cron trigger manager. | 7.0.x |
215
-
| RabbitMQ | Used for message queueing. | 3.13 \| 4.0.x |
210
+
- **MongoDB**: Stores all account data (account settings, users, projects, pipelines, builds etc.)
211
+
- **PostgreSQL**: Stores data about events for the account (pipeline updates, deletes, etc.). The audit log uses the data from this database.
212
+
- **Redis**: Used for caching, and as a key-value store for cron trigger manager.
213
+
- **RabbitMQ**: Used for message queueing.
214
+
215
+
The following table reflects the recommended and supported versions of these databases for different Codefresh releases:
> Running on netfs (nfs, cifs) is not recommended.
218
225
@@ -1492,7 +1499,8 @@ Use [obtain-oidc-id-token](https://github.com/codefresh-io/steps/blob/822afc0a9a
1492
1499
1493
1500
Sometimes, in new releases of Codefresh On-Prem, index requirements change. When this happens, it's mentioned in the [Upgrading section](#upgrading) for the specific release.
1494
1501
1495
-
> ℹ️ If you're upgrading from version `X` to version `Y`, and index requirements were updated in any of the intermediate versions, you only need to align your indexes with the index requirements of version `Y`. To do that, follow [Index alignment](#index-alignment) instructions.
1502
+
> [!TIP]
1503
+
> If you're upgrading from version `X` to version `Y`, and index requirements were updated in any of the intermediate versions, you only need to align your indexes with the index requirements of version `Y`. To do that, follow [Index alignment](#index-alignment) instructions.
1496
1504
1497
1505
### Index alignment
1498
1506
@@ -1501,10 +1509,9 @@ The required index definitions for each release can be found at the following re
The indexes are stored in JSON files with keys and options specified.
1506
-
1507
-
The directory structure is:
1514
+
The indexes specifications are stored in JSON files. The directory structure is:
1508
1515
1509
1516
```console
1510
1517
indexes
@@ -1515,11 +1522,12 @@ indexes
1515
1522
**Overview of the index alignment process:**
1516
1523
1517
1524
1. Identify the differences between the indexes in your MongoDB instance and the required index definitions.
1518
-
2. Create any missing indexes one by one. (It's important not to create them in bulk.)
1525
+
2. Create any missing indexes.
1519
1526
3. Perform the upgrade of Codefresh On-Prem installation.
1520
1527
4. Then remove any unnecessary indexes.
1521
1528
1522
-
> ⚠️ **Note! Any changes to indexes should be performed during a defined maintenance window or during periods of lowest traffic to MongoDB.**
1529
+
> [!IMPORTANT]
1530
+
> Any changes to indexes should be performed during a defined maintenance window or during periods of lowest traffic to MongoDB.**
1523
1531
>
1524
1532
> Building indexes during time periods where the target collection is under heavy write load can result in reduced write performance and longer index builds. ([*Source: MongoDB official documentation*](https://www.mongodb.com/docs/manual/core/index-creation/#index-build-impact-on-database-performance))
- Compare your indexes with the required indexes for the target release, and adjust them by creating any missing indexes or removing any unnecessary ones
1553
+
- Compare your indexes with the required indexes for the target release, and adjust them by creating any missing indexes or removing any unnecessary ones.
1546
1554
1547
1555
**Index creation**
1548
1556
1549
-
> ⚠ **Note! Always create indexes sequentially, one by one. Don't create them in bulk.**
1557
+
- To create an indexes, we recommend using the `createIndexes` command ([ref](https://www.mongodb.com/docs/manual/reference/command/createIndexes/)):
1550
1558
1551
-
- To create an index, use the `createIndex()` method:
1559
+
> [!IMPORTANT]
1560
+
> We recommend to create indexes in batches of 3 indexes at a time.
1561
+
> However, it's highly recommended before creating indexes in production DB to test performance impact on a staging instance with prod-like amount of data.
1562
+
>
1563
+
> Previous command should be completed before starting the next batch.
If you're hosting MongoDB on [Atlas](https://www.mongodb.com/atlas/database), use the following [Manage Indexes](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/) guide to View, Create or Remove indexes.
1570
1591
1571
-
> ⚠️ **Important!** In Atlas, for production environments, it is recommended to use rolling index builds by enabling the "Build index via rolling process" checkbox. ([*MongoDB official documentation*](https://www.mongodb.com/docs/v6.0/tutorial/build-indexes-on-replica-sets/))
1592
+
> [!IMPORTANT]
1593
+
> In Atlas, for production environments, it may be recommended to use rolling index builds by enabling the "Build index via rolling process" checkbox. ([*MongoDB official documentation*](https://www.mongodb.com/docs/v7.0/tutorial/build-indexes-on-replica-sets/))
1572
1594
1573
1595
## Upgrading
1574
1596
@@ -2366,10 +2388,26 @@ For built-in RabbitMQ `bitnami/rabbitmq` subchart, pre-upgrade hook was added to
2366
2388
2367
2389
### To 2-9-0
2368
2390
2391
+
> [!WARNING]
2392
+
> **BREAKING CHANGES**
2393
+
>
2394
+
> Default DinD image has been upgraded to 28.x, which removes support for pushing and pulling with legacy image manifest v2 schema 1 ([ref](https://docs.docker.com/engine/deprecated/#pushing-and-pulling-with-image-manifest-v2-schema-1)).
2395
+
>
2396
+
> Before upgrading Codefresh, please follow the instruction in [this doc](https://codefresh.io/docs/docs/kb/articles/upgrade-deprecated-docker-images/) to identify deprecated images, upgrade them, and then proceed with upgrading the platform.
2397
+
2369
2398
#### Affected values
2370
2399
2371
2400
- `.Values.runner` is removed
2372
2401
2402
+
#### Changes in MongoDB schema
2403
+
2404
+
Changes in indexes: follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements *before* the upgrade process.
2405
+
2406
+
Changes in collections: following collections can be safely dropped *after* the upgrade to 2.9.x if they exist. These collections are no longer used and should be removed to maintain optimal database performance and prevent the accumulation of obsolete data.
2407
+
2408
+
- `read-models.application-tree`
2409
+
- `read-models.<entity>-history` — every collection with `~-history` suffix, such as `read-models.applications-history`, `read-models.services-history`, etc.
0 commit comments