redis-resharding-proxy icon indicating copy to clipboard operation
redis-resharding-proxy copied to clipboard

ketama distribution

Open ktiwary opened this issue 11 years ago • 2 comments

I used the proxy for resharding based on keys pattern and it worked like a charm. I was wondering if you can add a support for the ketama distribution too. https://github.com/twitter/twemproxy/blob/master/src/hashkit/nc_ketama.c

Where one can give the algo name instead of key pattern to the proxy. Eg:- redis-resharding-proxy --master-host=redis1.srv --proxy-port=5400 --distribution=ketama --hash=murmur

ktiwary avatar Nov 20 '14 19:11 ktiwary

@ktiwary that should be fairly easy to add.

AFAIK there's no libketama in Go. There are some side projects, like this one: https://github.com/dgryski/go-ketama/

If we go some libketama in Go, I would integrate it.

smira avatar Nov 24 '14 13:11 smira

There's also https://github.com/ngerakines/ketama - I'm not sure which one is better, or they're identical.

smira avatar Nov 24 '14 13:11 smira