• Ruby
    • Ruby Dev Center
    • Ruby Versions
    • NGINX Ruby
    • Ruby App Server Configuration
    • Ruby App Specifications
      • Dependency Management
      • Post Deploy Configuration
    • Ruby Tutorials
      • Redmine
      • Diaspora*
  • Python
    • Python Dev Center
    • Python Versions
    • Python Tutorials
      • Mezzanine CMS
      • Wagtail CMS
  • Go Lang
    • Go Dev Center
    • Go Git Deploy
  • Getting Started
    • Quickstart
    • Dashboard Guide
    • Welcome Tutorial
    • Software Stack Versions
    • Hosters List & Info
  • Windows & .NET
    • .NET Core
    • Windows Server
      • Windows Server VM
      • Windows VPS
    • Windows RD Access
    • Managing Server Roles & Features
  • Databases
    • Create DB Server
    • Database Connection Strings
    • JDBC Connection Pool
    • Database Backups
    • Database Configuration Files
    • Access to PHPMyAdmin
    • MySQL/MariaDB
      • Java Connection
      • PHP Connection
      • Python Connection
      • Node.js Connection
      • Master-Slave Replication
      • Multi-Master Replication
      • Galera Cluster Recovery
      • Remote Access
      • Dump Import/Export
    • PostgreSQL
      • Java Connection to PostgreSQL
      • PHP Connection to PostgreSQL
      • SSL Connection to PostgreSQL
      • PostgreSQL Replication
      • Remote Access to PostgreSQL
      • Dump Import/Export to PostgreSQL
      • PostGIS Extension
      • Hasura GraphQL Installation
    • MongoDB
      • Percona Server for MongoDB
      • Java Connection to MongoDB
      • PHP Connection to MongoDB
      • Python Connection to MongoDB
      • Node.js Connection to MongoDB
      • MongoDB Auto-Clustering
      • MongoDB Replica Set Manual Setup
      • Remote Access to MongoDB
      • Dump Import/Export
    • CouchDB
      • Java Connection to CouchDB
    • Redis
      • Redis Overview
      • Diaspora* Tutorial
    • OpenSearch Cluster
    • Database Connection via JNDI
    • Database Connection via Hibernate
  • Load Balancers
    • Load Balancing
    • NGINX
      • NGINX Balancer
      • TCP Load Balancing
      • NGINX Balancer Configuration
      • Testing Load Balancing
      • Caching in NGINX Balancer
      • App Security with NGINX Balancer
      • NGINX ModSecurity
    • LiteSpeed Web ADC
    • HAProxy
    • Varnish
  • Kubernetes Hosting
    • Kubernetes Cluster
      • Kubernetes Overview
      • System Requirements
      • Cluster Installation
      • Cluster Versions
    • Managing Kubernetes
      • Cluster Access
      • Access Control
      • Cluster Troubleshooting
      • Cluster Upgrade
      • Velero Backups
    • Kubernetes Scalability
      • Vertical Scaling
      • Horizontal Scaling
    • Application Deployment
      • Helm Integration
      • YAML Deployments
      • Internal Networking
      • Exposing Services
      • Creating Ingresses
    • Persistent Data
      • Volume Provisioner
      • Persistent Volume Claim
      • Custom Storage
  • Platform Overview
    • Basics & Terminology
    • Release Notes
    • Application Containers
    • Isolated Containers
    • What is Auto-Clustering
    • What is a Cloudlet?
  • Elastic VPS
    • Elastic VPS Overview
      • General Information
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • Elastic VPS Management
      • VPS Configuration
      • Linux VPS Access via SSH Gate
      • Linux VPS Access via Public IP
      • Windows VPS Access via RDP
    • Linux VPS Use Cases
      • Run Java Console Application
      • Setting Mail Server Inside VPS
  • Containers
    • Container Types
    • Container Deployment
    • Container Redeployment
    • Container Configuration
    • Supported OS Distributions
    • Connect to Custom Container
    • Custom Container SSH Access
    • Private Registry Repository
  • Data Storage
  • Environment Management
    • Setting Up Environment
    • Environment Collaboration
    • Cloning Environment
    • HTTP Headers
    • Environment Variables
    • Transferring Environment
    • Environment Aliases
    • Environment Export & Import
      • Environment Export
      • Environment Import
    • Environment Regions
      • Choosing a Region
      • Migration Between Regions
    • Environment Groups
      • Create Group
      • Navigate Groups
      • Manage Group
    • Environment Network Isolation
  • Memcached
    • Memcached System
    • Memcached Configuration
    • Memcached Memory Allocation
    • PHP Sessions in Memcached
    • Session Replication via Memcached
  • Deployment
    • Zero Code Change Deploy
    • Deployment Manager
    • Deployment Guide
    • GIT & SVN Auto-Deploy
      • Auto-Deploy Overview
      • Auto-Deploy for Multiple Containers
    • SSH Access to GIT Repository
    • Deploying Apps via Gitblit
    • Deployment Hooks
  • WordPress Edition
    • WordPress PaaS
    • WordPress Topologies
      • Standalone
      • Standalone Pro
      • WordPress WooCommerce
      • WordPress WooCommerce Pro
      • WordPress Cluster
      • WordPress WooCommerce Cluster
      • WordPress Multi-Region Standalone
    • WordPress Plugins
    • WordPress Backups
    • WordPress Billing
    • WordPress Security
    • WordPress PHP Optimization
    • WordPress CI/CD
  • Elastic VPS Edition
    • Virtuozzo Elastic Hosting
    • Elastic VPS Topologies
      • CentOS Elastic VPS
      • Ubuntu Elastic VPS
      • Debian Elastic VPS
      • VzLinux Elastic VPS
      • Windows Elastic VM
    • Elastic VPS Billing
  • Application Settings
    • Configuration File Manager
    • Scaling and Clustering
      • Automatic Vertical Scaling
      • Horizontal Scaling
      • Automatic Horizontal Scaling
      • Data Syncronization
      • File Synchronization in Cluster
      • Auto-Clustering of Instances
      • Session Replication for HA
    • Smart Auto-Configuration
      • Auto-Configuration Overview
      • Database Auto-Configuration
      • PHP Auto-Configuration
    • Domain Name Management
      • Custom Domain Name
      • Swap Domains
      • Multiple Domain for Tomcat
      • Multiple Domains for GlassFish
      • Multiple Domains for PHP
      • Multiple Domains with Public IP
      • gTLD + IDN Domain Names Support
      • Container DNS Hostnames
    • External Access to Aplications
      • Shared Load Balancer
      • Public IP
      • Multiple Public IP
      • Container Firewall
      • Endpoints
      • HTTP/3 Support
    • Traffic Distributor
      • Traffic Distributor Overview
      • Routing Methods
        • Round Robin
        • Sticky Sessions
        • Failover
      • Traffic Distributor Installation
      • Traffic Distributor Integration
      • Use Cases
        • Blue-Green Deploy
        • Failover Protection
        • A/B Testing
    • SSL
      • Secure Sockets Layer
      • Built-In SSl
      • Custom SSL
      • Custom SSL via SLB
      • Let's Encrypt SSL
      • Self-Signed Custom SSL
    • Scheduling Configurations
      • Setting Up Cronjob
      • Quartz Scheduling
    • Built-In Monitoring
      • Log Files
      • Statistics
      • Load Alerts
    • Monitoring with New Relic
      • New Relic Installation
      • New Relic Update
    • BitNinja Server Security Add-On
    • Managing Locale Settings
    • Custom Error Page Settings
    • Managing Timezone Settings
    • OOM Killer Troubleshooting
      • Overview
      • Common Cases
      • Memory Leak Processes
      • Non-Leaking Processes
    • Remote Debugging
    • Application Lifecycle Management
  • Development Tools
    • SSH
      • SSH Overview
      • Generate SSH Key
      • Add SSH Key
      • SSH Access
        • Overview
        • Web SSH
        • SSH Gate
      • SSH Management
      • SSH Protocols
      • Capistrano
    • API & CLI
      • API Overview
      • API Methods
      • Jelastic CLI
        • Jelastic CLI Overview
        • Environment Creation
        • Environment Start/Stop
        • Environment Cloning
        • Environment Migration
        • Server Scaling
        • Container Redeploy
        • Container Volumes
        • Mount Points
        • VCS Project Deployment
        • Swap Public IPs
        • Installing JPS
      • CreateEnv Params
    • Cloud Scripting & JPS
      • Cloud Scripting
      • JPS Overview
      • Application Manifest
      • Marketplace
    • FTP/FTPS Support
    • WebSockets
      • WebSockets Support
      • WebSockets Support for Java
      • WebSockets Support for PHP
    • Plugins
      • Ant Task
      • Eclipse Plugin
        • Eclipse Plugin Manual
        • Eclipse Plugin Installation
        • Environment Management
        • Application Deployment
      • IDEA Plugin
      • Maven Plugin
      • NetBeans Plugin
        • NetBeans Plugin Overview
        • NetBeans Plugin Installation
        • NetBeans Plugin Management
        • Application Deploy via NetBeans
    • Mailings
      • Email via External SMTP
      • Running Sendmail Service
    • Remote Acces via WebDAV
  • Java
    • Java Dev Center
    • Java Versions
    • Java App Servers
      • Tomcat and TomEE
        • Tomcat Server
        • TomEE Server
        • Tomcat/TomEE Variables
        • Tomcat Clustering
        • Tomcat Security
        • Multiple Domains for Tomcat
      • Jetty
        • Jetty Server
        • Jetty Custom Variables
        • Jetty Security
      • GlassFish
        • GlassFish Server
        • GlassFish Environment Variables
        • GlassFish Clustering
        • Multiple Domains for GlassFish
      • WildFly
        • WildFly Server
        • WildFly Managed Domain
        • Building WildFly Docker Image
      • Spring Boot
    • Java App Server Configuration
    • Java Garbage Collector
    • Build Node
      • Java VCS Deployment with Maven
      • Maven Configuration
    • Java Apps Specifications
      • Upload JAR Files
      • Java Agent
      • Remote Access to EJB on GlassFish
    • Java Tutorials
  • PHP
    • PHP Dev Center
    • PHP Versions
    • PHP App Servers
      • Apache PHP
        • Apache PHP
        • Apache Security Configurations
        • Apache Modules
        • Add Apache PHP
        • Apache WebDav Module
        • Apache Statistics Module
        • Name-Based Virtual Host in Apache
        • Apache as Frontend
      • NGINX PHP
        • NGINX PHP
        • NGINX Security Configurations
        • NGINX Modules
        • NGINX WebDav Module
        • Caching in NGINX App Server
      • LiteSpeed Web Server
      • LEMP & LLSMP
    • PHP App Server Configuration
    • ZDT Deployment for PHP
    • PHP Apps Specifications
      • PHP Extensions
      • PHP Accelerators
    • PHP.INI Security Settings
    • Composer Dependency Manager
    • PHP Sessions Clustering
    • PHP Tutorials
  • Node.js
    • Node.js Dev Center
    • Node.js Versions
    • Node.js Apps Specifications
      • Package Managers
      • Process Managers
    • Node.js Tutorials
  • Data Storage Container
    • Data Storage Overview
    • Shared Storage Container
    • Data Sharing
      • Mount Points
      • Exporting Data for Sharing
      • Mount Protocols
        • NFS
        • GlusterFS
    • Use Cases
      • Local Filesystem
      • Master Container
      • Compound Container
      • Dedicated Container
      • External Server
    • Migrating ro GlusterFS Cluster
    • External NFS Server Configuration
  • Account & Pricing
    • Account Registration
    • Account types
    • Account Statuses
    • Account Password Reset
    • Quotas System
    • Two-Factor Authentication
    • Personal Access Tokens
    • Accounts Collaboration (Deprecated)
      • Overview
      • Create Collaboration
      • Collaboration management
      • Environments in Collaboration
    • Accounts Collaboration
      • Collaboration Overview
      • Collaboration Roles & Policies
      • Create Collaboration
      • Collaboration User Experience
    • Upgrade & Refill Account
    • Resource Charging
      • Pricing FAQ
      • Charged Resources
      • Monitoring Consumed Resources
    • Pricing Model Overview
    • Automatic Discounts
    • Billing Systems
      • Billing Systems Overview
      • OBA Billing System
      • OBAS Billing System
      • WHMCS Billing System
    • Hosters Pricing

Migration Between Regions

Within the confines of the multiple environment regions approach, the initially chosen location of the project can be easily changed using the migration option (obviously, if you have an access to several environment regions). It represents an extremely powerful tool, that can help you to benefit in both cost and productivity – as an example, you can choose cheaper hardware for the development/testing stages and subsequently migrate your production-ready application to the hardware with the best parameters, just before the release.

environment migration between regions
Note: Availability of the migration option, as well as its availability for each particular environment region, depends on your hosting provider’s settings.

So, in order to migrate the existing environment to another hardware region, perform one of the following:

  • click on the Change environment topology button and choose the Migrate option within the regions’ list above
    environment migrate wizard
  • select the Settings button next to the desired environment and switch to the Migration menu option
    environment settings

In both cases, you’ll see the same frame opened with a Current region of the chosen environment stated and an option for choosing the Target region, i.e. the hardware it should be migrated to.

environment migration settings
Note: Pricing policy in different regions can vary based on their parameters and is applied automatically after the relocation is done, thus it’s recommended to get acquainted with the appropriate costs in advance – the actual information can be discovered using the corresponding link, provided within the tip under the Target region selector.

Just lower down the tab the Live migration section is placed, either with the special switcher shown or providing some additional info, depending on the chosen target region. Here you can define which migration type (among the two provided ones) should be used:

  • live migration – available only between the regions, marked with the special LM label within the list (this depends on the physical location of a particular region’s hardware)
  • offline migration – can be used for any environment regions

select target region

State all the necessary conditions and click on Verify & Migrate at the bottom of the section to initiate the relocation. Confirm your decision within the appeared pop-up frame.

confirm environment migration

Once the migration is completed, the appropriate information message will appear at the dashboard and the region label next to the environment will be changed. In addition, you’ll receive the notification email with the migration details (like its duration for every container and any changes that happened with their parameters due to this process).

And below we’ll consider both migration modes in more details.

Live Migration

Within the Target region list you can see a special LM label shown next to particular regions – it is used to mark the Live migration option’s availability.

Upon selecting such a region as a target one, the Live migration switcher will appear beneath (in the enabled state by default).

live migration switcher

If choosing this type of migration, the environment relocation will be performed implicitly, i.e. without a restart of containers and any extra configurations needed, so your app’s users won’t face any interruptions.

Note: Although the benefits of live (online) migration are evident, keep in mind that it is not suitable for all cases. We strongly recommend that you avoid using containers live migration for:

  • environments/containers under high load – unexpected downtime with the “502 – environment stopped” error (usually brief, under 10 seconds)
  • active database containers, Big Data – possible corruption or loss of the currently processed data due to the nature of online migration and freezes of network connections/disk IO related operations during the migration process

If the offline mode is needed – just turn off the corresponding switcher.

disable live migration

In such a case, an environment with all of the containers in it will become unavailable for the whole relocation process and resume its normal work, after this operation completes, with no additional manual adjustments required.

Offline Migration

When the live migration option is unavailable (due to moving an environment to another data center) or in case it was disabled manually, the offline mode is used. In contrast to the online one, during such a relocation, an environment will be shut down until the end of this process.

live migration not available

In addition, if this migration type is the only available one, some environment settings, like IP addresses of nodes and, optionally, the domain name assigned, will be changed. Thus, after the migration is completed, some manual configurations may be required to restore the normal operability of the moved application – all of the necessary information will be additionally sent to you via email.

Obviously, based on the above-mentioned pros and cons, live migration is a much more preferable option (if suitable for your use case).

What’s next?

  • Multiple Environment Regions
  • Environment Export and Import
  • Environment Transferring
  • CLI Environment Migration

Didn't find your answer? Contact Us

Previously
Choosing a Region
Up Next
Environment Groups

Didn't Find an Answer?

Get in touch with us for details on setup and additional custom services pricing

Contact Us

  • Privacy Policy
  • Terms of Use
  • Stack Harbor © 2022