WEBVTT 00:04.380 --> 00:10.680 No, we are good to go, and now we are ready to greet our Kafka Gloster once again and afterwards greet 00:10.680 --> 00:12.810 the topic with replication factor three. 00:13.140 --> 00:20.000 Let's go to our file with commands and let's first as usually spin up our goalkeeper. 00:20.250 --> 00:22.090 So we started here in this step. 00:22.720 --> 00:24.680 Afterwards, let's open up a new tab. 00:24.960 --> 00:29.690 They call this line where we will start to broker broker with a zero. 00:29.790 --> 00:32.670 Let's say he took off scaffolder and placed command here. 00:34.020 --> 00:38.820 Open up, copy this line again, city to COFCO. 00:39.730 --> 00:43.000 Ways to command it is broken with one. 00:44.180 --> 00:50.380 And lost the broker with Eddie to Sydney, took Tarkowski again based command here. 00:52.240 --> 00:56.320 And now all three US should be up and running, let's verify that. 00:56.330 --> 00:59.860 So here we decided to what started here. 00:59.860 --> 01:05.440 You see, Thukral was the one that was started and the here was a desirable started. 01:05.800 --> 01:06.340 Wonderful. 01:06.550 --> 01:12.250 Let's quickly verify state of all brockers state of the Glassboro by using this command. 01:12.430 --> 01:14.050 So let me quote it from here. 01:14.380 --> 01:17.290 Go to golf game based command. 01:18.600 --> 01:23.130 And now I see that all three girls are present in our class. 01:23.550 --> 01:24.190 Wonderful. 01:24.390 --> 01:25.290 No, we are good to go. 01:25.290 --> 01:30.990 And now let's agree to a new topic with replication of three recommended. 01:30.990 --> 01:37.020 When I have explained your replication factors, I have told you that even in production environments, 01:37.020 --> 01:43.050 it is not suggested that to go beyond the replication factor, three, four, three is completely enough 01:43.050 --> 01:44.230 even for production. 01:44.670 --> 01:45.240 Why is that? 01:45.250 --> 01:50.310 Because I have told you that, for example, in this case, when there are five partitions for a particular 01:50.310 --> 01:59.280 topic and replication, Fatah will be three, then in fact, on all brokers in total will be 15 partitions. 01:59.550 --> 02:04.440 So for each of those partitions will be two additional replicas. 02:04.710 --> 02:09.410 And that means that instead of partitions, we will get 15 partitions. 02:09.930 --> 02:17.720 If there is, for example, five here as a replication factor, then in total we will get twenty five 02:17.730 --> 02:18.420 partitions. 02:18.540 --> 02:20.810 So hugely increased a lot. 02:21.120 --> 02:24.080 That's why I don't go beyond the number three here. 02:24.090 --> 02:29.490 Three is completely enough and let's all think we wanted to partitions for this example. 02:29.490 --> 02:31.980 And let's make it for example, seven. 02:32.340 --> 02:39.630 And the topic for this example will be not girls, let's make it month like Sol and let me replace all 02:39.630 --> 02:42.870 occurences of cars here in this files with month. 02:46.010 --> 02:48.410 Replace all, and we are good to go. 02:48.800 --> 02:55.400 Notice that this file is also included in GitHub repository in correspondant example, for example, 02:55.460 --> 03:00.970 those commands you may find here in current example in this file, basic commands. 03:01.310 --> 03:06.290 So let's proceed and let's create the topic this one gold month. 03:06.530 --> 03:07.460 Let me copy this. 03:07.460 --> 03:08.930 Come and go here. 03:09.060 --> 03:14.420 Clear terminal notice that the zookeeper and three servers are up and running. 03:14.420 --> 03:16.730 So I'm able now to create the new topic. 03:17.540 --> 03:19.570 Based command and control. 03:23.910 --> 03:29.840 Topic was created and you have seen that we are doing some jobs, and if I go, for example, to this 03:29.850 --> 03:36.210 broker with a one, you might observe that it has done really, really a lot of different tasks related 03:36.210 --> 03:42.540 to creation of the new topic month, because we have set up a partitions quantity two seven and replication 03:42.540 --> 03:45.440 factor three and totally in our cluster. 03:45.450 --> 03:51.900 Twenty one participants were created, went to one is equal to seven, multiplied by three replication 03:51.900 --> 03:52.460 factor. 03:52.800 --> 03:58.370 And that means that on every brolga, at least seven partitions should be created. 03:58.740 --> 04:05.160 And here you see different logs related to this brought us, for example, here you see that on this 04:05.160 --> 04:08.730 program, partition month zero was created. 04:09.150 --> 04:15.420 Also, you may see that there are logs related to Rs or partitions like month desk three. 04:15.810 --> 04:19.550 Same relates to remaining brokers here on this broker. 04:19.560 --> 04:26.070 I see even some arrows related to creation of replicas, but let's hope that everything will work perfectly 04:26.490 --> 04:28.050 OK before moving on. 04:28.050 --> 04:35.340 And Delonge and producer and the consumer, let's quickly Explorer logs folder and see which partitions 04:35.340 --> 04:37.260 were created on different brokers. 04:37.470 --> 04:39.390 And let's do this after the small box. 04:39.420 --> 04:40.310 So see you next. 04:40.320 --> 04:40.830 Buy by.