如何将新的节点类型添加到已部署的Service Fabric群集? [英] How to add new Node Type to deployed Service Fabric cluster?

查看:173
本文介绍了如何将新的节点类型添加到已部署的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?

推荐答案

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群集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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