简体   繁体   English

用于Blob存储的Azure故障转移选项

[英]Azure fail-over options for blob storage

Maybe someone can point me out the direction, how should I implement fail-over scenario for my blob storage. 也许有人可以指出我的方向,如何为我的Blob存储实施故障转移方案。

I am working with quite huge payloads, which is send to my API. 我正在处理相当大的有效负载,该负载已发送到我的API。 The API ingest the payload with the metadata and save it to the blob. API会使用元数据提取有效负载,并将其保存到Blob。 Everything seems to be working fine, except that I have SLA requirement, which define failover strategy in case Azure Blob Storage service is unavailable, the API should fall back and persist files locally or in any other location. 除我有SLA要求外,其他一切似乎都正常运行,该要求定义了故障转移策略,以防Azure Blob Storage服务不可用,API应回退并在本地或任何其他位置持久保存文件。 After Azure Blob Storage is up and running, files should be transfer back to the blob for further processing. Azure Blob Storage启动并运行后,应将文件传输回Blob以进行进一步处理。

My first idea was that I can preserve files locally in Azure App Service file system, as soon as files are shared between all instances of the service (when scale it up to multiple instances) how stated here , but internally it is still implemented using the same Azure Storage. 我的第一个想法是,我可以在本地在Azure的应用程序服务的文件系统,一旦文件被服务的所有实例之间共享保存文件,(当它放大到多个实例), 这里怎么说 ,但是在内部它使用的仍执行相同的Azure存储。

So what will be the best option here? 那么,这里最好的选择是什么?

As aidden mentioned, your storage accounts will fail over to a different region automatically if an outage occurs. 正如aidden所述,如果发生中断,您的存储帐户将自动故障转移到其他区域。 The preview feature is so you can force a fail over on your side. 预览功能使您可以强制进行故障转移。 The SLA for Geo-Redundant storage is 99.9%, and will continue to function even in the case a whole region of Azure is down. 地理冗余存储的SLA为 99.9%,即使在整个Azure区域关闭的情况下,它也将继续起作用。 This is sufficient for most applications. 这对于大多数应用程序来说已经足够了。

As you have noted, App Services also makes use of storage so writing to disk will not be sufficient in the case of a widespread storage outage. 您已经注意到,App Services还利用存储空间,因此在存储空间大范围中断的情况下,写入磁盘是不够的。 Two options come to mind when dealing with large files that will stay up even if all of Storage were to go down. 处理大文件(即使所有存储设备都将关闭)时,仍会想到两个选择。

  1. Locate a secondary storage option somewhere outside of Azure. 在Azure之外的某个地方找到辅助存储选项。
  2. While not designed for file storage, CosmosDB could handle the data temporarily. 虽然不是为文件存储而设计的,但是CosmosDB可以临时处理数据。 It is designed to be geo-replicated, handle large amounts of data, and you could even locate it in different regions from your storage accounts. 它经过设计可进行地理复制,可处理大量数据,甚至可以将其与存储帐户放在不同的区域中。

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

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