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: docs/berkeley-upgrade/archive-migration/archive-migration-installation.mdx
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,14 @@ keywords:
7
7
- Berkeley
8
8
- upgrade
9
9
- archive migration
10
-
- installing
10
+
- installing
11
11
- prerequisites
12
12
- mina archive node
13
13
- archive node
14
14
---
15
15
16
16
The archive node Berkeley migration package is sufficient for satisfying the migration from Devnet/Mainnet to Berkeley.
17
-
However, it has some limitations. For example, the migration package does not migrate a non-canonical chain and it skips orphaned blocks that are not part of a canonical chain.
17
+
However, it has some limitations. For example, the migration package does not migrate a non-canonical chain and it skips orphaned blocks that are not part of a canonical chain.
18
18
19
19
To mitigate these limitations, the archive node maintenance package is available for use by archive node operators who want to maintain a copy of their Devnet and Mainnet databases for historical reasons.
20
20
@@ -35,23 +35,23 @@ We strongly encourage you to perform the migration on your own data to preserve
35
35
1. Download the Devnet/Mainnet archive data using cURL or gsutil:
To filter the dumps by date, replace `{date}` using the required `yyyy-dd-mm` format. For example, for March 15, 2024, use `2024-03-15`.
50
-
50
+
51
51
:warning: The majority of backups have the `0000` suffix. If a download with that name suffix is not available, try incrementing it. For example, `0001`, `0002`, and so on.
The database in the dump **archive_balances_migrated** is created with the Devnet/Mainnet archive schema.
74
-
74
+
75
75
Note: This database does not have any Berkeley changes.
76
76
77
77
## Ensure the location of Google Cloud bucket with the Devnet/Mainnet precomputed blocks
@@ -84,17 +84,17 @@ The recommended method is to perform migration on your own data to preserve the
84
84
85
85
## Validate the Devnet/Mainnet database
86
86
87
-
The correct Devnet/Mainnet database state is crucial for a successful migration.
87
+
The correct Devnet/Mainnet database state is crucial for a successful migration.
88
88
89
-
[Missing blocks](/berkeley-upgrade/mainnet-database-maintenance#missing-blocks) is one the most frequent issues when dealing with the Devnet/Mainnet archive. Although this step is optional, it is strongly recommended that you verify the archive condition before you start the migration process.
89
+
[Missing blocks](/berkeley-upgrade/archive-migration/mainnet-database-maintenance#missing-blocks) is one the most frequent issues when dealing with the Devnet/Mainnet archive. Although this step is optional, it is strongly recommended that you verify the archive condition before you start the migration process.
90
90
91
-
To learn how to maintain archive data, see [Devnet/Mainnet database maintenance](/berkeley-upgrade/mainnet-database-maintenance).
91
+
To learn how to maintain archive data, see [Devnet/Mainnet database maintenance](/berkeley-upgrade/archive-migration/mainnet-database-maintenance).
92
92
93
93
## Download the migration applications
94
94
95
95
Migration applications are distributed as part of the archive migration Docker and Debian packages.
96
96
97
-
Choose the packages that are appropriate for your environment.
97
+
Choose the packages that are appropriate for your environment.
@@ -132,9 +132,9 @@ The Mina Devnet/Mainnet genesis ledger is stored in GitHub in the `mina` reposit
132
132
133
133
You can get the Berkeley schema files from different locations:
134
134
135
-
- GitHub repository from the `berkeley` branch.
135
+
- GitHub repository from the `berkeley` branch.
136
136
137
-
Note: The `berkeley` branch can contain new updates regarding schema files, so always get the latest schema files instead of using an already downloaded schema.
137
+
Note: The `berkeley` branch can contain new updates regarding schema files, so always get the latest schema files instead of using an already downloaded schema.
138
138
139
139
- Archive/Rosetta Docker from `berkeley` version
140
140
@@ -148,4 +148,4 @@ You can get the Berkeley schema files from different locations:
148
148
149
149
## Next steps
150
150
151
-
Congratulations on completing the essential preparation and verification steps. You are now ready to perform the migration steps in [Migrating Devnet/Mainnet Archive to Berkeley Archive](/berkeley-upgrade/migrating-archive-database-to-berkeley).
151
+
Congratulations on completing the essential preparation and verification steps. You are now ready to perform the migration steps in [Migrating Devnet/Mainnet Archive to Berkeley Archive](/berkeley-upgrade/archive-migration/migrating-archive-database-to-berkeley).
Copy file name to clipboardExpand all lines: docs/berkeley-upgrade/archive-migration/debian-example.mdx
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Worked example of Devnet Archive Migration
3
-
sidebar_label: Worked example (devnet 2024-03-22)
2
+
title: Example of Devnet Archive Migration (Debian)
3
+
sidebar_label: Debian example (Devnet)
4
4
hide_title: true
5
5
description: A copy-paste example of how to do a Devnet migration.
6
6
keywords:
@@ -11,9 +11,9 @@ keywords:
11
11
- archive node
12
12
---
13
13
14
-
You can follow these steps that can be copy-pasted directly into a fresh Debian 11.
14
+
You can follow these steps that can be copy-pasted directly into a fresh Debian 11.
15
15
16
-
This example uses an altered two-step version of the [full simplified workflow](/berkeley-upgrade/migrating-archive-database-to-berkeley#simplified-approach).
16
+
This example uses an altered two-step version of the [full simplified workflow](/berkeley-upgrade/archive-migration/migrating-archive-database-to-berkeley#simplified-approach).
description: Berkeley upgrade is a major upgrade that requires all nodes in a network to upgrade to a newer version. It is not backward compatible.
6
6
keywords:
@@ -11,26 +11,27 @@ keywords:
11
11
- archive node
12
12
---
13
13
14
-
# Berkeley Upgrade
14
+
# Archive Migration
15
15
16
-
The Berkeley upgrade is a major upgrade that requires all nodes in a network to upgrade to a newer version. It is not backward compatible.
16
+
The Berkeley upgrade is a major upgrade that requires all nodes in a network to upgrade to a newer version. It is not backward compatible.
17
17
18
18
A major upgrade occurs when there are major changes to the core protocol that require all nodes on the network to update to the latest software.
19
19
20
20
## How to prepare for the Berkeley upgrade
21
21
22
-
The Berkeley upgrade requires upgrading all nodes, including archive nodes. One of the required steps is to migrate archive databases from the current Mainnet format to Berkeley. This migration requires actions and efforts from node operators and exchanges.
22
+
The Berkeley upgrade requires upgrading all nodes, including archive nodes. One of the required steps is to migrate archive databases from the current Mainnet format to Berkeley. This migration requires actions and efforts from node operators and exchanges.
23
23
24
24
Learn about the archive data migration:
25
25
26
-
-[Understanding the migration process](/berkeley-upgrade/understanding-archive-migration)
27
-
-[Prerequisites before migration](/berkeley-upgrade/archive-migration-prerequisites)
-[How to perform archive migration](/berkeley-upgrade/archive-migration/migrating-archive-database-to-berkeley)
30
30
31
31
Finally, see the shell script example that is compatible with a stock Debian 11 container:
32
32
33
-
-[Worked example using March 22 data](/berkeley-upgrade/worked-archive-example)
33
+
-[Worked Devnet Debian example using March 22 data](/berkeley-upgrade/archive-migration/debian-example)
34
+
-[Worked Devnet Docker example using April 29 data](/berkeley-upgrade/archive-migration/docker-example)
34
35
35
36
## What will happen with original Devnet/Mainnet data
36
37
@@ -44,4 +45,4 @@ After the migration, you will have two databases:
44
45
45
46
There is no requirement to preserve the original Devnet/Mainnet database after migration. However, if for some reason you want to keep the Mainnet orphaned or non-canonical pending blocks, you can download the archive maintenance package for the Devnet/Mainnet database.
46
47
47
-
To learn about maintaining archive data, see [Devnet/Mainnet database maintenance](/berkeley-upgrade/mainnet-database-maintenance).
48
+
To learn about maintaining archive data, see [Devnet/Mainnet database maintenance](/berkeley-upgrade/archive-migration/mainnet-database-maintenance).
Copy file name to clipboardExpand all lines: docs/berkeley-upgrade/archive-migration/mainnet-database-maintenance.mdx
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ keywords:
7
7
- Berkeley
8
8
- upgrade
9
9
- archive migration
10
-
- planning
10
+
- planning
11
11
- prerequisites
12
12
- mina archive node
13
13
- archive node
@@ -18,7 +18,7 @@ keywords:
18
18
19
19
# Devnet/Mainnet database maintenance
20
20
21
-
After the Berkeley migration, the original Devnet/Mainnet database is not required unless you are interested in
21
+
After the Berkeley migration, the original Devnet/Mainnet database is not required unless you are interested in
22
22
preserving some aspect of the database that is lost during the migration process.
23
23
24
24
Two databases exist after the successful migration:
@@ -31,13 +31,13 @@ Two databases exist after the successful migration:
31
31
- Without pending blocks that are not in the canonical chain
32
32
- With all pending blocks on the canonical chain converted to canonical blocks
33
33
34
-
The o1Labs and Mina Foundation teams have consistently prioritized rigorous testing and the delivery of high-quality software products.
34
+
The o1Labs and Mina Foundation teams have consistently prioritized rigorous testing and the delivery of high-quality software products.
35
35
36
-
However, being human entails the possibility of making mistakes.
36
+
However, being human entails the possibility of making mistakes.
37
37
38
38
## Known issues
39
39
40
-
Recently, a few mistakes were identified while working on a version of Mina used on Mainnet. These issues were promptly addressed; however, within the decentralized environment, archive nodes can retain historical issues despite our best efforts.
40
+
Recently, a few mistakes were identified while working on a version of Mina used on Mainnet. These issues were promptly addressed; however, within the decentralized environment, archive nodes can retain historical issues despite our best efforts.
41
41
42
42
Fixes are available for the following known issues:
43
43
@@ -98,7 +98,7 @@ mina-replayer \
98
98
99
99
where:
100
100
101
-
-`archive-uri` - connection string to the archive database
101
+
-`archive-uri` - connection string to the archive database
102
102
-`input-file` - JSON file that holds the archive database
103
103
-`output-file` - JSON file that will hold the ledger with auxiliary information, like global slot and blockchain height, which will be dumped on the last block
104
104
-`checkpoint-interval` - frequency of checkpoints expressed in blocks count
-`archive-uri` - connection string to the archive database
134
+
-`archive-uri` - connection string to the archive database
135
135
-`input-file` - JSON file that holds the archive database
136
136
-`output-file` - JSON file that will hold the ledger with auxiliary information, like global slot and blockchain height, which will be dumped on the last block
137
137
-`checkpoint-interval` - frequency of checkpoints expressed in blocks count
138
138
-`replayer_input_file.json` - JSON file constructed from the Devnet/Mainnet genesis ledger:
The daemon node unavailability can cause the archive node to miss some of the blocks. This recurring missing blocks issue consistently poses challenges. To address this issue, you can reapply missing blocks.
151
151
152
-
If you uploaded the missing blocks to Google Cloud, the missing blocks can be reapplied from precomputed blocks to preserve chain continuity.
152
+
If you uploaded the missing blocks to Google Cloud, the missing blocks can be reapplied from precomputed blocks to preserve chain continuity.
153
153
154
-
1. To automatically verify and patch missing blocks, use the [download_missing_blocks.sh](https://raw.githubusercontent.com/MinaProtocol/mina/2.0.0berkeley_rc1/src/app/rosetta/download-missing-blocks.sh) script.
154
+
1. To automatically verify and patch missing blocks, use the [download_missing_blocks.sh](https://raw.githubusercontent.com/MinaProtocol/mina/2.0.0berkeley_rc1/src/app/rosetta/download-missing-blocks.sh) script.
155
155
156
156
The `download-missing-blocks` script uses `localhost` as the database host so the script assumes that psql is running on localhost on port 5432. Modify `PG_CONN` in `download_missing_block.sh` for your environment.
157
157
@@ -164,15 +164,15 @@ If you uploaded the missing blocks to Google Cloud, the missing blocks can be re
164
164
```
165
165
166
166
1. Run the `mina-missing-blocks-auditor` script from the database host:
@@ -193,4 +193,4 @@ Note: It's important to highlight that precomputed blocks for **Devnet** between
193
193
194
194
## Next steps
195
195
196
-
Now that you have completed the steps to properly maintain the correctness of the archive database, you are ready to perform the archive [migration process](/berkeley-upgrade/migrating-archive-database-to-berkeley).
196
+
Now that you have completed the steps to properly maintain the correctness of the archive database, you are ready to perform the archive [migration process](/berkeley-upgrade/archive-migration/migrating-archive-database-to-berkeley).
0 commit comments