首页 > 解决方案 > 分布式 OrientDB 在 kubernetes 中相互连接的问题

问题描述

我们在 2 个不同区域的 Kubernetes 中部署了一个分布式 orientdb,我们计划在更改密码后更改 orientdb 中的 root 密码,其中一个集群正常工作,但另一个开始给出以下日志,

DB name=“OurDB”
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259)
at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:988)
at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:958)
at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:949)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.openDatabase(ONetworkProtocolBinary.java:915)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.handshakeRequest(ONetworkProtocolBinary.java:249)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:214)
at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:82)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open storage it is acquired by other process
and this–
DB name=“OSystem”
at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedStorageDirtyFlag.lockFile(OPaginatedStorageDirtyFlag.java:109)
at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedStorageDirtyFlag.open(OPaginatedStorageDirtyFlag.java:142)
at com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.preOpenSteps(OLocalPaginatedStorage.java:438)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:271)
… 18 more
$ANSI{green {db=videoDB}} authenticate()
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/orientdb/databases/OSystem’ with mode=rw

“”</p>

当我们尝试更改管理员密码时,它给出 com.orientechnologies.orient.server.distributed.ODistributedException: Quorum (2) cannot be reach on server "server2 name" 因为它比可用节点 (1) 大

为什么 orientdb 想要在 mode=rw 中打开 OSystem db?它不是我们创建的,并且 OSystem 数据库是空的。为什么一个集群中的 db 允许我更改密码,而另一个集群给了我 Ouorum 问题?

提前致谢

标签: kubernetesorientdbhazelcastdistributed

解决方案


推荐阅读