Git Product home page Git Product logo

overlord's Introduction

Overlord

Build Status GoDoc codecov Go Report Card

Overlord is a proxy based high performance Memcached and Redis solution written in Go.
It is fast and lightweight and used primarily to horizontally scale your distributed caching architecture.
It is inspired by Twemproxy,Codis.

Quick Start

Download

cd $GOPATH/src
git clone https://github.com/felixhao/overlord.git

Build

cd $GOPATH/src/overlord/cmd/proxy
go build

Run

./proxy -cluster=proxy-cluster-example.toml
Please first run a memcache or redis server, which bind 11211 or 6379 port.

Test

# test memcache
echo -e "set a_11 0 0 5\r\nhello\r\n" | nc 127.0.0.1 21211
# STORED
echo -e "get a_11\r\n" | nc 127.0.0.1 21211
# VALUE a_11 0 5
# hello
# END

# test redis
python ./scripts/validate_redis_features.py # require fakeredis==0.11.0 redis==2.10.6 gevent==1.3.5

Congratulations! You've just run the overlord proxy.

Features

  • support memcache protocol
  • support redis&cluster protocol
  • connection pool for reduce number to backend caching servers
  • keepalive & failover
  • hash tag: specify the part of the key used for hashing
  • promethues stat metrics support
  • cache backup
  • hot reload: add/remove cache node
  • QoS: limit/breaker
  • L1&L2 cache
  • hot|cold cache
  • broadcast
  • cache node scheduler

Architecture

architecture

Contributing

Overlord is probably not perfect, but you are welcome to use it in your dev/test/product and so please let me know if anything feels wrong or incomplete.
I'm trying very hard to keep it simple and fast. And I always happy to receive pull requests. It follow the gitflow, please send you pull request to develop branch.

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.