<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can anyone explain Kafka rack awareness feature? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152520#M48789</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14468/andisonde.html"&gt;Andi Sonde&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you pointed-out, Kafka 0.10.0.0 supports rack awareness. &lt;A href="https://issues.apache.org/jira/browse/KAFKA-1215"&gt;KAFKA-1215&lt;/A&gt; added a rack-id to kafka config. You can specify that a broker belongs to a particular rack by
adding a property to the broker config: broker.rack=my-rack-id.&lt;/P&gt;&lt;P&gt;The rack awareness
feature spreads replicas of the same partition across different racks. This
extends the guarantees Kafka provides for broker-failure to cover rack-failure,
limiting the risk of data loss should all the brokers on a rack fail at once. The
feature can also be applied to other broker groupings such as availability
zones in EC2.&lt;/P&gt;&lt;P&gt;Let's assume an example with 6 brokers. Brokers 0,1 and 2 are on the same rack, and brokers
3,4 and 5 are on a separate rack. Instead of picking brokers in the order of 0
to 5, we order them: 0,3,1,4,2,5 - each broker is followed by a broker
from a different rack. In this case, if leader for partition 0 is on broker 4,
the first replica will be on broker 2 which is on a completely different rack. If the first rack goes offline, we know that we still
have a surviving replica and therefore the partition is still available. This
will be true for all replicas, so we have guaranteed availability in case
of rack failure.&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;If any response was helpful, please vote/accept best answer.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2016 07:59:22 GMT</pubDate>
    <dc:creator>cstanca</dc:creator>
    <dc:date>2016-12-14T07:59:22Z</dc:date>
    <item>
      <title>Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152517#M48786</link>
      <description>&lt;P&gt;I learned recently that Kafka 0.10 supports rack awareness. I researched Kafka wiki and JIRA and got some understanding, but it would be great if any of the HCC experts could provide an example of how replication works with rack awareness.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 07:44:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152517#M48786</guid>
      <dc:creator>andisonde</dc:creator>
      <dc:date>2016-12-14T07:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152518#M48787</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14468/andisonde.html" nodeid="14468"&gt;@Andi Sonde&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rack awareness for Kafka works similar in principal to HDFS rack awareness. If you are able to define which rack each of your nodes belongs to, then Kafka is able to intelligently allocate replicas on nodes that do not share the same rack.  This gives you better fault tolerance.  If a rack goes down due to maintenance or power loss, you have a reduced chance that a leader and all of the replicas are located in that single rack.&lt;/P&gt;&lt;P&gt;Obviously, this feature is only beneficial if you are able to spread your Kafka brokers across racks.  Without rack awareness, Kafka has no way to know which nodes are in a common rack. That means it is possible for all of the brokers and their replicas for a topic could be taken offline when a single rack goes down.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 07:53:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152518#M48787</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-12-14T07:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152519#M48788</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14468/andisonde.html" nodeid="14468"&gt;@Andi Sonde&lt;/A&gt; , not sure if you came across the following in your research:  &lt;A href="http://kafka.apache.org/documentation.html#basic_ops_racks"&gt;http://kafka.apache.org/documentation.html#basic_ops_racks&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 07:57:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152519#M48788</guid>
      <dc:creator>lgeorge</dc:creator>
      <dc:date>2016-12-14T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152520#M48789</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14468/andisonde.html"&gt;Andi Sonde&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you pointed-out, Kafka 0.10.0.0 supports rack awareness. &lt;A href="https://issues.apache.org/jira/browse/KAFKA-1215"&gt;KAFKA-1215&lt;/A&gt; added a rack-id to kafka config. You can specify that a broker belongs to a particular rack by
adding a property to the broker config: broker.rack=my-rack-id.&lt;/P&gt;&lt;P&gt;The rack awareness
feature spreads replicas of the same partition across different racks. This
extends the guarantees Kafka provides for broker-failure to cover rack-failure,
limiting the risk of data loss should all the brokers on a rack fail at once. The
feature can also be applied to other broker groupings such as availability
zones in EC2.&lt;/P&gt;&lt;P&gt;Let's assume an example with 6 brokers. Brokers 0,1 and 2 are on the same rack, and brokers
3,4 and 5 are on a separate rack. Instead of picking brokers in the order of 0
to 5, we order them: 0,3,1,4,2,5 - each broker is followed by a broker
from a different rack. In this case, if leader for partition 0 is on broker 4,
the first replica will be on broker 2 which is on a completely different rack. If the first rack goes offline, we know that we still
have a surviving replica and therefore the partition is still available. This
will be true for all replicas, so we have guaranteed availability in case
of rack failure.&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;If any response was helpful, please vote/accept best answer.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 07:59:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152520#M48789</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-14T07:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152521#M48790</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2695/myoung.html"&gt;@Michael Young&lt;/A&gt;,@&lt;A href="https://community.hortonworks.com/users/36/lgeorge.html"&gt;lgeorge&lt;/A&gt;,@&lt;A href="https://community.hortonworks.com/users/3486/cstanca.html"&gt;Constantin Stanca&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Wow! That was quick! Thanks so much all of you. I voted-up all your responses and choose Constantin's for the example which was very explicit and easy to follow.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 08:04:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152521#M48790</guid>
      <dc:creator>andisonde</dc:creator>
      <dc:date>2016-12-14T08:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152522#M48791</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to understand the impact and design for zookeeper setup since Kafka is dependent on zookeeper for its operations. &lt;/P&gt;&lt;P&gt;Zookeeper specifies 2F+1 no of nodes to be setup for reliable fault tolerance. Consider that If I have 2 racks and I setup 4 nodes on rack A and 5 on rack B (Total 9 zookeeper nodes) and rack B goes down (5 zookeeper nodes goes down). In that case with the requirement of 2F+1, it needs 11 zookeeper nodes where as I have only 9 nodes. So zookeeper in case of rack failure with higher no of nodes will not be able to sustain which will impact Kafka cluster behavior. &lt;/P&gt;&lt;P&gt;Can you please provide your inputs on how to better setup zookeeper so that Kafka can work seamlessly in case of 2 rack infrastructure.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 00:58:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152522#M48791</guid>
      <dc:creator>techsoln</dc:creator>
      <dc:date>2017-06-09T00:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152523#M48792</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to understand the impact and design for zookeeper setup since Kafka is dependent on zookeeper for its operations. &lt;/P&gt;&lt;P&gt;Zookeeper specifies 2F+1 no of nodes to be setup for reliable fault tolerance. Consider that If I have 2 racks and I setup 4 nodes on rack A and 5 on rack B (Total 9 zookeeper nodes) and rack B goes down (5 zookeeper nodes goes down). In that case with the requirement of 2F+1, it needs 11 zookeeper nodes where as I have only 9 nodes. So zookeeper in case of rack failure with higher no of nodes will not be able to sustain which will impact Kafka cluster behavior. &lt;/P&gt;&lt;P&gt;Can you please provide your inputs on how to better setup zookeeper so that Kafka can work seamlessly in case of 2 rack infrastructure&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 01:12:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/152523#M48792</guid>
      <dc:creator>techsoln</dc:creator>
      <dc:date>2017-06-09T01:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/298692#M48793</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22434"&gt;@techsoln&lt;/a&gt;&amp;nbsp;were you able to implement this design? Can you please share your experience? Am more curious to know how did you manage to get the Zookeeper design.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 12:32:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/298692#M48793</guid>
      <dc:creator>Kapardjh</dc:creator>
      <dc:date>2020-06-26T12:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain Kafka rack awareness feature?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/298702#M48794</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79430"&gt;@Kapardjh&lt;/a&gt;,&amp;nbsp;As this is an older post, you would have a better chance of receiving a resolution by &lt;A href="https://community.cloudera.com/t5/forums/postpage/board-id/Questions" target="_self"&gt;starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 15:27:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-anyone-explain-Kafka-rack-awareness-feature/m-p/298702#M48794</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2020-06-26T15:27:16Z</dc:date>
    </item>
  </channel>
</rss>

