gpt4 book ai didi

azure - 如何增加 Azure Service Fabric Actor 的超时?

转载 作者:行者123 更新时间:2023-12-03 00:43:31 26 4
gpt4 key购买 nike

我在错误日志中发现,我们的 Azure Service Fabric 无状态服务在一段时间后尝试调用 Actor 代理上的方法时遇到 Microsoft.ServiceFabric.Actors.Runtime.DuplicateMessageException。 Actor 可能需要一段时间才能奔跑。异常的完整消息是:

Actor Microsoft.ServiceFabric.Actors.Runtime.ActorConcurrencyLock got same request more than once. This might happen for a request which takes more processing time than configured OperationTimeout on Client side as client retries on TimeoutException.

我没有看到任何可以配置此值的地方。我在 the documentation for the FabricTransportSettings class 中看到对它的引用但我不知道在哪里使用该类型。

由于我们的actor方法预计需要一段时间才能运行(通常是几分钟),如果这个错误确实与超时有关,我该如何增加OperationTimeout?

最佳答案

我会考虑更改 Actor 的工作方式,即使用所需的参数初始化 Actor 并“播种” Actor 。然后触发一个计时器来执行长时间运行的工作。然后重新查询 Actor,直到工作完成并检索结果。

我们有几个长时间运行的工作负载,在我们的系统中使用参与者,我们设置为以这种方式工作

关于azure - 如何增加 Azure Service Fabric Actor 的超时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38087142/

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