0
votes

orientdb version 2.1.11

I'm trying to setup on 3 nodes, I want to shard the data like the description of default-distribute-config.json.

write node1 -> node1, node2

write node2 -> node2, node3

write node3 -> node3, node1

{
      "autoDeploy": true,
      "hotAlignment": false,
      "executionMode": "undefined",
      "readQuorum": 1,
      "writeQuorum": 2,
      "failureAvailableNodesLessQuorum": false,
      "readYourWrites": true,
      "servers": {
        "*": "master"
      },
      "clusters": {
        "internal": {
        },
        "index": {
        },
        "person_node1": {
          "servers": ["node1","node2"]
        },
        "person_node2": {
          "servers": ["node2","node3"]
        },
        "person_node3": {
          "servers": ["node3","node1"]
        },
        "*": {
          "servers": ["<NEW_NODE>"]
        }
      }
    }

but when I started nodes, they didn't wok like this. Sometime they work like this (copy from log file):

"person_node1": {
  "servers": ["node1"]
},
"person_node2": {
  "servers": ["node2"]
},
"person_node3": {
  "servers": ["node3"]
},
"*": {
  "servers": ["node2","node1","node3","<NEW_NODE>"]
},

Is there any detail document describing the configuration? thanks.

1

1 Answers

0
votes

The configuration is always updated by removing the absent nodes. If you want a more sticky configuration, set "hotAlignment": true, after 2.1.10 is safe to set it to true.

We're working on it by providing a more flexible behaviour.