|
| 1 | +[[aura-monitoring]] |
| 2 | += Migration Readiness Report |
| 3 | +:description: This section describes migration readiness report for upgrading from aura 4 to latest. |
| 4 | +:page-aliases: migration-readiness.adoc |
| 5 | + |
| 6 | +[NOTE] |
| 7 | +==== |
| 8 | +The Migration Readiness Report is only available for Instances on Neo4j version 4. |
| 9 | +
|
| 10 | +You can access the report for any version 4 instance via the link through the "Migration recommended" label on the Instance and Console pages. |
| 11 | +==== |
| 12 | + |
| 13 | + |
| 14 | +== Overview |
| 15 | + |
| 16 | +This tool advises how to prepare an AuraDB v4 instance for migration to AuraDB v5. |
| 17 | +It reports current application queries, drivers, and database objects that would prevent you from migrating to AuraDB v5 by providing information based on your recent usage history. |
| 18 | +In addition, you can also see xref:tutorials/upgrade.adoc[Upgrade to Neo4j 5 within Aura] for details on each identified issue and how to address it. |
| 19 | + |
| 20 | +The main categories of issues that the Migration Readiness Report deals with are: |
| 21 | + |
| 22 | +* Cypher deprecations |
| 23 | +* Deprecated driver usage |
| 24 | +* Deprecated index types |
| 25 | + |
| 26 | +The report page has a section for each category and a chart at the top titled "Deprecations and query timeline." |
| 27 | +This document explains each section, but the first is vital to controlling the others and is detailed in the following section. |
| 28 | +Note that the report only highlights issues that need to be addressed to make your code and queries compatible with AuraDB v5. |
| 29 | +Working on these issues presents a good opportunity to learn more about the advantages of the new features in version 5. |
| 30 | +=== Control over the time window |
| 31 | + |
| 32 | +image::mrr-deprecation-query-timeline.png[] |
| 33 | + |
| 34 | +In the "Deprecations and query timeline" section, you will see a chart displaying the usage of deprecated Cypher features and constructs and a general measure of query load on that system (query rate). |
| 35 | +You can disable and enable the data series by clicking on the legend. |
| 36 | +This can be helpful if you want to focus on something specific temporarily. |
| 37 | +The time frame can be controlled in two ways: |
| 38 | + |
| 39 | +* Zoom in by clicking on the chart area (start time) and drag while holding the mouse button down until the end time you want to select. |
| 40 | +The chart then zooms into the desired time frame. |
| 41 | +* Use the time selector in the top right corner of the chart. |
| 42 | +The chart updates with the desired time frame. |
| 43 | +The maximum time frame is 7 days of history. |
| 44 | + |
| 45 | +To get back to the time range that was previously selected, double-click the chart area. |
| 46 | +Be aware that while the chart can display up to 7 days, the details for Cypher deprecations and deprecated driver usage can be retrieved for a maximum time range of 24 hours. |
| 47 | + |
| 48 | +== Cypher deprecations |
| 49 | + |
| 50 | +image::mrr-fetch-logs.png[width=250] |
| 51 | + |
| 52 | +After selecting a time frame of a maximum of 24 hours, use the button to fetch the deprecations logs in this section. |
| 53 | +Setting filters in the following popup window is optional but helpful if you want to see only specific entries. |
| 54 | +You can filter on: |
| 55 | + |
| 56 | +* Name of the deprecation |
| 57 | +* The user that executed the query |
| 58 | +* Driver that was used to execute the query |
| 59 | +* The application name that executed the query (if set) |
| 60 | +* The initiation type of the query |
| 61 | +* The query text or parts of it |
| 62 | + |
| 63 | +Use the button in the popup to fetch applicable data to populate the report's table. |
| 64 | + |
| 65 | +image::mrr-deprecation-table.png[] |
| 66 | + |
| 67 | +Each row in the table represents a query in the selected timeframe that must be changed to seamlessly migrate to the latest Aura version. |
| 68 | +You have to rewrite those queries to only use v5 supported Cypher. |
| 69 | + |
| 70 | +All executions of the same query are aggregated into one row (see also the "Count" column). |
| 71 | +Use the magnifying glass at the start of each row to access a popup with more information about the query and suggestions on dealing with each issue. |
| 72 | +It also provides relevant links to the documentation for each deprecation. |
| 73 | + |
| 74 | +image::mrr-resolution-guide.png[width=600] |
| 75 | + |
| 76 | +The last column in the table of Cypher deprecations links to a view of this specific query in the Aura Query Log Analyzer tool, which can provide information on each execution of the selected query. |
| 77 | +The tool can view queries on all databases except the `system` database. |
| 78 | + |
| 79 | +image::mrr-show-query-log-button.png[width=400] |
| 80 | + |
| 81 | +== Deprecated driver usage |
| 82 | + |
| 83 | +image::mrr-fetch-driver-stats.png[width=400] |
| 84 | + |
| 85 | +After selecting a time frame of a maximum of 24 hours, use the button to fetch the driver statistics in this section. |
| 86 | +By default, the filters in the popup are set to show only driver usage with potential issues in any database, including the system database. |
| 87 | +You can change those freely to see all driver usage, for example. |
| 88 | + |
| 89 | +Use the button in the popup to fetch applicable data to populate the report's table. |
| 90 | +Depending on the type of client accessing the Neo4j database, links are provided in the column “Latest version” to help with the upgrade. |
| 91 | + |
| 92 | +image::mrr-driver-table.png[] |
| 93 | + |
| 94 | +Like the Cypher deprecations table, the last column links to a view of this specific driver's executed queries in the Aura Query Log tool. |
| 95 | +The tool can provide information on each query execution in which the selected driver was used. |
| 96 | +The tool can view queries on all databases except the `system` database. |
| 97 | + |
| 98 | +=== Deprecated index types |
| 99 | + |
| 100 | +This section provides information on how to deal with deprecated indexes that may be used in version 4 but need to be handled before or while moving to version 5. |
| 101 | + |
| 102 | +This part involves manually running a provided Cypher query on your database to identify the deprecated indexes and then deciding how to best deal with them. |
| 103 | +Further enhancements to this feature will be provided in the future. |
| 104 | + |
| 105 | +=== Next steps |
| 106 | + |
| 107 | +After implementing all the recommended fixes from the report, you can now test the migration. |
| 108 | +Use the "Test migration" button at the bottom of the page and then follow the steps outlined in the docs. |
0 commit comments