customized formulas for memcache and nginx