Azure事件中心-地理恢复:是否复制到辅助区域? [英] Azure Event Hubs - Geo-Recovery: does it replicate to the Secondary region?

查看:55
本文介绍了Azure事件中心-地理恢复:是否复制到辅助区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Microsoft文章- https://docs.microsoft.com/zh-CN/azure/event-hubs/event-hubs-geo-dr

As per the Microsoft article - https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-geo-dr

根据设计,事件中心地理灾难恢复不会复制数据,因此您不能在辅助事件中心上重用主要事件中心的旧偏移值.我们建议您使用以下方法之一重新启动事件接收器:

By design, Event Hubs geo-disaster recovery does not replicate data, and therefore you cannot reuse the old offset value of your primary event hub on your secondary event hub. We recommend restarting your event receiver with one of the following methods:

  1. EventPosition.FromStart()-如果您希望读取辅助事件中心上的所有数据.
  2. EventPosition.FromEnd()-如果您希望在连接到辅助事件中心时读取所有新数据.
  3. EventPosition.FromEnqueuedTime(dateTime)-如果您希望从给定日期和时间开始读取辅助事件中心中收到的所有数据.

我在美国西部拥有一个Azure事件中心,并启用了地理恢复功能以与EAST US同步,认为在灾难可能影响美国西部的情况下我应该能够进行故障转移,但是以上Microsoft文章说,地理灾难恢复不会复制数据,这是什么意思?

I have an Azure Event Hubs in WEST US with Geo-Recovery enabled to sync with EAST US thinking that I should be able to failover in case of Disaster that would impact the WEST US however the above Microsoft article says that geo-disaster recovery does not replicate data, what does it mean?

推荐答案

基本上,您已经从文档中复制了所有答案;)

Basically you already have all your answer in the text you copied from the docs ;)

重新说明一下:地理恢复功能为您带来了第一件也是最重要的一件事:当您将事件中心从一个区域故障转移到另一个区域时,客户端不需要更改其连接字符串.幕后的DNS名称现在解析为新区域,所有访问策略(凭据)在第二个区域中也有效.

To rephrase it: The geo-recovery feature brings you first and foremost one thing: Clients do not need to change their connection string when you fail over your Event Hub from one region to another. The DNS name under the hood resolves now to the new region and all access polices (credentials) are also valid in the second region.

但是,当您进行故障转移时,已经发送到主要区域的数据在第二个区域中不可用.次要事件中心是空的".从这种意义上讲,当您在故障转移之后客户端开始向其发送数据时.

However, data that was already sent to the primary region is not available in the second region when you fail over. The secondary Event Hub is "empty" in that sense when clients start sending data to it after you fail over.

这篇关于Azure事件中心-地理恢复:是否复制到辅助区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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