<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Memory and performance on Docs</title>
    <link>https://redis.io/docs/latest/operate/rs/databases/memory-performance/</link>
    <description>Recent content in Memory and performance on Docs</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://redis.io/docs/latest/operate/rs/databases/memory-performance/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Eviction policy</title>
      <link>https://redis.io/docs/latest/operate/rs/databases/memory-performance/eviction-policy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/operate/rs/databases/memory-performance/eviction-policy/</guid>
      <description>&lt;p&gt;The eviction policy determines what happens when a database reaches its memory limit.&lt;/p&gt;&#xA;&lt;p&gt;To make room for new data, older data is &lt;em&gt;evicted&lt;/em&gt; (removed) according to the selected policy.&lt;/p&gt;&#xA;&lt;p&gt;To prevent this from happening, make sure your database is large enough to hold all desired keys.&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;&lt;strong&gt;Eviction Policy&lt;/strong&gt;&lt;/th&gt;&#xA;          &lt;th&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; noeviction&lt;/td&gt;&#xA;          &lt;td&gt;New values aren&#39;t saved when memory limit is reached&lt;br/&gt;&lt;br/&gt;When a database uses replication, this applies to the primary database&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; allkeys-lru&lt;/td&gt;&#xA;          &lt;td&gt;Keeps most recently used keys; removes least recently used (LRU) keys&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; allkeys-lfu&lt;/td&gt;&#xA;          &lt;td&gt;Keeps frequently used keys; removes least frequently used (LFU) keys&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; allkeys-random&lt;/td&gt;&#xA;          &lt;td&gt;Randomly removes keys&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; volatile-lru&lt;/td&gt;&#xA;          &lt;td&gt;Removes least recently used keys with &lt;code&gt;expire&lt;/code&gt; field set to true&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; volatile-lfu&lt;/td&gt;&#xA;          &lt;td&gt;Removes least frequently used keys with &lt;code&gt;expire&lt;/code&gt; field set to true&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; volatile-random&lt;/td&gt;&#xA;          &lt;td&gt;Randomly removes keys with &lt;code&gt;expire&lt;/code&gt; field set to true&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt; volatile-ttl&lt;/td&gt;&#xA;          &lt;td&gt;Removes least frequently used keys with &lt;code&gt;expire&lt;/code&gt; field set to true and the shortest remaining time-to-live (TTL) value&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;eviction-policy-defaults&#34; class=&#34;group relative&#34;&gt;&#xA;  Eviction policy defaults&#xA;  &lt;a href=&#34;#eviction-policy-defaults&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;volatile-lru&lt;/code&gt; is the default eviction policy for most databases.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Database memory limits</title>
      <link>https://redis.io/docs/latest/operate/rs/databases/memory-performance/memory-limit/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/operate/rs/databases/memory-performance/memory-limit/</guid>
      <description>&lt;p&gt;When you set a database&#39;s memory limit, you define the maximum size the&#xA;database can reach in the cluster, across all database replicas and&#xA;shards, including both primary and replica shards.&lt;/p&gt;&#xA;&lt;p&gt;If the total size of the database in the cluster reaches the memory&#xA;limit, the data eviction policy is&#xA;applied.&lt;/p&gt;&#xA;&lt;h2 id=&#34;factors-for-sizing&#34; class=&#34;group relative&#34;&gt;&#xA;  Factors for sizing&#xA;  &lt;a href=&#34;#factors-for-sizing&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Factors to consider when sizing your database:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Shard placement policy</title>
      <link>https://redis.io/docs/latest/operate/rs/databases/memory-performance/shard-placement-policy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/operate/rs/databases/memory-performance/shard-placement-policy/</guid>
      <description>&lt;p&gt;In Redis Enterprise Software, the location of master and replica shards on the cluster nodes can impact the database and node performance.&#xA;Master shards and their corresponding replica shards are always placed on separate nodes for data resiliency.&#xA;The shard placement policy helps to maintain optimal performance and resiliency.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;  &lt;p&gt;In addition to the shard placement policy, considerations that determine shard placement are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Separation of master and replica shards&lt;/li&gt;&#xA;&lt;li&gt;Available persistence and Auto Tiering storage&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://redis.io/docs/latest/operate/rs/clusters/configure/rack-zone-awareness/&#34;&gt;Rack-zone awareness&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Memory available to host the database when fully populated&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The shard placement policies are:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
