简体   繁体   English

Azure PAAS 写入副本

[英]Azure PAAS write replica

Situation: I require a copy of a 2Tb database.情况:我需要一个 2Tb 数据库的副本。 Currently on azure IAAS we snapshot disk mount new disk and unmount old disk time around 7 minutes.目前在 azure IAAS 上,我们快照磁盘挂载新磁盘和卸载旧磁盘的时间约为 7 分钟。 The copy of orginal data is offline for only a few mins whilst data disks are switched.在切换数据磁盘时,原始数据的副本仅离线几分钟。 This happens 4 times a day.这种情况每天发生 4 次。

I am considering moving to PAAS but need to find a speedy solution to either sync and rename or replica same 2tb database.我正在考虑迁移到 PAAS,但需要找到一个快速的解决方案来同步和重命名或复制相同的 2tb 数据库。 Export takes to long.出口需要很长时间。 Then make the copy database available for readwrite access.然后使副本数据库可用于读写访问。 The database names and connections must remain the same.数据库名称和连接必须保持不变。 4 times a day.每天4次。

If anyone knows how or is doing this on azure sql database please share solution.如果有人知道如何或正在 azure sql 数据库上执行此操作,请分享解决方案。

Not 100% sure I understand what you need to do, but it looks like DBCopy is what you are looking for:不是 100% 确定我了解您需要做什么,但看起来 DBCopy 是您正在寻找的:

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-copy#copy-a-database-by-using-transact-sql https://docs.microsoft.com/en-us/azure/sql-database/sql-database-copy#copy-a-database-by-using-transact-sql

It will create a copy of your database and the copy will be read/write.它将创建您的数据库的副本,并且该副本将是读/写的。 Do you need the second copy for QA/TEST? QA/TEST 需要第二份副本吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM