News for hackers. Stuff that matters.

emre-yilmaz

Re:Redis (consistent hashing based) sharding made easy on Thursday June 27, 2013 @07:43AM (#5951776)
> 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".

Re:Redis (consistent hashing based) sharding made easy on Thursday June 27, 2013 @07:33AM (#5951741)
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. :)

Re:Redis (consistent hashing based) sharding made easy on Thursday June 27, 2013 @05:08AM (#5951300)
It doesn't support like this. It seems easy to implement it like that though. I will do it when I have free time.
Re:Redis (consistent hashing based) sharding made easy on Thursday June 27, 2013 @05:02AM (#5951287)
another good alternative: https://github.com/disqus/nydus
Re:Redis (consistent hashing based) sharding made easy on Thursday June 27, 2013 @05:01AM (#5951284)
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.

Re:Redis (consistent hashing based) sharding made easy on Thursday June 27, 2013 @04:55AM (#5951267)
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 :)

Re:Managing SSH configurations with Python on Tuesday May 28, 2013 @09:50AM (#5780002)
Additionaly, storm's parser includes a bunch of fixes for multiple hostnames, multiple localforward/remoteforward directions and comment line handling.
Re:A command line tool to manage your ssh connections on Tuesday May 21, 2013 @11:19AM (#5744237)
happy to hear that :)

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

Re:A command line tool to manage your ssh connections on Tuesday May 21, 2013 @10:19AM (#5743764)
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.

Re:A command line tool to manage your ssh connections on Tuesday May 21, 2013 @10:12AM (#5743706)
Nothing. Maybe just getting a list of host entries in a clean way.
Re:A command line tool to manage your ssh connections on Tuesday May 21, 2013 @10:11AM (#5743697)
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>

Re:.DS_Store for non-mac users on Sunday May 19, 2013 @11:24AM (#5733103)
well, fake ones doesn't include that either.
Re:Redis backed queue library for python on Monday August 15, 2011 @08:10PM (#2889222)
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)