<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Ceph_Cach_tier</id>
	<title>Ceph Cach tier - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Ceph_Cach_tier"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Ceph_Cach_tier&amp;action=history"/>
	<updated>2026-05-04T17:29:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Ceph_Cach_tier&amp;diff=7711&amp;oldid=prev</id>
		<title>Chenhui at 16:12, 21 May 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Ceph_Cach_tier&amp;diff=7711&amp;oldid=prev"/>
		<updated>2015-05-21T16:12:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:12, 21 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l66&quot; &gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;rados -p EC-pool put object2 /tmp/file1&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;rados -p EC-pool put object2 /tmp/file1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note: when use this with openstack, need to solve the openstack user(cinder, glance and etc) permission on cache pools.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chenhui</name></author>
	</entry>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Ceph_Cach_tier&amp;diff=7701&amp;oldid=prev</id>
		<title>Chenhui: Created page with &quot;On ceph-node1 &lt;syntaxhighlight&gt;   126  ceph osd getcrushmap -o crushmapdump   127  crushtool -d crushmapdump -o crushmapdump-decompiled   128  vim crushmapdump-decompiled    129  crushto...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Ceph_Cach_tier&amp;diff=7701&amp;oldid=prev"/>
		<updated>2015-05-21T16:09:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;On ceph-node1 &amp;lt;syntaxhighlight&amp;gt;   126  ceph osd getcrushmap -o crushmapdump   127  crushtool -d crushmapdump -o crushmapdump-decompiled   128  vim crushmapdump-decompiled    129  crushto...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;On ceph-node1&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
  126  ceph osd getcrushmap -o crushmapdump&lt;br /&gt;
  127  crushtool -d crushmapdump -o crushmapdump-decompiled&lt;br /&gt;
  128  vim crushmapdump-decompiled &lt;br /&gt;
  129  crushtool -c crushmapdump-decompiled -o crushmapdump-compiled&lt;br /&gt;
  130  ceph osd setcrushmap -i crushmapdump-compiled &lt;br /&gt;
  131  ceph osd tree&lt;br /&gt;
  132  ceph osd pool create cache-pool 32 32&lt;br /&gt;
  134  ceph osd pool set cache-pool crush_ruleset 4&lt;br /&gt;
  135  rados -p cache-pool ls&lt;br /&gt;
  136  rados -p cache-pool put object1 /etc/hosts&lt;br /&gt;
  137  rados -p cache-pool ls&lt;br /&gt;
  138  ceph osd map cache-pool object1&lt;br /&gt;
  139  rados -p cache-pool rm object`&lt;br /&gt;
  140  rados -p cache-pool rm object1&lt;br /&gt;
  141  history&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
on line 128, the crushmapdump-decompiled should be added the following content:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
root cache {&lt;br /&gt;
        id -5           # do not change unnecessarily&lt;br /&gt;
        # weight 8.880&lt;br /&gt;
        alg straw&lt;br /&gt;
        hash 0  # rjenkins1&lt;br /&gt;
        item osd.3 weight 0.010&lt;br /&gt;
        item osd.6 weight 0.010&lt;br /&gt;
        item osd.10 weight 0.010&lt;br /&gt;
}&lt;br /&gt;
rule cache-pool {&lt;br /&gt;
        ruleset 4&lt;br /&gt;
        type replicated&lt;br /&gt;
        min_size 1&lt;br /&gt;
        max_size 10&lt;br /&gt;
        step take cache&lt;br /&gt;
        step chooseleaf firstn 0 type osd&lt;br /&gt;
        step emit&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Creating a cache tier:&lt;br /&gt;
on ceph-node1:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
  161  ceph osd tier add EC-pool cache-pool&lt;br /&gt;
  162  ceph osd tier cache-mode cache-pool writeback&lt;br /&gt;
  163  ceph osd tier set-overlay EC-pool cache-pool&lt;br /&gt;
  164  ceph osd dump | egrep -i &amp;quot;EC-pool|cache-pool&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
configure the cache tier:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
ceph osd pool set cache-pool hit_set_type bloom&lt;br /&gt;
ceph osd pool set cache-pool hit_set_count 1&lt;br /&gt;
ceph osd pool set cache-pool hit_set_period 300&lt;br /&gt;
ceph osd pool set cache-pool target_max_bytes 1000000&lt;br /&gt;
ceph osd pool set cache-pool target_max_objects 10000&lt;br /&gt;
ceph osd pool set cache-pool cache_min_flush_age 300&lt;br /&gt;
ceph osd pool set cache-pool cache_min_evict_age 300&lt;br /&gt;
ceph osd pool set cache-pool cache_target_dirty_ratio .01&lt;br /&gt;
ceph osd pool set cache-pool cache_target_full_ratio .2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
test the cache tier:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
dd if=/dev/zero of=/tmp/file1 bs=1M count=500&lt;br /&gt;
rados -p EC-pool put object1 /tmp/file1&lt;br /&gt;
rados -p EC-pool ls&lt;br /&gt;
rados -p cache-pool ls&lt;br /&gt;
rados -p EC-pool put object2 /tmp/file1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Chenhui</name></author>
	</entry>
</feed>