key-value数据库 tstdb
openkk
13年前
tstdb是一种基于日志重放机制的memcached兼容的key-value数据库,可用于需要缓存数据落地的一些场合。 <br /> 它兼容memcached的客户端(支持get,set和delete命令),支持value过期设置。读写性能与memcached接近。日志重放速度很快,作者测试时一亿数据的reloading(key:10bytes ,value: 20 bytes)只需要2分钟,内存占用2.1G。 <br /> <br /> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1322727404765" target="_blank">http://www.open-open.com/lib/view/home/1322727404765</a></p> <h2 style="background-image:none;border-right-width:0px;padding-left:0px;max-width:700px;border-top-width:0px;border-bottom-width:0px;font-size:large;border-left-width:0px;background-origin:initial;background-clip:initial;">Introduction</h2> <p style="line-height:1.25em;max-width:64em;">1. keys are loaded into memory, and are organized as a ternary search tree</p> <p style="line-height:1.25em;max-width:64em;">2. big values are stored on disk-based log; no disk IO for reading small values, which are less than 8 bytes</p> <p style="line-height:1.25em;max-width:64em;">3. log file and hint file are used to reload data when restarting db server</p> <p style="line-height:1.25em;max-width:64em;">4. very fast! both the qps and data reloading speed.</p> <p style="line-height:1.25em;max-width:64em;">5. a memcached compatible server.</p> <p style="line-height:1.25em;max-width:64em;"><img alt="key-value数据库 tstdb" src="https://simg.open-open.com/show/1f5149fbcbdb50ae252c106db48dad61.png" width="647" height="610" /></p> <h2 style="background-image:none;border-right-width:0px;padding-left:0px;max-width:700px;border-top-width:0px;border-bottom-width:0px;font-size:large;border-left-width:0px;background-origin:initial;background-clip:initial;"><a name="TODO_LIST:"></a>TODO LIST:</h2> <p style="line-height:1.25em;max-width:64em;">supporting prefix searching.</p> <h2 style="background-image:none;border-right-width:0px;padding-left:0px;max-width:700px;border-top-width:0px;border-bottom-width:0px;font-size:large;border-left-width:0px;background-origin:initial;background-clip:initial;"><a name="Have_a_look"></a>Have a look</h2> <p style="line-height:1.25em;max-width:64em;"><a style="color:#0000cc;" href="/misc/goto?guid=4959498031045247400" rel="nofollow">http://code.google.com/p/tstdb/source/browse/</a></p> <h2 style="background-image:none;border-right-width:0px;padding-left:0px;max-width:700px;border-top-width:0px;border-bottom-width:0px;font-size:large;border-left-width:0px;background-origin:initial;background-clip:initial;"><a name="Download"></a>Download</h2> <p style="line-height:1.25em;max-width:64em;"><a style="color:#0000cc;" href="/misc/goto?guid=4959498031167974724" rel="nofollow">tstdb_0.2.tar.gz</a></p> <h2 style="background-image:none;border-right-width:0px;padding-left:0px;max-width:700px;border-top-width:0px;border-bottom-width:0px;font-size:large;border-left-width:0px;background-origin:initial;background-clip:initial;"><a name="Install"></a>Install</h2> <p style="line-height:1.25em;max-width:64em;">epoll is needed!</p> <pre style="padding-bottom:0.5em;overflow-x:auto;overflow-y:auto;background-color:#eeeeee;padding-left:0.5em;padding-right:0.5em;font-family:Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;max-width:70em;font-size:12px;padding-top:0.5em;" class="prettyprint"><span style="color:#000000;" class="pln">tar </span><span style="color:#666600;" class="pun">-</span><span style="color:#000000;" class="pln">xzf tstdb_0</span><span style="color:#666600;" class="pun">.</span><span style="color:#006666;" class="lit">2.tar</span><span style="color:#666600;" class="pun">.</span><span style="color:#000000;" class="pln">gz cd tstdb make run the server</span><span style="color:#666600;" class="pun">:</span><span style="color:#000000;" class="pln"> </span><span style="color:#666600;" class="pun">./</span><span style="color:#000000;" class="pln">tstserver show help</span><span style="color:#666600;" class="pun">./</span><span style="color:#000000;" class="pln">tstserver </span><span style="color:#666600;" class="pun">-</span><span style="color:#000000;" class="pln">h</span></pre> <h2 style="background-image:none;border-right-width:0px;padding-left:0px;max-width:700px;border-top-width:0px;border-bottom-width:0px;font-size:large;border-left-width:0px;background-origin:initial;background-clip:initial;"><a name="Performance"></a>Performance</h2> <p style="line-height:1.25em;max-width:64em;">the performance is comparable to memcached.</p> <p style="line-height:1.25em;max-width:64em;">you cat test it by yourself. <a style="color:#0000cc;" href="/misc/goto?guid=4959498031294247618" rel="nofollow">benchmark</a></p>