Code Monkey home page Code Monkey logo

memcached-dd's Introduction

-------------------------------------------------------------------------------
Memcached-dd
-------------------------------------------------------------------------------

Fork of memcached providing dump to disk feature.
Comparing to other solution(s) you may heard about, it's pure memcached with only patch. Not noSQL wich just support memcached protocol (Tarantool or MemBase).

Usage is straightforward: just add `-F file' option to command-line. Memcached will read this `file' at start and write to file.tmp when SIGUSR2 received. Then (after successfull write), it will rename file.tmp -> file. So, `file' should be never truncated.
Dump performs in separate thread, so it doesn't affect memcached itself.
For example:
$ memcached -F /tmp/memcache.dump -m 64 -p 11211 -l 127.0.0.1 


-------------------------------------------------------------------------------
INSTALLATION:
-------------------------------------------------------------------------------
./version.sh
autoreconf -fiv
./configure
make
sudo make install

-------------------------------------------------------------------------------
Original README:
-------------------------------------------------------------------------------

Dependencies:
# Memcached

## Dependencies

* libevent, http://www.monkey.org/~provos/libevent/ (libevent-dev)

## Environment

### Linux

If using Linux, you need a kernel with epoll.  Sure, libevent will
work with normal select, but it sucks.

epoll isn't in Linux 2.4, but there's a backport at:

    http://www.xmailserver.org/linux-patches/nio-improve.html

You want the epoll-lt patch (level-triggered).

### Mac OS X

If you're using MacOS, you'll want libevent 1.1 or higher to deal with
a kqueue bug.

Also, be warned that the -k (mlockall) option to memcached might be
dangerous when using a large cache.  Just make sure the memcached machines
don't swap.  memcached does non-blocking network I/O, but not disk.  (it
should never go to disk, or you've lost the whole point of it)

## Website

* http://www.memcached.org

## Contributing

Want to contribute?  Up-to-date pointers should be at:

* http://contributing.appspot.com/memcached

memcached-dd's People

Contributors

akrymov avatar athomason avatar bradfitz avatar bremner avatar brianaker avatar brion avatar capttofu avatar clintwebb avatar crucially avatar dkrotx avatar dormando avatar dpaneda avatar drbrain avatar dsporter avatar dustin avatar elambert avatar electrum avatar emonty avatar evmar avatar ingenthr avatar kroki avatar lenn0x avatar lindner avatar mjhostet avatar robodchristian avatar steveyen avatar swills avatar toofishes avatar trondn avatar victorkirkebo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.