将托管磁盘用于Service Fabric临时存储 [英] Utilize Managed Disk for Service Fabric temporary storage

查看:82
本文介绍了将托管磁盘用于Service Fabric临时存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以配置和部署将受管磁盘用作复制器日志和应用程序类型/版本之类的临时存储位置的Service Fabric群集?

Is it possible to configure and deploy a Service Fabric cluster that uses a Managed Disk as the temporary storage location for things like the replicator log and app type/versions?

例如,我无法使用A1_v2 VM实例大小,因为D :(临时存储)驱动器太小.如果我可以利用托管磁盘并将SF配置为使用它而不是本地SSD,则此实例大小将适用于我的开发/测试方案.

For example, I can't use an A1_v2 VM instance size because the D: (Temporary Storage) drive is too small. If I could leverage a Managed Disk and configure SF to use it instead of the local SSD then this instance size would work for my dev/test scenarios.

是否知道如何以及如何进行这项工作?

Any idea if and how I can make this work?

推荐答案

免责声明:您可以执行此操作,但您不应该.详细信息如下.

Disclaimer: You can do this, but you shouldn't. Details below.

如果您确实想使用如此小的VM,请考虑更改共享日志文件的大小.

Consider changing the size of the shared log file instead if you really want to use such small VMs.

"fabricSettings": [{
    "name": "KtlLogger",
    "parameters": [{
        "name": "SharedLogSizeInMB",
        "value": "4096"
    }]
}]

有关配置的更多信息此处.

现在可以实际回答:

此处是设置.您可能会更改Setup/FabricDataRoot来移动Service Fabric本地安装和所有本地应用程序工作目录,和/或TransactionalReplicator/SharedLogPath来移动可靠的集合共享日志.

Here are the settings. You'd probably change Setup/FabricDataRoot to move the Service Fabric local installation and all of the local application working directories, and/or TransactionalReplicator/SharedLogPath to move the reliable collections shared log.

要考虑的一些事情:

Service Fabric服务(和Service Fabric本身)旨在在本地磁盘上运行,并且通常不应托管在XStore支持的磁盘(高级或非高级)上:

Service Fabric Services (and Service Fabric itself) are built to work on local disks and generally should not be hosted on XStore backed disks (premium or not):

  • 可靠的集合肯定是针对本地驱动器而构建的.我知道没有内部测试可以在此配置下运行它们.
  • IO浪费:假设LRS复制更改3次,并且将TargetReplicaSetSize设置为3,则此配置将生成状态的9个副本.您需要状态的9份副本吗?
  • 对延迟和性能的影响:本地磁盘IO应该变成网络+磁盘IO,这有可能损害您的性能.
  • 对可用性的影响:至少您要添加另一个依赖项,这通常会降低总体可用性.如果存储出现问题,那么您现在可以更进一步地与其他服务结合在一起.如今,由于VMSS驱动器由blob支持,因此您已经非常相处了,因此VM设置将失败,但这与服务的读取/写入/激活路径不同.

这篇关于将托管磁盘用于Service Fabric临时存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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