HasPersistedState为false的有状态服务是否支持复制?

问题描述

当我需要一个有状态服务实例时,我遇到了复制状态下的性能问题。在我的用例中,以循环方式分配负载不是解决方案。我想解决在HasPersistedState中将false设置为Settings.xml的情况下保存到磁盘的性能问题。这里的问题是,拥有多个副本会在远程处理时出现错误:Error in Connection during ServiceCommunication,因为在我不保存到磁盘时构建副本似乎存在问题。我仍然希望复制的可用性。 有什么办法可以解决这个问题?
我的课程声明看起来像:

[StatePersistence(StatePersistence.Volatile)]
    internal sealed class VolatileStatefulPerformanceService : StatefulService
    

xml看起来像

...
    <Parameter Name="VolatileStatefulPerformanceService_PartitionCount" Value="1" />
    <Parameter Name="VolatileStatefulPerformanceService_MinReplicaSetSize" Value="1" />
    <Parameter Name="VolatileStatefulPerformanceService_TargetReplicaSetSize" Value="1" />
...

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)