Combined upgrade and migration projects also known as “single go-live approach” are challenging when it comes to planning the dependencies between upgrade and migration streams.
But if you ever wonder if it’s possible to deliver upgrade and migration in one GO, the answer is YES!
The article describes how the upgrade and migration streams can collaborate and how to increase the efficiency of tasks parallelization without compromising the quality.
The highlight of this blog is data migration using SAP Commerce DB Sync.
*Most of optimizations listed below is applicable when project team consists of at least two developers. Number of developers might vary depending the project scope, complexity and duration.
By default data and media migration is executed when upgrade phase is completed and code adaptation activities are in progress.
Below you can find few strategies to optimize the project plan and start preparation for data migration when the upgrade activities are still in progress.
This will ensure that all important steps are planned and executed well in advance and you do not have to worry about the project critical path.
Production-first approach assumes the first migration and then testing activities are executed in production environment.
In summary, this process is comprised of replicating the database schema as-is from source to target, migrating the data, then letting SAP Commerce apply mandatory type-system changes via Platform Update functionality during regular deployment.
This way, the requirement of having the source and target database in matching versions, is removed.
Although, at first glance this approach sounds like increased complexity, it has several advantages:
This requirement can be fulfilled only if p1
environment is provisioned once SAP Commerce Cloud subscription access was provided to customer.
Read more about SAP Commerce Cloud environments provisioning using SAP for Me.
To fully benefit from production-first approach, customer should be aware of their responsibility for source system preparation.
Customer should be enabled about their responsibility for data and media clean up at early project stage (ideally when the upgrade activities are in-progress).
This will ensure enough time for data preparation prior to the first migration run execution.
The following topics should be addressed to customer during project kick-off or later during data migration workshop:
The workshop should result in action plan with due dates which can be tracked during regular project status meetings.
Another critical prerequisite for successful data migration is the infrastructure setup. Consider the following aspects as part of data migration workshop agenda.
Depending on customer’s requirements connection to source database might need to be established through secured tunnel.
Setup of mandatory networking adaptation needs to be applied both on SAP Commerce Cloud and On-premise systems.
Once completed, connectivity can be validated directly from DB Sync (refer to Data Source Validation).
Customer must provide essential repository access details. In case of non-publicly hosted repository (GitHub, Bitbucket etc.), previously configured NAT should also contain entry point for repository connection.
Repository structure needs to follow SAP official recommendations. Refer to Code Repository Setup and Build Guidelines for more details.
Environments configuration (endpoints, redirects, DNS, SSL setup etc.) can be another example of the tasks that can be run in parallel to upgrade and/or code adaptations activities.
The configuration can be adapted on early project stage (assuming environments are provisioned) However, it’s not mandatory for execution of data migration.
The following activities must be completed by upgrade stream before any technical data migration-related activities can start.
In this scenario, assuming the activities below are completed, it is the earliest stage in the project where data migration is technically feasible.
Following the steps described above enables the first data migration run as early as possible.
Refer to SAP Commerce Cloud – DB Sync data migration safeguarding for more details regarding migration process.
The main benefit of running the migration as soon as possible is a chance to fine-tune the entire process and to prepare for the most optimal execution during cut-over window.
Besides, first migration results should give the following outcome/findings:
For general recommendations regarding performance optimization of data migration process refer to Performance Guide.
This article does not include details regarding media migration. Please refer to Migrate Media with AzCopy
Go-Live Readiness in SAP Commerce Cloud
The section below provides additional recommendations for project planning.
Consider parallelization options depending on the project team size, project duration, budget.
These tasks must go one by one. Adding more developers or parallelization at this stage does not optimize duration.
Consider adding more developers if possible to optimize project duration.
For complex projects where functional upgrade is involved, consider separate streams working in parallel to technical upgrade and migration streams.
To wrap up there is no ideal template of the project plan. Every project is unique and it is also driven by external dependencies.
Nevertheless, by applying the techniques recommenced in this article, project plan can be optimized and the risk of single go-live approach is reduced to minumum.