【问题标题】:Service fabric increase stateless service instance without re-deploymentService Fabric 增加无状态服务实例,无需重新部署
【发布时间】:2017-10-01 11:15:19
【问题描述】:

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

非常感谢 最好的问候

【问题讨论】:

    标签: powershell scale azure-service-fabric


    【解决方案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

    【讨论】:

      猜你喜欢
      • 2019-09-10
      • 2020-02-12
      • 2016-11-16
      • 2020-02-19
      • 2019-11-19
      • 2017-12-13
      • 2017-03-07
      • 2018-04-09
      • 2021-09-14
      相关资源
      最近更新 更多