Skip to main content

Posts

Showing posts from October, 2014

War epics and strategies

I am a big fan of War Epics, but not the recent wars. I am more interested in ancient wars.  It seems there aren’t any ancient war movies from US or UK culture that I liked except movie 300 or the Gladiator For Indian war epics I recommend Ramayana and Mahabharat   but I don’t see that many war strategies in the series. Anyone interested in real war strategies and have patience should definitely watch this series(80+ Episodes, I am at 40th right now ) War of the Three Kingdoms and if you want to see it in short then you can watch the Red Cliff movie but it doesnt do justice so for the patient watch the series, its free on youtube.

And you thought Memcached calls are cheap?

We use Memcached as a distributed cache. We also use sharding in MySQL and each customer data is on different shard. The information about which customer is stored on what shard is static and doesn’t change unless we do a manual customer move.  Because we would do an automatic move a customer in future I started storing this in memcached instead of JVM so I don’t need to coordinate in memory cache flush across multiple boxes. We recently moved a large scale system from python to Java and we were getting close to 2K request per minute on every machine. On checking APM tool I found that a lot of the time is spent in memcached.getObject. Checking one of the memcached box out of many I would found CPU on one of the cores would be pegged at 100%.  I installed  mctop by Etsy and found that the most used key was the key that would lookup this customer is on what shard sudo /opt/mctop/bin/mctop --interface=eth0 --port=23456  Inspecting all other data centres showed ...

Recharge brain by Walking in afternoon and no meeting days?

Mornings are precious to me as my brain is most active in morning but I have now 5 members in team and I daily get tons of emails to reply. After replying to emails and doing calls after 2 or so the brain was getting exhausted and I was procrastinating to pick up large tasks.  Also part of the problem was after eating meal I was feeling sleepy too. Drinking coffee wasnt helping beyond 3 or so.  I work from home so there is always this lure to take a nap but then I would feel guilty. So I started No meeting days on Wednesday/Friday Walking 20 min after lunch in afternoon No meeting days means I get an extra 2 hours in week. I also think no meeting days on Wed/Friday is good for the team also, as earlier I would do 1 hour call with 5 members and that would mean close to 10 hours of time. Now team can get 10 extra hours for working and they need not worry about the Manager vs Maker schedule on 2 days.  Of-course if they want to talk to me they can always call me. Walk...