在同一VPC内将Redshift从子网1移到子网2 [英] Move Redshift from Subnet 1 to Subnet 2 within the same VPC

查看:128
本文介绍了在同一VPC内将Redshift从子网1移到子网2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VPC,它有2个私有子网,即子网1和子网2.我的redshift群集位于子网2中,并有数据.我想在同一VPC内将redshift从子网2移到子网1(这很容易做到).但是我对数据迁移毫无疑问:

I have a VPC which has 2 Private subnets i.e. subnet 1 and subnet 2. My redshift cluster sits in subnet 2 and has data. I want to move the redshift from subnet 2 to subnet 1 within the same VPC (Which can be done easily). But I have few doubts related to data migration:

  1. 数据迁移是否会自动发生而没有任何数据丢失,还是我需要进行备份,在子网1中创建群集,然后再次将备份的数据推送到群集中.

任何线索都将不胜感激.

Any leads would be appreciated.

推荐答案

来自 Amazon Redshift快照-Amazon Redshift :

从快照还原群集

快照包含来自群集上运行的任何数据库的数据,以及有关群集的信息,包括节点数,节点类型和主用户名.如果您需要从快照还原群集,Amazon Redshift会使用群集信息创建新群集,然后从快照数据还原所有数据库. Amazon Redshift从快照创建的新集群将具有与原始快照相同的配置,包括节点的数量和类型. 除非在请求中指定了另一个可用区,否则群集将在同一区域和一个随机的,系统选择的可用区中恢复.

A snapshot contains data from any databases that are running on your cluster, and also information about your cluster, including the number of nodes, node type, and master user name. If you need to restore your cluster from a snapshot, Amazon Redshift uses the cluster information to create a new cluster and then restores all the databases from the snapshot data. The new cluster that Amazon Redshift creates from the snapshot will have same configuration, including the number and type of nodes, as the original cluster from which the snapshot was taken. The cluster is restored in the same region and a random, system-chosen Availability Zone, unless you specify another Availability Zone in your request.

因此,您应该获取现有Redshift群集的快照,然后通过从快照还原群集在另一个可用区中创建新群集.一切正常之后,您可以删除旧群集.

So, you should take a Snapshot of the existing Redshift cluster, then create a new cluster in the other AZ by Restoring a Cluster from the Snapshot. Once everything seems to be okay, you can delete the old cluster.

这篇关于在同一VPC内将Redshift从子网1移到子网2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆