<?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 Why kv store lookup is much slower than csv lookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-kv-store-lookup-is-much-slower-than-csv-lookup/m-p/484544#M135635</link>
    <description>&lt;P&gt;Hi everyone!&lt;BR /&gt;
We've moved some of heavy lookups to kv store and now they work faster and more stable. But one of them barely can calculate something, being inserted in a search with &lt;CODE&gt;lookup&lt;/CODE&gt; even on 24 hour span, while it easily loads with &lt;CODE&gt;inputlookup&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Accelerated field is a hexadecimal uid of 16 symbols. To make it easier for splunk to accelerate it, we converted it in a bigint and accelerated on this new field. Still the same slowness. It was rewritten but it didn't help. And its csv version lookups much faster, but we had some issues with updating large lookups so we moved to kv.&lt;/P&gt;

&lt;P&gt;Slow-lookuped kv has 10mln entries and around 5 fields.&lt;BR /&gt;
Fast-lookuped kv with 40mln entries and 10 fields works fine (with accelerated field also converted from hex to bigint)&lt;/P&gt;

&lt;P&gt;Server: 251.81 GB Physical Memory, 20 CPU Cores&lt;/P&gt;

&lt;P&gt;in limits.conf:&lt;BR /&gt;
max_threads_per_outputlookup = 10&lt;/P&gt;

&lt;P&gt;in server.conf:&lt;BR /&gt;
oplogSize = 2000&lt;/P&gt;

&lt;P&gt;What can cause such slowness? What params can we tune?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:10:19 GMT</pubDate>
    <dc:creator>iKate</dc:creator>
    <dc:date>2020-09-30T05:10:19Z</dc:date>
    <item>
      <title>Why kv store lookup is much slower than csv lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-kv-store-lookup-is-much-slower-than-csv-lookup/m-p/484544#M135635</link>
      <description>&lt;P&gt;Hi everyone!&lt;BR /&gt;
We've moved some of heavy lookups to kv store and now they work faster and more stable. But one of them barely can calculate something, being inserted in a search with &lt;CODE&gt;lookup&lt;/CODE&gt; even on 24 hour span, while it easily loads with &lt;CODE&gt;inputlookup&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Accelerated field is a hexadecimal uid of 16 symbols. To make it easier for splunk to accelerate it, we converted it in a bigint and accelerated on this new field. Still the same slowness. It was rewritten but it didn't help. And its csv version lookups much faster, but we had some issues with updating large lookups so we moved to kv.&lt;/P&gt;

&lt;P&gt;Slow-lookuped kv has 10mln entries and around 5 fields.&lt;BR /&gt;
Fast-lookuped kv with 40mln entries and 10 fields works fine (with accelerated field also converted from hex to bigint)&lt;/P&gt;

&lt;P&gt;Server: 251.81 GB Physical Memory, 20 CPU Cores&lt;/P&gt;

&lt;P&gt;in limits.conf:&lt;BR /&gt;
max_threads_per_outputlookup = 10&lt;/P&gt;

&lt;P&gt;in server.conf:&lt;BR /&gt;
oplogSize = 2000&lt;/P&gt;

&lt;P&gt;What can cause such slowness? What params can we tune?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-kv-store-lookup-is-much-slower-than-csv-lookup/m-p/484544#M135635</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2020-09-30T05:10:19Z</dc:date>
    </item>
  </channel>
</rss>

