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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...