...
Following are the limitations of data migration:
- This migration can only be done for some database types. For example, if you are using MySQL currently and you need to migrate to Oracle in the new version, these scripts will not work.
- You cannot rollback migrationroll back the upgrade. It is impossible to restore a backup of the previous server and retry the migration upgrade progress.
Downtime
The downtime is limited to the time taken for switching databases when the migrating environment is connected to the production.
Upgrade
Procedureprocedure
Follow the instructions below to upgrade the system:.
- Stop Stop the current server.
- Select the relevant script for the upgrade from here. Select the
migration.sql
script corresponding to your database type. E.g., If your database is MySQL, you need to executemysql-migration.sql.
Note that there are three migration scripts available:migration-service-provider.sql
,migration-identity.sql
andmigration.sql
. However, for all Carbon products except WSO2 IS, only themigration.sql
script is required to be executed. - To connect the new product version to the migrated database, configure the following files:
- Configure
<PRODUCT_HOME>/repository/conf/datasources/master-datasources.xml
.
- Go to the
<PRODUCT
_HOME>/repository/conf
directory and update datasource references inuser-mgt.xml
andregistry.xml
.
To migrate deployment artifacts (including ESB message flow configurations::
- Configure
- Copy the
<ESB_HOME>/repository/deployment/server/synapse-configs/default
folder from the older ESB version to the new version. Perform any configurations required for the server, e.g., external user stores, clustering, mounting.
Note Note that configurations should not be copied directly between servers.
- Start the server.
Recommended checkpoints
The databases should contain the newly added tables, which are namely as follows:
UM_DOMAIN
UM_SYSTEM_USER
UM_SYSTEM_ROLE
UM_SYSTEM_USER_ROLE
Going into production
- Recommended testsThe following are the recommended tests to run on the staging system:
- Create multiple user stores and try adding users to different user stores.
- Create multiple tenants and add different user stores to the different tenants. Thereafter, add users to the various user stores.
- The staging database should be used as the new production database with the new Carbon server. The staging server should have the configurations equivalent to the production server. Map the production domain to the staging environment, once the staging environment is running smoothly. This upgrade should be done during a period when there is low traffic on the system.
Once the above tests are run successfully, it is safe to consider that the upgrade is ready for production. However, it is always advised to carryout testing on you should also test any features that are being used in production.