服务结构增加无状态服务实例而无需重新部署

时间:2017-05-03 14:38:42

标签: powershell scale azure-service-fabric

有没有办法在Service Fabric上增加无状态服务的实例数量?我们可以更新应用程序清单以增加数量,但这需要部署。有没有办法通过Service Fabric Explorer或Powershell来做到这一点?

非常感谢你 最好的问候

1 个答案:

答案 0 :(得分:1)

是使用Update-ServiceFabricService cmdlet

Update-ServiceFabricService
  [-Stateless]
  [-ServiceName] <Uri>
  [-Correlation <String[]>]
  [-DefaultMoveCost <String>]
  [-Force]
  [-InstanceCount <Int32>]
  [-Metric <String[]>]
  [-PlacementConstraints <String>]
  [-PlacementPolicy <String[]>]
  [-TimeoutSec <Int32>]
  [-Confirm]
  [-WhatIf]
  [<CommonParameters>]

https://docs.microsoft.com/en-us/powershell/module/servicefabric/update-servicefabricservice?view=azureservicefabricps