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
+36-12Lines changed: 36 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1491,7 +1491,8 @@ Use [obtain-oidc-id-token](https://github.com/codefresh-io/steps/blob/822afc0a9a
1491
1491
1492
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.
1493
1493
1494
-
> ℹ️ 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.
1495
1496
1496
1497
### Index alignment
1497
1498
@@ -1500,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.
1505
-
1506
-
The directory structure is:
1506
+
The indexes specifications are stored in JSON files. The directory structure is:
1507
1507
1508
1508
```console
1509
1509
indexes
@@ -1514,11 +1514,12 @@ indexes
1514
1514
**Overview of the index alignment process:**
1515
1515
1516
1516
1. Identify the differences between the indexes in your MongoDB instance and the required index definitions.
1517
-
2. Create any missing indexes one by one. (It's important not to create them in bulk.)
1517
+
2. Create any missing indexes.
1518
1518
3. Perform the upgrade of Codefresh On-Prem installation.
1519
1519
4. Then remove any unnecessary indexes.
1520
1520
1521
-
> ⚠️ **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.**
1522
1523
>
1523
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.
1544
1545
1545
1546
**Index creation**
1546
1547
1547
-
> ⚠ **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/)):
1548
1549
1549
-
- 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.
1568
1582
1569
-
> ⚠️ **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/))
1570
1585
1571
1586
## Upgrading
1572
1587
@@ -2374,6 +2389,15 @@ For built-in RabbitMQ `bitnami/rabbitmq` subchart, pre-upgrade hook was added to
2374
2389
2375
2390
- `.Values.runner`is removed
2376
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
+
2377
2401
## Troubleshooting
2378
2402
2379
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
+36-12Lines changed: 36 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1499,7 +1499,8 @@ Use [obtain-oidc-id-token](https://github.com/codefresh-io/steps/blob/822afc0a9a
1499
1499
1500
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.
1501
1501
1502
-
> ℹ️ 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.
1503
1504
1504
1505
### Index alignment
1505
1506
@@ -1508,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.
1513
-
1514
-
The directory structure is:
1514
+
The indexes specifications are stored in JSON files. The directory structure is:
1515
1515
1516
1516
```console
1517
1517
indexes
@@ -1522,11 +1522,12 @@ indexes
1522
1522
**Overview of the index alignment process:**
1523
1523
1524
1524
1. Identify the differences between the indexes in your MongoDB instance and the required index definitions.
1525
-
2. Create any missing indexes one by one. (It's important not to create them in bulk.)
1525
+
2. Create any missing indexes.
1526
1526
3. Perform the upgrade of Codefresh On-Prem installation.
1527
1527
4. Then remove any unnecessary indexes.
1528
1528
1529
-
> ⚠️ **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.**
1530
1531
>
1531
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.
1553
1554
1554
1555
**Index creation**
1555
1556
1556
-
> ⚠ **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/)):
1557
1558
1558
-
- 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.
1577
1591
1578
-
> ⚠️ **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/))
1579
1594
1580
1595
## Upgrading
1581
1596
@@ -2384,6 +2399,15 @@ For built-in RabbitMQ `bitnami/rabbitmq` subchart, pre-upgrade hook was added to
2384
2399
2385
2400
- `.Values.runner` is removed
2386
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