Temporal Blog 09月30日
Temporal迁移工具发布
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

Temporal宣布推出新的迁移工具,支持从自托管实例无缝迁移到Temporal Cloud,目前处于预发布阶段。该工具旨在确保迁移过程平滑、安全,并最小化对工作流的影响,同时让您轻松利用Temporal Cloud的可扩展性、性能和简化操作。

🔧 该工具支持从自托管Temporal实例迁移到Temporal Cloud,目前仅支持单向迁移,反向迁移(从Cloud到自托管)计划在未来路线图中实现。

📊 迁移过程零停机:工作流(包括长时间运行的工作流)在迁移期间继续运行,无需停机。

🤖 端到端自动化:Temporal使用内部工作流处理迁移过程,无需修改现有应用程序代码。

🛡️ 安全性增强:通过在自托管服务器和迁移服务器之间引入客户端代理和云端代理,实现安全连接。

📈 预发布阶段支持:在预发布阶段,需要满足特定前提条件并存在一些限制,具体细节请参考官方文档。

We’re thrilled to announce the launch of our migration tooling that enables seamless transitions from self-hosted Temporal instances to Temporal Cloud, now in Pre-release. With this new tool, we aim to make the migration process as smooth and secure as possible while ensuring minimal disruption to your Workflows. This tooling will let you more easily take advantage of the scalability, performance, and simplified operations that Temporal Cloud offers.

The migration tooling has been designed with the following objectives in mind:

    Zero-downtime migrations: Workflows, including long-running Workflows continue running during migration without downtime. End-to-end automation: Temporal handles the migration process using internal Workflows. No changes to application code: Your existing Workflows, signals, and queries will work without modification. Minimal effort on your side: Setup and coordination requirements are reduced, provided your self-hosted Temporal instance supports migration. Full control and customization: You decide when to initiate the migration, validate its success, and confirm or abort the process before completion.

It’s important to note that this tooling currently supports migrations from self-hosted Temporal to Temporal Cloud only. Reverse migrations (from Cloud back to self-hosted) are planned in our roadmap!

How It Works#

Migration Server#

A Temporal Service (aka Server) facilitates secure connections between your self-hosted instance and Temporal Cloud. It acts as the backbone of the migration process.

Migration Proxy#

To enhance security, proxies are introduced between your self-hosted server and the migration server: Customer-side proxy: Installed on your infrastructure for secure communication. Cloud-side proxy: Managed by Temporal Cloud.

A step-by-step guide to migration#

Here’s how the migration process will work:

    Preparation Phase
    Temporal coordinates with you to set up a migration server, which may take several hours. You install a migration proxy to establish secure connections between your self-hosted instance and the migration server.
    Initiating Migration
    Use the StartMigrationRequest API to specify namespaces for migration along with endpoint details. A corresponding namespace is created in Temporal Cloud with a “non-active” status. You can configure permissions and access controls during this phase.
    Monitoring Progress
    The GetMigrationResponse API allows you to track replication progress, including workflows replicated, remaining workflows, and estimated time for completion.
    Validation and Handover
    Once replication is complete, you can use the HandoverNamespaceRequest API to switch traffic between your source namespace (self-hosted) and target namespace (cloud). This gives you time to validate that everything is functioning correctly in Temporal Cloud by switching worker traffic and workflow starters incrementally.
    Finalizing or Aborting Migration
    After validation, use ConfirmMigrationRequest API to finalize the migration. If issues arise (e.g., incorrect namespace migrated or replication errors), you can abort using AbortMigrationRequest API. Aborting will roll back changes without impacting your workflows. These APIs provide granular control over every step of the process, ensuring transparency and flexibility.

Pre-requisites and limitations at Pre-release#

Refer to this document for pre-requisites and limitations of using this migration tool.

Conclusion#

With this new migration tooling, migrating from self-hosted Temporal to Temporal Cloud has never been easier. By automating complex processes and minimizing customer effort, we’re empowering you to focus on building resilient applications while we handle the heavy lifting of infrastructure management.

Ready to migrate to Temporal Cloud? Contact us today to get started!

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Temporal 迁移工具 Temporal Cloud 自托管 零停机迁移 自动化
相关文章