Blockchain as a Service:Fabric migration

更新时间:
复制 MD 格式

Alibaba Cloud BaaS supports migrating a self-hosted, open-source Hyperledger Fabric network to Alibaba Cloud Fabric. Use this guide to verify whether your environment is eligible, understand what happens during the migration, and complete the application-layer changes required after migration.

The blockchain service remains available throughout the migration. However, you must update your application configuration and restart it before traffic fully shifts to the Alibaba Cloud infrastructure.

Prerequisites

Before you begin, verify that your self-hosted Fabric network meets all of the following requirements.

Certificates issued by Fabric-CA

All certificates in your self-hosted Fabric network must be issued by Fabric-CA. Certificates from other certificate authorities are not supported.

Matching instance count on Alibaba Cloud

Purchase the same number of consortium and organization instances on Alibaba Cloud as you have in your self-hosted Fabric network.

MSPID format and domain name

The MSPID of each organization in your self-hosted Fabric network must end with MSP. When you create the corresponding organization or consortium on Alibaba Cloud, set the domain name to the MSPID value with the MSP suffix removed.

For example, if the MSPID is Org1MSP, the domain name must be Org1.

Publicly accessible node addresses

The organization and consortium node addresses in your self-hosted Fabric channel must be publicly accessible. Alibaba Cloud connects to these addresses during the migration.

System channel named testchainid

The system channel in your self-hosted Fabric network must be named testchainid. This is a fixed requirement of the open-source Fabric system channel.

Migration process

The migration has three phases. Alibaba Cloud handles the infrastructure side; you are responsible for the application-layer changes described below.

Before migration

Before migration

Your application communicates with your self-hosted Fabric network. The Orderer and Peer node addresses, connection profile, and client certificates all point to your self-hosted infrastructure.

During migration

During migration

Alibaba Cloud migrates the infrastructure. While the migration is in progress, complete the following two steps in your application:

  1. Update the connection profile — Replace the Orderer and Peer node addresses in your application's software development kit (SDK) with the new Alibaba Cloud node addresses provided after migration.

  2. Re-enroll to get a new client certificate — Use the new username and password to re-enroll with Fabric-CA and get a new client certificate. Update your application to use this certificate.

Both steps require a restart of your application.

After migration

After migration

Your application connects to Alibaba Cloud Fabric. Verify that transactions are processed correctly before decommissioning your self-hosted infrastructure.

Submit a migration ticket

  1. Log on to the Alibaba Cloud BaaS console. In the top navigation bar, click Tickets > Submit Ticket. Follow the prompts to create a ticket.

    Note

    No purchase is required to submit a ticket.

  2. After Alibaba Cloud receives your request, we will contact you to evaluate the migration and help you purchase the required blockchain instances. The migration then begins.

  3. During the migration, complete the two application-layer steps described in During migration.

Why migrate to Alibaba Cloud Fabric

Migrating gives you the following advantages over running a self-hosted network:

AdvantageDetails
Open ecosystemBaaS continuously integrates blockchain technologies to provide a standardized, open environment for blockchain applications.
High securityBuilt-in protection covers certificate systems, collaboration processes, and network access control.
High availabilityEnd-to-end high availability (HA) design ensures business continuity and supports elastic storage scaling.
Simple operationsOne-click operations and deep integration with Alibaba Cloud services simplify development.
High performanceRuns on Elastic Compute Service (ECS) instances, ECS Bare Metal Instances, high-bandwidth networks, and storage with high concurrency and throughput.
Global deploymentAlibaba Cloud data centers are located worldwide, with mature compliance processes for regions outside China.

For a full feature overview, see Alibaba Cloud Fabric benefits.