In the process of scaling orientDB i am looking into sharding. Here i tried sharding a class by creating clusters and storing into different servers as mentioned in
http://orientdb.com/docs/2.1/Distributed-Sharding.html , but i could not able to find clusters at desired servers as per the configuration. Can any one of you let me know is my configuration correct or am i doing the changes as desired?
Steps Followed:
1) Started a node1 in dserver mode,
2) Once node1 is active started node2 & node3, Here i could see like all the three node are connected.
3) created a database at node1 as "autoDeploy" is true, database started replicating to node2, node3 as well.
4) Created a class "actionevent" at node1, now it should create a default, actionevent_node1, actionevent_node2, actionevent_node3 clusters and those clusters should be placed at the servers as mentioned in the config file. but i could not see like clusters are being placed at the servers as mentioned in the config file.
My default-distributed-db-config.json file is (actionevent is a class)
{
"autoDeploy": true,
"hotAlignment": false,
"executionMode": "undefined",
"readQuorum": 1,
"writeQuorum": 2,
"failureAvailableNodesLessQuorum": false,
"readYourWrites": true,
"servers": {
"*": "master"
},
"clusters": {
"internal": {
},
"index": {
},
"actionevent_node1": {
"servers" : [ "node1", "node2", "node3" ]
},
"actionevent_node2": {
"servers" : [ "node1", "node2" ]
},
"actionevent_node3": {
"servers" : [ "node3" ]
},
"*": {
"servers": [ "<NEW_NODE>" ]
}
}
}