Prechádzať zdrojové kódy

added topic reassignment examples

Grega Bremec 7 mesiacov pred
rodič
commit
7660525c3d
2 zmenil súbory, kde vykonal 83 pridanie a 0 odobranie
  1. 8 0
      labs/reassign.json
  2. 75 0
      labs/reassignment-proposal.json

+ 8 - 0
labs/reassign.json

@@ -0,0 +1,8 @@
+{
+    "version": 1,
+    "topics": [
+	{
+	    "topic": "test-topic"
+	}
+    ]
+}

+ 75 - 0
labs/reassignment-proposal.json

@@ -0,0 +1,75 @@
+{
+  "version": 1,
+  "partitions": [
+    {
+      "topic": "test-topic",
+      "partition": 0,
+      "replicas": [
+        1,
+        2,
+        3
+      ],
+      "log_dirs": [
+        "any",
+        "any",
+        "any"
+      ]
+    },
+    {
+      "topic": "test-topic",
+      "partition": 1,
+      "replicas": [
+        2,
+        3,
+        5
+      ],
+      "log_dirs": [
+        "any",
+        "any",
+        "any"
+      ]
+    },
+    {
+      "topic": "test-topic",
+      "partition": 2,
+      "replicas": [
+        3,
+        5,
+        0
+      ],
+      "log_dirs": [
+        "any",
+        "any",
+        "any"
+      ]
+    },
+    {
+      "topic": "test-topic",
+      "partition": 3,
+      "replicas": [
+        5,
+        0,
+        1
+      ],
+      "log_dirs": [
+        "any",
+        "any",
+        "any"
+      ]
+    },
+    {
+      "topic": "test-topic",
+      "partition": 4,
+      "replicas": [
+        0,
+        1,
+        2
+      ],
+      "log_dirs": [
+        "any",
+        "any",
+        "any"
+      ]
+    }
+  ]
+}