-
-
Save stotch/ed407ccd4b83ec3a5ed6 to your computer and use it in GitHub Desktop.
generate_cluster_xml.py sample output since gencluster-enhance branch changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[bharris@bharris-ld integration]$ python generate_cluster_xml.py --help | |
usage: generate_cluster_xml.py [-h] [-N NAME] [-n NODES] [-p PARTITIONS] | |
[-s SOCK_PORT] [-a ADMIN_PORT] [-H HTTP_PORT] | |
[-S SEED | -l LOOPS] [-z ZONES] | |
Build a voldemort cluster.xml. | |
optional arguments: | |
-h, --help show this help message and exit | |
-N NAME, --name NAME the name you want to give the clusteer | |
-n NODES, --nodes NODES | |
the number of nodes in the cluster | |
-p PARTITIONS, --partitions PARTITIONS | |
number of partitions per node | |
-s SOCK_PORT, --socket-port SOCK_PORT | |
socket port number | |
-a ADMIN_PORT, --admin-port ADMIN_PORT | |
admin port number | |
-H HTTP_PORT, --http-port HTTP_PORT | |
http port number | |
-S SEED, --seed SEED seed for randomizing partition distribution | |
-l LOOPS, --loops LOOPS | |
loop n times, using a different random seed every time | |
(Note: not currently supported) | |
-z ZONES, --zones ZONES | |
if using zones, the number of zones you will have | |
(Note: you must add your own <zone> fields manually) | |
[bharris@bharris-ld integration]$ python generate_cluster_xml.py | |
<!-- Partition distribution generated using seed [78697743676] --> | |
<cluster> | |
<name>voldemort</name> | |
<server> | |
<id>0</id> | |
<host>host0</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>0, 1, 3, 4, 5, 6, 7, 8, 9, 13, 15, 17, 21, 22, 23, 24, 28, 30, 31, 33, 35, 37, 39, 40, 41, 43, 44, 45, 46, 47, 50, 51, 52, 55, 56, 57, 58, 59, 60, 61, 62, 66, 67, 68, 69, 70, 72, 73, 74, 75, 76, 78, 81, 82, 83, 84, 85, 87, 88, 89, 90, 92, 93, 94, 97, 98, 102, 104, 108, 109, 111, 112, 113, 114, 117, 119, 121, 125, 128, 132, 133, 134, 137, 139, 140, 141, 145, 148, 149, 150, 151, 152, 153, 156, 159, 166, 167, 168, 169, 172, 173, 176, 177, 178, 181, 183, 185, 186, 189, 193, 194, 195, 197, 198, 201, 207, 208, 209, 215, 216, 218, 219, 222, 223, 226, 229, 230, 231, 234, 235, 236, 238, 240, 245, 248, 251, 255, 269, 275, 276, 278, 281, 282, 283, 284, 285, 286, 287, 294, 296, 297, 298, 299, 300, 302, 304, 306, 307, 308, 310, 312, 317, 318, 322, 325, 327, 328, 332, 339, 341, 342, 343, 347, 349, 350, 352, 353, 354, 356, 360, 361, 365, 366, 367, 372, 376, 377, 378, 380, 382, 383, 386, 387, 391, 394, 395, 396, 398, 400, 401, 402, 403, 406, 407, 409, 411, 412, 414, 416, 417, 418, 423, 425, 427, 430, 431, 433, 434, 437, 438, 439, 440, 441, 444, 446, 447, 448, 450, 451, 452, 454, 457, 458, 459, 460, 461, 468, 472, 473, 478, 479, 481, 484, 486, 487, 490, 493, 495, 496, 497, 498, 499, 500, 501, 502, 507, 509, 513, 514, 516, 521, 522, 525, 526, 529, 530, 531, 536, 537, 538, 541, 542, 543, 544, 545, 546, 547, 552, 554, 557, 559, 561, 563, 565, 566, 570, 572, 573, 575, 577, 580, 581, 582, 583, 584, 585, 589, 591, 594, 596</partitions> | |
</server> | |
<server> | |
<id>1</id> | |
<host>host1</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>2, 10, 11, 12, 14, 16, 18, 19, 20, 25, 26, 27, 29, 32, 34, 36, 38, 42, 48, 49, 53, 54, 63, 64, 65, 71, 77, 79, 80, 86, 91, 95, 96, 99, 100, 101, 103, 105, 106, 107, 110, 115, 116, 118, 120, 122, 123, 124, 126, 127, 129, 130, 131, 135, 136, 138, 142, 143, 144, 146, 147, 154, 155, 157, 158, 160, 161, 162, 163, 164, 165, 170, 171, 174, 175, 179, 180, 182, 184, 187, 188, 190, 191, 192, 196, 199, 200, 202, 203, 204, 205, 206, 210, 211, 212, 213, 214, 217, 220, 221, 224, 225, 227, 228, 232, 233, 237, 239, 241, 242, 243, 244, 246, 247, 249, 250, 252, 253, 254, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 270, 271, 272, 273, 274, 277, 279, 280, 288, 289, 290, 291, 292, 293, 295, 301, 303, 305, 309, 311, 313, 314, 315, 316, 319, 320, 321, 323, 324, 326, 329, 330, 331, 333, 334, 335, 336, 337, 338, 340, 344, 345, 346, 348, 351, 355, 357, 358, 359, 362, 363, 364, 368, 369, 370, 371, 373, 374, 375, 379, 381, 384, 385, 388, 389, 390, 392, 393, 397, 399, 404, 405, 408, 410, 413, 415, 419, 420, 421, 422, 424, 426, 428, 429, 432, 435, 436, 442, 443, 445, 449, 453, 455, 456, 462, 463, 464, 465, 466, 467, 469, 470, 471, 474, 475, 476, 477, 480, 482, 483, 485, 488, 489, 491, 492, 494, 503, 504, 505, 506, 508, 510, 511, 512, 515, 517, 518, 519, 520, 523, 524, 527, 528, 532, 533, 534, 535, 539, 540, 548, 549, 550, 551, 553, 555, 556, 558, 560, 562, 564, 567, 568, 569, 571, 574, 576, 578, 579, 586, 587, 588, 590, 592, 593, 595, 597, 598, 599</partitions> | |
</server> | |
</cluster> | |
[bharris@bharris-ld integration]$ python generate_cluster_xml.py --partitions 20 | |
<!-- Partition distribution generated using seed [47350866518] --> | |
<cluster> | |
<name>voldemort</name> | |
<server> | |
<id>0</id> | |
<host>host0</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>0, 1, 2, 3, 5, 8, 9, 11, 13, 16, 18, 19, 22, 26, 27, 30, 31, 37, 38, 39</partitions> | |
</server> | |
<server> | |
<id>1</id> | |
<host>host1</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>4, 6, 7, 10, 12, 14, 15, 17, 20, 21, 23, 24, 25, 28, 29, 32, 33, 34, 35, 36</partitions> | |
</server> | |
</cluster> | |
[bharris@bharris-ld integration]$ python generate_cluster_xml.py --partitions 20 --nodes 4 | |
<!-- Partition distribution generated using seed [18568066447] --> | |
<cluster> | |
<name>voldemort</name> | |
<server> | |
<id>0</id> | |
<host>host0</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>3, 14, 15, 23, 25, 28, 29, 31, 33, 36, 42, 53, 55, 58, 63, 65, 68, 70, 71, 78</partitions> | |
</server> | |
<server> | |
<id>1</id> | |
<host>host1</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>4, 7, 8, 12, 17, 21, 22, 24, 44, 45, 47, 49, 50, 54, 56, 57, 60, 72, 75, 76</partitions> | |
</server> | |
<server> | |
<id>2</id> | |
<host>host2</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>9, 13, 19, 20, 26, 35, 39, 40, 46, 48, 51, 59, 61, 64, 66, 67, 69, 74, 77, 79</partitions> | |
</server> | |
<server> | |
<id>3</id> | |
<host>host3</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>0, 1, 2, 5, 6, 10, 11, 16, 18, 27, 30, 32, 34, 37, 38, 41, 43, 52, 62, 73</partitions> | |
</server> | |
</cluster> | |
[bharris@bharris-ld integration]$ python generate_cluster_xml.py --partitions 20 --nodes 4 --zones 2 | |
<!-- Partition distribution generated using seed [16650174289] --> | |
<cluster> | |
<name>voldemort</name> | |
<server> | |
<id>0</id> | |
<host>host0</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>3, 5, 6, 7, 8, 11, 12, 14, 17, 19, 37, 38, 39, 45, 49, 54, 60, 62, 69, 77</partitions> | |
<zone-id>0</zone-id> | |
</server> | |
<server> | |
<id>1</id> | |
<host>host1</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>0, 2, 9, 13, 16, 18, 23, 27, 29, 36, 48, 51, 56, 59, 61, 67, 74, 76, 78, 79</partitions> | |
<zone-id>1</zone-id> | |
</server> | |
<server> | |
<id>2</id> | |
<host>host2</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>20, 21, 26, 28, 30, 31, 33, 34, 35, 40, 42, 47, 50, 53, 55, 57, 63, 65, 70, 71</partitions> | |
<zone-id>0</zone-id> | |
</server> | |
<server> | |
<id>3</id> | |
<host>host3</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>1, 4, 10, 15, 22, 24, 25, 32, 41, 43, 44, 46, 52, 58, 64, 66, 68, 72, 73, 75</partitions> | |
<zone-id>1</zone-id> | |
</server> | |
</cluster> | |
[bharris@bharris-ld integration]$ python generate_cluster_xml.py --partitions 20 --nodes 4 --zones 4 | |
<!-- Partition distribution generated using seed [9752506760] --> | |
<cluster> | |
<name>voldemort</name> | |
<server> | |
<id>0</id> | |
<host>host0</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>0, 1, 3, 6, 15, 20, 21, 25, 31, 32, 34, 39, 45, 47, 48, 63, 65, 67, 76, 79</partitions> | |
<zone-id>0</zone-id> | |
</server> | |
<server> | |
<id>1</id> | |
<host>host1</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>8, 10, 12, 16, 18, 22, 23, 26, 29, 30, 33, 38, 40, 42, 44, 55, 57, 68, 73, 74</partitions> | |
<zone-id>1</zone-id> | |
</server> | |
<server> | |
<id>2</id> | |
<host>host2</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>4, 7, 14, 19, 24, 27, 28, 41, 43, 49, 50, 51, 54, 61, 64, 66, 69, 72, 75, 77</partitions> | |
<zone-id>2</zone-id> | |
</server> | |
<server> | |
<id>3</id> | |
<host>host3</host> | |
<http-port>6665</http-port> | |
<socket-port>6666</socket-port> | |
<admin-port>6667</admin-port> | |
<partitions>2, 5, 9, 11, 13, 17, 35, 36, 37, 46, 52, 53, 56, 58, 59, 60, 62, 70, 71, 78</partitions> | |
<zone-id>3</zone-id> | |
</server> | |
</cluster> | |
[bharris@bharris-ld integration]$ python generate_cluster_xml.py --partitions 20 --nodes 7 --zones 4 | |
Number of nodes must be evenly divisible by number of zones |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment