gpt4 book ai didi

azure-service-fabric - Azure Service Fabric - 部署失败,剩余 1 个分区

转载 作者:行者123 更新时间:2023-12-04 12:48:39 28 4
gpt4 key购买 nike

我一直在使用 Service Fabric 一段时间,成功构建、部署和测试了多个服务,但我刚刚完成构建的服务在部署时失败(请参阅下面的错误)。在诊断中,我尝试使用 VS 模板(没有代码更改)创建和部署一个全新的服务,但也不会部署 - 同样的错误。但是,计算器 SDK 示例部署得很好。

我收到以下错误,其中无法构建分区之一:

Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.

Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.

Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.

Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.

Service Status:,fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.

Something is taking too long, the application is still not ready.
Finished executing script 'Get-FabricApplicationStatus.ps1'.
Time elapsed: 00:01:48.0681346
The thread 0x37fc has exited with code 0 (0x0).
The thread 0x4fe4 has exited with code 0 (0x0).

获取服务的健康状况如下:
    PS C:\WINDOWS\system32> Get-ServiceFabricServiceHealth -ServiceName fabric:/DataFabricServiceApplication/DataFabricService


ServiceName : fabric:/DataFabricServiceApplication/DataFabricService
AggregatedHealthState : Error
UnhealthyEvaluations :
Unhealthy partitions: 100% (1/1), MaxPercentUnhealthyPartitionsPerService=0%.

Unhealthy partition: PartitionId='3eebd943-097d-4568-ad7e-d37c621a888b', AggregatedHealthState='Error'.

Error event: SourceId='System.FM', Property='State'.

PartitionHealthStates :
PartitionId : 3eebd943-097d-4568-ad7e-d37c621a888b
AggregatedHealthState : Error

HealthEvents :
SourceId : System.FM
Property : State
HealthState : Ok
SequenceNumber : 10
SentAt : 11/11/2015 07:16:02
ReceivedAt : 11/11/2015 07:16:03
TTL : Infinite
Description : Service has been created.
RemoveWhenExpired : False
IsExpired : False
Transitions : Warning->Ok = 11/11/2015 07:16:03, LastError = 01/01/0001 00:00:00

有谁知道为什么这不会部署/我如何才能深入了解?我见过其他人有同样的错误,但没有找到任何解决办法。

最佳答案

对服务运行状况的不健康评估向您显示存在问题的分区。您可以继续深入了解该分区的运行状况 ( Get-ServiceFabricPartitionHealth 3eebd943-097d-4568-ad7e-d37c621a888b )。我的猜测是您将看到来自 ErrorSystem.FM 事件,说明分区低于最小副本集大小。

然后,您可以深入了解副本的健康状况 ( Get-ServiceFabricReplica 3eebd943-097d-4568-ad7e-d37c621a888b | Get-ServiceFabricReplicaHealth )。
我见过很多这种情况,因为副本无法打开(因为配置问题或服务副本代码中的错误)。如果是这种情况,您将在副本上看到一个事件,说明它有什么问题(例如,打开需要很长时间或打开失败并显示错误代码等),或者副本将继续回收。

关于azure-service-fabric - Azure Service Fabric - 部署失败,剩余 1 个分区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33657382/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com