HNHacker News
TopNewBestAskShowJobs

emre-yilmaz

54 karma · joined August 16, 2011

submissionscomments
emre-yilmaz··on Redis (consistent hashing based) sharding made easy
> Redis is not just a cache. Let me repeat that. Redis is not just a cache. Lots of people use Redis as a primary data store. If >Redis is your primary data store, you can't afford to have any of your keys invalidated, ever. "Minimum" might be good enough when > you're talking to Memcached, but it's not enough when you're taking to Redis.

"minimum" is enough for the people who use redis for cache, since a lot of people use it for just, plain, simple, old "caching".

emre-yilmaz··on Redis (consistent hashing based) sharding made easy
okay, tell me a python library comes with consistent hashing?

(for the record = HASH(key) MOD N is not 'consistent hashing'.)

redis-router is just a library that wraps redis-py with consistent-hashing. nothing more.

I use it in production heavily since it solves the client-side sharding problem for me. When I wrote this, there was no trustable client library comes with consistent-hashing.

I don't know what do you want to see actually. "saving the world" is a todo though. wait for the new releases. you might like it. :)

emre-yilmaz··on Redis (consistent hashing based) sharding made easy
thanks! https://github.com/emre/redis-router/commit/0d9307436e4c3b69...
emre-yilmaz··on Redis (consistent hashing based) sharding made easy
It doesn't support like this. It seems easy to implement it like that though. I will do it when I have free time.
emre-yilmaz··on Redis (consistent hashing based) sharding made easy
another good alternative: https://github.com/disqus/nydus
emre-yilmaz··on Redis (consistent hashing based) sharding made easy
Yes, these methods are dangerous to use.

I need a locking mechanism to do it safely but this will wait until I need it most likely.

emre-yilmaz··on Redis (consistent hashing based) sharding made easy
What was the problem for installation?

I use redis-router in production as a library. some of my non-pythoneer friends asked to use it in PHP, so I made a little wrapper with gevent.

It's probably not compatible with current clients. Needs testing :)

emre-yilmaz··on Managing SSH configurations with Python
Additionaly, storm's parser includes a bunch of fixes for multiple hostnames, multiple localforward/remoteforward directions and comment line handling.
emre-yilmaz··on A command line tool to manage your ssh connections
happy to hear that :)

loading and dumping ssh configs would be tricky. let me know if you need further assistance.

emre-yilmaz··on A command line tool to manage your ssh connections
There are a lot of tools like that for years.

like;

- managing /etc/hosts - managing crontab

It's just a preference to do it with a command line tool, or just doing it in the config with editor.

emre-yilmaz··on A command line tool to manage your ssh connections
Nothing. Maybe just getting a list of host entries in a clean way.
emre-yilmaz··on A command line tool to manage your ssh connections
you can override some of the ssh options if you use it with sshconfig.

example ssh config: Host vps hostname 1.1.1.1 port 22 identityfile /home/emre/.ssh/vps.pub

If you want to override stuff, just do it like ssh vps -p 99.

And there is bash completion support with ssh, too. try it.

ssh <TAB>

emre-yilmaz··on .DS_Store for non-mac users
well, fake ones doesn't include that either.
emre-yilmaz··on Redis backed queue library for python
celery is awesome and well-documented. but the problem is, it wraps everthing.

conqueue is a weekend project and is not production ready, yet. it will be simple and stupid, nothing more.

i need something lightweight and small. (a.k.a maintainable for me)