From f3c6fdb09db5f3da0da29f647b565c60bce5abde Mon Sep 17 00:00:00 2001 From: Arunachalam Thirupathi Date: Mon, 4 Aug 2014 12:42:08 -0700 Subject: [PATCH] Four node and two node configs two configurations for local testing. I found it helpful for testing some of the scenarios. Editing them on multiple machines is painful and others could use this for testing. --- config/four_node_cluster/node_0/config/cluster.xml | 33 ++++++++++++++++++++++ .../node_0/config/server.properties | 30 ++++++++++++++++++++ config/four_node_cluster/node_0/config/stores.xml | 20 +++++++++++++ config/four_node_cluster/node_1/config/cluster.xml | 33 ++++++++++++++++++++++ .../node_1/config/server.properties | 30 ++++++++++++++++++++ config/four_node_cluster/node_1/config/stores.xml | 20 +++++++++++++ config/four_node_cluster/node_2/config/cluster.xml | 33 ++++++++++++++++++++++ .../node_2/config/server.properties | 30 ++++++++++++++++++++ config/four_node_cluster/node_2/config/stores.xml | 20 +++++++++++++ config/four_node_cluster/node_3/config/cluster.xml | 33 ++++++++++++++++++++++ .../node_3/config/server.properties | 30 ++++++++++++++++++++ config/four_node_cluster/node_3/config/stores.xml | 20 +++++++++++++ config/two_node_cluster/node_0/config/cluster.xml | 18 ++++++++++++ .../node_0/config/server.properties | 30 ++++++++++++++++++++ config/two_node_cluster/node_0/config/stores.xml | 20 +++++++++++++ config/two_node_cluster/node_1/config/cluster.xml | 18 ++++++++++++ .../node_1/config/server.properties | 30 ++++++++++++++++++++ config/two_node_cluster/node_1/config/stores.xml | 20 +++++++++++++ 18 files changed, 468 insertions(+) create mode 100644 config/four_node_cluster/node_0/config/cluster.xml create mode 100644 config/four_node_cluster/node_0/config/server.properties create mode 100644 config/four_node_cluster/node_0/config/stores.xml create mode 100644 config/four_node_cluster/node_1/config/cluster.xml create mode 100644 config/four_node_cluster/node_1/config/server.properties create mode 100644 config/four_node_cluster/node_1/config/stores.xml create mode 100644 config/four_node_cluster/node_2/config/cluster.xml create mode 100644 config/four_node_cluster/node_2/config/server.properties create mode 100644 config/four_node_cluster/node_2/config/stores.xml create mode 100644 config/four_node_cluster/node_3/config/cluster.xml create mode 100644 config/four_node_cluster/node_3/config/server.properties create mode 100644 config/four_node_cluster/node_3/config/stores.xml create mode 100644 config/two_node_cluster/node_0/config/cluster.xml create mode 100644 config/two_node_cluster/node_0/config/server.properties create mode 100644 config/two_node_cluster/node_0/config/stores.xml create mode 100644 config/two_node_cluster/node_1/config/cluster.xml create mode 100644 config/two_node_cluster/node_1/config/server.properties create mode 100644 config/two_node_cluster/node_1/config/stores.xml diff --git a/config/four_node_cluster/node_0/config/cluster.xml b/config/four_node_cluster/node_0/config/cluster.xml new file mode 100644 index 000000000..054df568f --- /dev/null +++ b/config/four_node_cluster/node_0/config/cluster.xml @@ -0,0 +1,33 @@ + + mycluster + + 0 + localhost + 8081 + 6666 + 81, 83, 86, 34, 31, 33, 30, 12, 7, 85, 41, 60, 55, 65, 69, 5, 16, 45, 87, 14, 58, 38, 90, 36, 47 + + + 1 + localhost + 8085 + 6670 + 91, 61, 59, 73, 94, 19, 29, 1, 98, 26, 11, 4, 52, 70, 51, 68, 64, 77, 10, 23, 9, 24, 17, 67, 97 + + + 2 + localhost + 8089 + 6674 + 89, 53, 35, 84, 3, 49, 76, 56, 18, 27, 44, 15, 93, 28, 22, 48, 6, 0, 50, 13, 62, 66, 40, 43, 21 + + + 3 + localhost + 8093 + 6678 + 99, 92, 95, 20, 57, 72, 78, 32, 79, 96, 2, 54, 42, 37, 46, 8, 82, 75, 39, 71, 88, 63, 74, 80, 25 + + + + diff --git a/config/four_node_cluster/node_0/config/server.properties b/config/four_node_cluster/node_0/config/server.properties new file mode 100644 index 000000000..d7db37f5b --- /dev/null +++ b/config/four_node_cluster/node_0/config/server.properties @@ -0,0 +1,30 @@ +# The ID of *this* particular cluster node +node.id=0 + +max.threads=100 + +############### DB options ###################### + +http.enable=true +socket.enable=true + +# BDB +bdb.write.transactions=false +bdb.flush.transactions=false +bdb.cache.size=1G +bdb.one.env.per.store=true + +# Mysql +mysql.host=localhost +mysql.port=1521 +mysql.user=root +mysql.password=3306 +mysql.database=test + +#NIO connector settings. +enable.nio.connector=true + +request.format=vp3 +storage.configs=voldemort.store.bdb.BdbStorageConfiguration, voldemort.store.readonly.ReadOnlyStorageConfiguration + + diff --git a/config/four_node_cluster/node_0/config/stores.xml b/config/four_node_cluster/node_0/config/stores.xml new file mode 100644 index 000000000..6a32f498e --- /dev/null +++ b/config/four_node_cluster/node_0/config/stores.xml @@ -0,0 +1,20 @@ + + + test + bdb + Test store + harry@hogwarts.edu, hermoine@hogwarts.edu + consistent-routing + client + 2 + 1 + 1 + + string + + + string + + consistent-handoff + + diff --git a/config/four_node_cluster/node_1/config/cluster.xml b/config/four_node_cluster/node_1/config/cluster.xml new file mode 100644 index 000000000..054df568f --- /dev/null +++ b/config/four_node_cluster/node_1/config/cluster.xml @@ -0,0 +1,33 @@ + + mycluster + + 0 + localhost + 8081 + 6666 + 81, 83, 86, 34, 31, 33, 30, 12, 7, 85, 41, 60, 55, 65, 69, 5, 16, 45, 87, 14, 58, 38, 90, 36, 47 + + + 1 + localhost + 8085 + 6670 + 91, 61, 59, 73, 94, 19, 29, 1, 98, 26, 11, 4, 52, 70, 51, 68, 64, 77, 10, 23, 9, 24, 17, 67, 97 + + + 2 + localhost + 8089 + 6674 + 89, 53, 35, 84, 3, 49, 76, 56, 18, 27, 44, 15, 93, 28, 22, 48, 6, 0, 50, 13, 62, 66, 40, 43, 21 + + + 3 + localhost + 8093 + 6678 + 99, 92, 95, 20, 57, 72, 78, 32, 79, 96, 2, 54, 42, 37, 46, 8, 82, 75, 39, 71, 88, 63, 74, 80, 25 + + + + diff --git a/config/four_node_cluster/node_1/config/server.properties b/config/four_node_cluster/node_1/config/server.properties new file mode 100644 index 000000000..405c8648c --- /dev/null +++ b/config/four_node_cluster/node_1/config/server.properties @@ -0,0 +1,30 @@ +# The ID of *this* particular cluster node +node.id=1 + +max.threads=100 + +############### DB options ###################### + +http.enable=true +socket.enable=true + +# BDB +bdb.write.transactions=false +bdb.flush.transactions=false +bdb.cache.size=1G +bdb.one.env.per.store=true + +# Mysql +mysql.host=localhost +mysql.port=1521 +mysql.user=root +mysql.password=3306 +mysql.database=test + +#NIO connector settings. +enable.nio.connector=true + +request.format=vp3 +storage.configs=voldemort.store.bdb.BdbStorageConfiguration, voldemort.store.readonly.ReadOnlyStorageConfiguration + + diff --git a/config/four_node_cluster/node_1/config/stores.xml b/config/four_node_cluster/node_1/config/stores.xml new file mode 100644 index 000000000..6a32f498e --- /dev/null +++ b/config/four_node_cluster/node_1/config/stores.xml @@ -0,0 +1,20 @@ + + + test + bdb + Test store + harry@hogwarts.edu, hermoine@hogwarts.edu + consistent-routing + client + 2 + 1 + 1 + + string + + + string + + consistent-handoff + + diff --git a/config/four_node_cluster/node_2/config/cluster.xml b/config/four_node_cluster/node_2/config/cluster.xml new file mode 100644 index 000000000..054df568f --- /dev/null +++ b/config/four_node_cluster/node_2/config/cluster.xml @@ -0,0 +1,33 @@ + + mycluster + + 0 + localhost + 8081 + 6666 + 81, 83, 86, 34, 31, 33, 30, 12, 7, 85, 41, 60, 55, 65, 69, 5, 16, 45, 87, 14, 58, 38, 90, 36, 47 + + + 1 + localhost + 8085 + 6670 + 91, 61, 59, 73, 94, 19, 29, 1, 98, 26, 11, 4, 52, 70, 51, 68, 64, 77, 10, 23, 9, 24, 17, 67, 97 + + + 2 + localhost + 8089 + 6674 + 89, 53, 35, 84, 3, 49, 76, 56, 18, 27, 44, 15, 93, 28, 22, 48, 6, 0, 50, 13, 62, 66, 40, 43, 21 + + + 3 + localhost + 8093 + 6678 + 99, 92, 95, 20, 57, 72, 78, 32, 79, 96, 2, 54, 42, 37, 46, 8, 82, 75, 39, 71, 88, 63, 74, 80, 25 + + + + diff --git a/config/four_node_cluster/node_2/config/server.properties b/config/four_node_cluster/node_2/config/server.properties new file mode 100644 index 000000000..770b74c3a --- /dev/null +++ b/config/four_node_cluster/node_2/config/server.properties @@ -0,0 +1,30 @@ +# The ID of *this* particular cluster node +node.id=2 + +max.threads=100 + +############### DB options ###################### + +http.enable=true +socket.enable=true + +# BDB +bdb.write.transactions=false +bdb.flush.transactions=false +bdb.cache.size=1G +bdb.one.env.per.store=true + +# Mysql +mysql.host=localhost +mysql.port=1521 +mysql.user=root +mysql.password=3306 +mysql.database=test + +#NIO connector settings. +enable.nio.connector=true + +request.format=vp3 +storage.configs=voldemort.store.bdb.BdbStorageConfiguration, voldemort.store.readonly.ReadOnlyStorageConfiguration + + diff --git a/config/four_node_cluster/node_2/config/stores.xml b/config/four_node_cluster/node_2/config/stores.xml new file mode 100644 index 000000000..6a32f498e --- /dev/null +++ b/config/four_node_cluster/node_2/config/stores.xml @@ -0,0 +1,20 @@ + + + test + bdb + Test store + harry@hogwarts.edu, hermoine@hogwarts.edu + consistent-routing + client + 2 + 1 + 1 + + string + + + string + + consistent-handoff + + diff --git a/config/four_node_cluster/node_3/config/cluster.xml b/config/four_node_cluster/node_3/config/cluster.xml new file mode 100644 index 000000000..054df568f --- /dev/null +++ b/config/four_node_cluster/node_3/config/cluster.xml @@ -0,0 +1,33 @@ + + mycluster + + 0 + localhost + 8081 + 6666 + 81, 83, 86, 34, 31, 33, 30, 12, 7, 85, 41, 60, 55, 65, 69, 5, 16, 45, 87, 14, 58, 38, 90, 36, 47 + + + 1 + localhost + 8085 + 6670 + 91, 61, 59, 73, 94, 19, 29, 1, 98, 26, 11, 4, 52, 70, 51, 68, 64, 77, 10, 23, 9, 24, 17, 67, 97 + + + 2 + localhost + 8089 + 6674 + 89, 53, 35, 84, 3, 49, 76, 56, 18, 27, 44, 15, 93, 28, 22, 48, 6, 0, 50, 13, 62, 66, 40, 43, 21 + + + 3 + localhost + 8093 + 6678 + 99, 92, 95, 20, 57, 72, 78, 32, 79, 96, 2, 54, 42, 37, 46, 8, 82, 75, 39, 71, 88, 63, 74, 80, 25 + + + + diff --git a/config/four_node_cluster/node_3/config/server.properties b/config/four_node_cluster/node_3/config/server.properties new file mode 100644 index 000000000..6396b9098 --- /dev/null +++ b/config/four_node_cluster/node_3/config/server.properties @@ -0,0 +1,30 @@ +# The ID of *this* particular cluster node +node.id=3 + +max.threads=100 + +############### DB options ###################### + +http.enable=true +socket.enable=true + +# BDB +bdb.write.transactions=false +bdb.flush.transactions=false +bdb.cache.size=1G +bdb.one.env.per.store=true + +# Mysql +mysql.host=localhost +mysql.port=1521 +mysql.user=root +mysql.password=3306 +mysql.database=test + +#NIO connector settings. +enable.nio.connector=true + +request.format=vp3 +storage.configs=voldemort.store.bdb.BdbStorageConfiguration, voldemort.store.readonly.ReadOnlyStorageConfiguration + + diff --git a/config/four_node_cluster/node_3/config/stores.xml b/config/four_node_cluster/node_3/config/stores.xml new file mode 100644 index 000000000..6a32f498e --- /dev/null +++ b/config/four_node_cluster/node_3/config/stores.xml @@ -0,0 +1,20 @@ + + + test + bdb + Test store + harry@hogwarts.edu, hermoine@hogwarts.edu + consistent-routing + client + 2 + 1 + 1 + + string + + + string + + consistent-handoff + + diff --git a/config/two_node_cluster/node_0/config/cluster.xml b/config/two_node_cluster/node_0/config/cluster.xml new file mode 100644 index 000000000..c27442e2c --- /dev/null +++ b/config/two_node_cluster/node_0/config/cluster.xml @@ -0,0 +1,18 @@ + + mycluster + + 0 + localhost + 8081 + 6666 + 0, 1 + + + 1 + localhost + 8085 + 6670 + 2, 3 + + + diff --git a/config/two_node_cluster/node_0/config/server.properties b/config/two_node_cluster/node_0/config/server.properties new file mode 100644 index 000000000..d7db37f5b --- /dev/null +++ b/config/two_node_cluster/node_0/config/server.properties @@ -0,0 +1,30 @@ +# The ID of *this* particular cluster node +node.id=0 + +max.threads=100 + +############### DB options ###################### + +http.enable=true +socket.enable=true + +# BDB +bdb.write.transactions=false +bdb.flush.transactions=false +bdb.cache.size=1G +bdb.one.env.per.store=true + +# Mysql +mysql.host=localhost +mysql.port=1521 +mysql.user=root +mysql.password=3306 +mysql.database=test + +#NIO connector settings. +enable.nio.connector=true + +request.format=vp3 +storage.configs=voldemort.store.bdb.BdbStorageConfiguration, voldemort.store.readonly.ReadOnlyStorageConfiguration + + diff --git a/config/two_node_cluster/node_0/config/stores.xml b/config/two_node_cluster/node_0/config/stores.xml new file mode 100644 index 000000000..6a32f498e --- /dev/null +++ b/config/two_node_cluster/node_0/config/stores.xml @@ -0,0 +1,20 @@ + + + test + bdb + Test store + harry@hogwarts.edu, hermoine@hogwarts.edu + consistent-routing + client + 2 + 1 + 1 + + string + + + string + + consistent-handoff + + diff --git a/config/two_node_cluster/node_1/config/cluster.xml b/config/two_node_cluster/node_1/config/cluster.xml new file mode 100644 index 000000000..c27442e2c --- /dev/null +++ b/config/two_node_cluster/node_1/config/cluster.xml @@ -0,0 +1,18 @@ + + mycluster + + 0 + localhost + 8081 + 6666 + 0, 1 + + + 1 + localhost + 8085 + 6670 + 2, 3 + + + diff --git a/config/two_node_cluster/node_1/config/server.properties b/config/two_node_cluster/node_1/config/server.properties new file mode 100644 index 000000000..405c8648c --- /dev/null +++ b/config/two_node_cluster/node_1/config/server.properties @@ -0,0 +1,30 @@ +# The ID of *this* particular cluster node +node.id=1 + +max.threads=100 + +############### DB options ###################### + +http.enable=true +socket.enable=true + +# BDB +bdb.write.transactions=false +bdb.flush.transactions=false +bdb.cache.size=1G +bdb.one.env.per.store=true + +# Mysql +mysql.host=localhost +mysql.port=1521 +mysql.user=root +mysql.password=3306 +mysql.database=test + +#NIO connector settings. +enable.nio.connector=true + +request.format=vp3 +storage.configs=voldemort.store.bdb.BdbStorageConfiguration, voldemort.store.readonly.ReadOnlyStorageConfiguration + + diff --git a/config/two_node_cluster/node_1/config/stores.xml b/config/two_node_cluster/node_1/config/stores.xml new file mode 100644 index 000000000..6a32f498e --- /dev/null +++ b/config/two_node_cluster/node_1/config/stores.xml @@ -0,0 +1,20 @@ + + + test + bdb + Test store + harry@hogwarts.edu, hermoine@hogwarts.edu + consistent-routing + client + 2 + 1 + 1 + + string + + + string + + consistent-handoff + + -- 2.11.4.GIT