121 reputation
4
bio website readystate4.com
location San Francisco, CA
age 31
visits member for 2 years, 10 months
seen Aug 28 at 0:39

Hi I'm Mauvis. I like to help out where I can and contribute to the open source community.

I was formally a Senior Frontend Games Engineer at Tapulous / Disney Mobile and previous to that a Senior Frontend Platform Engineer at KickApps. I now make mobile web apps for a living.

For my technical blog on JavaScript, front-end mobile development, emacs, and other meanderings check out: http://readystate4.com/

Github: https://github.com/krunkosaurus


Sep
24
comment Performance: Nginx SSL slowness or just SSL slowness in general?
Thanks Maxin, good to know.
Sep
22
comment Performance: Nginx SSL slowness or just SSL slowness in general?
I did what you said learned that neither Nginx nor Apache bottlenecked with straight JSON files. Which led to me finding the problem: Rate limiting. I had set up a Nginx limit_req_zone previously for the API rate=500r/m; for a burst of 100. I don't think I ever got near this in my testing but disabling it solved the bottle neck. All those other optimizations above including using a less expensive cipher were still very helpful. Thanks so much and I owe you a few beers next time you're around San Francisco. Followed you on Twitter @krunkosaurus
Sep
22
comment Performance: Nginx SSL slowness or just SSL slowness in general?
Hi Shane, a little improvement - it made 100 requests slightly faster (59s seconds instead of 59.3s total time) but still generally slow. I took a screen shot for you of the diff between the two AB responses here: img.skitch.com/20120922-n8buhp7ji286jepsw1x2fq5y5m.jpg I ran a test and see Facebook and Github are also using RC4+RSA so I'll def keep using it! Any other ideas come to mind? You've been incredibly helpful and I can't thank you enough.
Sep
22
comment Performance: Nginx SSL slowness or just SSL slowness in general?
Thanks Shane. I ran ab -k -n 1000 -c 100 which takes a good 2 minutes to run while running cat /proc/sys/kernel/random/entropy_avail a bunch of times and got numbers between 129-175. I assume 0 would signify it is out of numbers?
Sep
21
comment Performance: Nginx SSL slowness or just SSL slowness in general?
Sorry, this is a bit over my head. Every time I call entropy_avail I get ranges from 128 to 180, many times it repeats. For those that want to understand what Shane is talking about: "Cryptographic applications such as SSL/TLS block when /dev/random is out of random numbers thus interrupting traffic between the server and its clients."
Sep
14
comment First SSL pageload slow on NGINX
Thanks for the tip, c2h5ch. Have an upvote!
Sep
14
comment First SSL pageload slow on NGINX
Thanks for the reply. I did ab -k -n 25 -c 5 https://url as a small test with ssl_session_cache. I believe this means each of the 5 concurrent connections make five back to back requests. -k flag means "enable the HTTP KeepAlive feature, i.e., perform multiple requests within one HTTP session. Default is no KeepAlive." Perhaps my test was too small but I didn't see a difference, in both cases I'm getting a total median time of 3 seconds.
Sep
13
comment First SSL pageload slow on NGINX
Just wanted to confirm that my API's are indeed 3x slower when using HTTPS. ssl_session_cache and ssl_session_timeout didn't improve the time any in my ApacheBench tests. Thanks for the response, though.