-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distributing Shards Between Servers #8234
Comments
More information!
The output is correct!
It returns the following error:
|
I found an issue that has one part of my problem! (issue: #7887) |
Hi @hossein-md , Probable reason to your first issue: I do not know if you have gone through this issue: #7110 where @tglman mentions about this:
And there is another concept in sharding which you are doing: https://orientdb.com/docs/last/Distributed-Sharding.html#cluster-locality |
Thanks @bipulkarnani |
Hi @hossein-md , I also tried to rotate my connection to different nodes in cluster and saw the similar behaviour that it always connects to first node in the connection string. Hence I am not sure about how to write in node |
@hossein-md I guess you have misconfiguration problem for distribution mode . |
Hi @luigidellaquila |
Hi @saeedtabrizi
n02 output
n01 output
9)Insert two vertices into the User
n02 output:
n01 output:
n02 output:
n01 output:
Thanks. |
Hi @hossein-md |
Hi @saeedtabrizi, I sent it to your email. Thanks |
@hossein-md , @lvca, @Laa This issue occurred when the LSN not recovered truly after a failed transaction in each node . so after any CRUD operation an exception trowed in console . Thanks |
Hi @saeedtabrizi, I tested the writequroum = 1 and I got the same errors. Thanks |
Hi @hossein-md |
@saeedtabrizi I tried the scenario that u implemented, because i had the same problem as @hossein-md, It works when i use
|
Hey @saeedtabrizi, how did you reach that the records are stored on the local cluster? That does not work for me... It stores all records to a specific node, even if the local node owns the matching cluster... |
Hi guys! @adler4566 I think I also encountered this problem. I was trying to keep only one cluster in each node that will also be the owner of that cluster. The idea was that none of the nodes should have locally the entire database, only the cluster they own. I didn't manage to achieve this. If I use |
Hey @georgiana-b, this is very interesting, because I have exactly the same target as you! But why does this happen? This can‘t be the desired behavour of a distributed database... I work with big data, but with this behavour I can‘t use this database. Maybe someone encountered the same problem and reached to fix it? |
Hi @luigidellaquila! Just to know if it's worth looking more into this issue, does this feature exist in OrientDB? Is it possible to shard the database so that each node keeps only one cluster locally not the entire database? |
@georgiana-b It might be worth taking a look at these issues: They both very much relate to this topic. One thing to consider is that while you definitely want to be able to either distribute data across clusters, and / or clusters across the server in some distributed hash table method, you may ALSO want some sort of replication factor in case you loose a server. So you might want each cluster to exist on N servers where N >= 1. That way if you loose a single server you don't loose availability of data. |
OrientDB Version: 2.2.33
OS: Linux
Expected behavior
I have 3 servers and use the following configs (default-distributed-db-config.json):
I insert some nodes (Using java api, graph model) I have 2 problem (Actually Three!)
Actual behavior
Here's my problems:
First:
All the nodes go to the one server. e.g., if I use this
OrientGraph graph = new OrientGraph(n01-ip)
all the nodes go to the shard_01 (not even shard_02!)My code is:
graph.addVertex("class:" + className, properties)
Second:
The size of database folder for servers 'n02' and 'n03' had been less than the size of database folder server 'n01' before I closed 'n02' and 'n03'. When I shutdown the 'n02' and 'n03' and delete their databases, the database is copied from n01 to n02 and n03 and the size of all the database folders are equal.
Third:
I can't read data! I use this code: ( FYI: keyName and keyValue is unique property)
And I get this error from my java output:
And this is from "dserver.sh":
Does anyone run the Orientdb in the cloud way that all the servers haven't all the shards?
Thanks
The text was updated successfully, but these errors were encountered: