<?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>topic Re: Search factor vs Replication factor in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/619952#M215485</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One&amp;nbsp;&lt;SPAN&gt;doubt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example- SF=2 &amp;amp; RF=2 are set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the searchable bucket copy is present in the multisite(2 sites here) index cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i.e&lt;BR /&gt;Site1 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;searchable bucket&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Site2 =&amp;nbsp;searchable bucket&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does both searchable bucket act as primary search copy in the indexer cluster?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 17:54:42 GMT</pubDate>
    <dc:creator>arunsunny</dc:creator>
    <dc:date>2022-11-07T17:54:42Z</dc:date>
    <item>
      <title>Search factor vs Replication factor-If I change my SF=2 , does this mean 2 copies are changed to primary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421544#M171742</link>
      <description>&lt;P&gt;i know that setting RF=2 ensures 2 copies of buckets on available indexers. so this consume 2X times of space/disk.&lt;BR /&gt;now i also know that only the primary copy is searchable, ie SF=1 , is this the default setting for SF ./&lt;/P&gt;
&lt;P&gt;question : if i change my SF=2 , does this mean 2 copies are changed to primary ? so 2 copies are searchable ?&lt;BR /&gt;does SF increase the space requirement when changed from 1 to 2 ?&lt;/P&gt;
&lt;P&gt;is this increase in space same as RF, ie double the space or some percentage of it...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421544#M171742</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2022-11-08T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421545#M171743</link>
      <description>&lt;P&gt;@jiaqya&lt;/P&gt;

&lt;P&gt;Yes correct it will increase the disk space as well. As RF only allow to store raw data, in case of SF indexed data copies will also be there. So it will require more space.&lt;/P&gt;

&lt;P&gt;Please find the below doc for better understanding: &lt;BR /&gt;
    &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Indexer/Bucketsandclusters"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Indexer/Bucketsandclusters&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 12:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421545#M171743</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-04-22T12:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421546#M171744</link>
      <description>&lt;P&gt;Hi @vishaltaneja07011993 ,&lt;/P&gt;

&lt;P&gt;Let's understand search factor and replication factor.&lt;BR /&gt;
&lt;STRONG&gt;Replication Factor&lt;/STRONG&gt; - Number of copies of buckets.&lt;BR /&gt;
&lt;STRONG&gt;Search Factor&lt;/STRONG&gt; - Number of searchable copies of buckets.&lt;/P&gt;

&lt;P&gt;RF=2 &amp;amp; SF=1 consume 2X times of space/disk - Wrong!!! It takes somewhat lesser space. If RF=2 and SF=2 then it will take exact 2X disc space. Searchable buckets contains TSIDX and bloom filter apart from raw data. Hope based on that you can understand the space requirement.&lt;/P&gt;

&lt;P&gt;Coming to primary buckets, primary buckets will always only one. It tells splunk which are the buckets to search. If any search peer goes down splunk will find other searchable buckets and make is primary if not found it make non-searchable bucket searchable and then make it primary.&lt;/P&gt;

&lt;P&gt;Hope you understand the difference between RF and SF. And also importance of primary buckets.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 13:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421546#M171744</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-04-22T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421547#M171745</link>
      <description>&lt;P&gt;Hi Vatsal, thanks for your reply.&lt;/P&gt;

&lt;P&gt;im trying to understand this with example below.&lt;/P&gt;

&lt;P&gt;if bucket size is 100GB, then RF=2, will result in 200GB, right.&lt;BR /&gt;
if SF=1, then this includes index+rawdata+bloom filter = &amp;gt; 200GB, which is more than 2X times. right..&lt;BR /&gt;
then if SF=2, then it will be 2X times of bucket+searchable.&lt;/P&gt;

&lt;P&gt;am i understanding this right..&lt;/P&gt;

&lt;P&gt;i understand about primary buckets. so i can have a primary for each site, in case of multi site ...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 15:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421547#M171745</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2019-04-22T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421548#M171746</link>
      <description>&lt;P&gt;correct SF=2 means 2X time of raw + index data files.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 10:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421548#M171746</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-04-23T10:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421549#M171747</link>
      <description>&lt;P&gt;Thanks, thats what i wanted to know.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 10:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421549#M171747</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2019-04-23T10:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421550#M171748</link>
      <description>&lt;P&gt;Correct @jiagya and @vishaltaneja07011993,&lt;/P&gt;

&lt;P&gt;Bucket can be searchable and non-searchable.&lt;BR /&gt;
Non-searchable = raw-data&lt;BR /&gt;
Searchable = raw-data + tsidx + bloomfilter&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;RF = SF (searchable buckets) + Non-searchable buckets&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 12:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/421550#M171748</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-04-23T12:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/619952#M215485</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One&amp;nbsp;&lt;SPAN&gt;doubt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example- SF=2 &amp;amp; RF=2 are set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the searchable bucket copy is present in the multisite(2 sites here) index cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i.e&lt;BR /&gt;Site1 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;searchable bucket&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Site2 =&amp;nbsp;searchable bucket&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does both searchable bucket act as primary search copy in the indexer cluster?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/619952#M215485</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2022-11-07T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/619954#M215486</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/160195"&gt;@arunsunny&lt;/a&gt;&amp;nbsp;- Regarding &lt;STRONG&gt;Search Factor &amp;amp; Replication Factor in multi-site clustering&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The multisite cluster uses different parameters with similar meanings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;site_replication_factor = origin:2, total:3&lt;/LI&gt;&lt;LI&gt;site_search_factor = origin: 1, total: 2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Here there will be a total of &lt;STRONG&gt;3&lt;/STRONG&gt; copies of _raw data (replication_factor) will be there. Two (&lt;STRONG&gt;2&lt;/STRONG&gt;) of them will be stored on the site where the data originated.&lt;/LI&gt;&lt;LI&gt;There will be a total of &lt;STRONG&gt;2&lt;/STRONG&gt; searchable copies of the bucket (_raw data + bloom filter and other metadata files) will be there. One (&lt;STRONG&gt;1&lt;/STRONG&gt;) of the buckets will be ensured to store on the site where the bucket was originally generated.&lt;/LI&gt;&lt;LI&gt;A &lt;STRONG&gt;primary copy of the bucket&lt;/STRONG&gt;: There will be &lt;STRONG&gt;always one primary copy&lt;/STRONG&gt; of the bucket, regardless of whether it's a single-site or multi-site cluster.&lt;UL&gt;&lt;LI&gt;This will be switched very quickly by the cluster master if the server holding the primary copy goes down.&lt;/LI&gt;&lt;LI&gt;The primary copy &lt;STRONG&gt;can be&lt;/STRONG&gt; on a different site than where your search head is located. Cluster Master determines that based on search affinity and other factors.&lt;UL&gt;&lt;LI&gt;Cluster Master tries to keep it on the cluster which gives better performance, but no guarantee to be on the same site all the time.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 18:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/619954#M215486</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-11-07T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/620045#M215524</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;- So from your statement "A&amp;nbsp;primary copy of the bucket: There will be&amp;nbsp;always one primary copy&amp;nbsp;of the bucket, regardless of whether it's a single-site or multi-site cluster" - &lt;STRONG&gt;you are saying&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;always one primary copy in the cluster.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But if you look at the below lines in the doc, we can keep more than one primary copy on different sites.&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.2/Indexer/Multisitesearchaffinity" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.2/Indexer/Multisitesearchaffinity&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"There are also ways to configure the site search factor to ensure that all sites have searchable copies, even without explicitly specifying some or all of them. For example, a three-site cluster with&amp;nbsp;&lt;/SPAN&gt;site_search_factor = origin:1, total:3&lt;SPAN&gt;&amp;nbsp;guarantees one searchable copy per site, and &lt;STRONG&gt;thus enables search affinity for each site. Each site will have primary copies of all buckets.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let me know your thoughts on this.&lt;/P&gt;&lt;P&gt;Happy Splunking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 06:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/620045#M215524</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2022-11-08T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search factor vs Replication factor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/620143#M215572</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/160195"&gt;@arunsunny&lt;/a&gt;&amp;nbsp;- Here is my understanding about a primary copy of a bucket from Consultant Training.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The search head always sends search requests to all the indexers (peers) to all the sites regardless of single-site or multi-site, regardless of affinity enabled or not.&lt;/LI&gt;&lt;LI&gt;The primary bucket is how Splunk decides which bucket needs to be searched.&lt;/LI&gt;&lt;LI&gt;If there is more than one primary bucket means duplicate data in the search results.&lt;/LI&gt;&lt;LI&gt;There could be multiple searchable copies of a bucket but there will be only one primary bucket. That's how Splunk ensures no duplicate data in the results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-factor-vs-Replication-factor-If-I-change-my-SF-2-does/m-p/620143#M215572</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-11-08T15:25:27Z</dc:date>
    </item>
  </channel>
</rss>

