我在分布式模式下设置了 OrientDB Community Edition v2.2.8,其中有 2 个节点,前面有一个负载均衡器 (F5)。我有一个使用 .net 客户端(OrientDB-Net.binary.Innov8tive.0.1.11)写入数据库的 .net 应用程序。当应用程序尝试保存到数据库时,我收到此错误
Orient.Client.OException: com.orientechnologies.orient.server.distributed.ODistributedConfigurationChangedException: Local node 'app04' is not the master for cluster 'firm' (it is 'app03')
DB name="TESTDB"
我尝试直接连接到负载平衡的 url 和节点。我总是遇到同样的错误。我正在保存 2 种不同类型的顶点和这 2 个顶点之间的一条边。根据我尝试连接的节点,我在不在该特定节点上的对象之一上收到错误。我正在像这样在我的应用程序中创建连接
using (ODatabase database = new ODatabase(_hostname, _port, _databaseName, ODatabaseType.Graph, _username, _password, _databaseAlias))
{
.....
.....
}
我在 .net 客户端上找不到分布式模式的任何特定设置。有什么我想念的吗?