如何将新的节点类型添加到已部署的Service Fabric群集?

编程入门 行业动态 更新时间:2024-10-25 18:26:19
本文介绍了如何将新的节点类型添加到已部署的Service Fabric群集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我部署了一个Service Fabric群集,该群集运行一个应用程序和3个节点类型(每台5台计算机),每个节点都有自己的放置约束.

I deployed a Service Fabric Cluster running with a single application and 3 Node Types of 5 machines, each with its own placement constraint.

我需要添加其他2种节点类型(虚拟机规模集),如何从azure门户网站做到这一点?

I need to add other 2 Node types (Virtual Machine Scale sets), how can I do that from the azure portal?

推荐答案

Add-AzureRmServiceFabricNodeType 命令可以将新的节点类型添加到现有Service Fabric群集中.

The Add-AzureRmServiceFabricNodeType command can add a new node type to an existing Service Fabric cluster.

请注意,该过程大约需要一个小时才能完成,因为它会从集群开始一次创建一个资源.它将创建一个新的负载平衡器,公共IP地址,存储帐户和虚拟机规模集.

Note that the process can take roughly an hour to complete, since it creates one resource at a time starting with the cluster. It will create a new load balancer, public IP address, storage accounts, and virtual machine scale set.

$password = ConvertTo-SecureString -String 'Password$123456' -AsPlainText -Force Add-AzureRmServiceFabricNodeType ` -ResourceGroupName "resource-group" ` -Name "cluster-name" ` -NodeType "nodetype2" ` -Capacity 2 ` -VmUserName "user" ` -VmPassword $password

注意事项:

  • 请事先检查您的配额,以确保您可以创建新的虚拟机规模集实例,否则会出现错误,整个过程将回滚
  • 通过门户刀片创建集群时,
  • 节点类型名称最多可包含9个字符;使用PowerShell命令可以应用相同的限制
  • 该命令是作为AzureRM PowerShell模块v4.2.0的一部分引入的,因此您可能需要更新模块
  • Check your quotas beforehand to ensure you can create the new virtual machine scale set instances or you will get an error and the whole process will roll back
  • Node type names have a limit of nine characters when creating a cluster via portal blade; this same restriction may apply using the PowerShell command
  • The command was introduced as part of v4.2.0 of the AzureRM PowerShell module, so you may need to update your module

您还可以通过使用Azure门户向导创建新群集并更新DNS记录,或通过修改ARM模板来添加新节点类型,但是PowerShell命令显然是最佳选择.

You can also add a new node type by creating a new cluster using the Azure portal wizard and updating your DNS records, or by modifying the ARM template, but the PowerShell command is obviously the best option.

更多推荐

如何将新的节点类型添加到已部署的Service Fabric群集?

本文发布于:2023-11-25 15:56:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630390.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:节点   如何将   类型   Fabric   Service

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!