Reputation
675
Top tag
Next privilege 1,000 Rep.
See vote count; VIP usercard
Badges
5 26
Impact
~41k people reached

Aug
6
awarded  Popular Question
Jul
24
comment Nginx cache shared between multiple servers
@mVChr Interesting. Have you tried running rsync or similar continuously? In the end for my use, I eventually got Redis working but this doesn't allow for a very large cache since the entire Redis collection must be in memory. 16GB fills up fast on my application.
Jul
22
comment RAID-5: Two disks failed simultaneously?
Everyone's comments on here regarding drive failure are correct. Let me add another reason to consider the precariousness of the situation... power supplies fail all the time, and sometimes when they fail you end up frying things. I actually had a hard drive once that had a strange failure, dead shorting the +5v side of the power supply which caused (somehow) 2 other drives to go up in smoke.
Jul
9
revised Update Cache-Control max-age when srcache returns response from cache
Removed errant `pragma` header, since it is a bug elsewhere and not core to this question.
Jul
9
comment Update Cache-Control max-age when srcache returns response from cache
Wow... good catch on that Pragma header... I removed that long ago, but it looks like there is some other code I have that is adding it. I didn't even notice. Thanks for that! Regarding max-age, the issue is that I'm caching both server-side and client-side. I have a server-side cache which caches all of the response headers as well, as that's what srcache does. However when I return that result, the Expires header is naturally still correct since it specifies a specific time in the future. The max-age is not, since it specifies a number of seconds. Is there no way to update it?
Jul
2
awarded  Curious
Jul
1
accepted Load balancing in Nginx with redirect rather than proxy
Jul
1
asked Update Cache-Control max-age when srcache returns response from cache
Jun
10
comment Storing username in nginx logs
@nishant I haven't written anything with Django so I can't give you specific advice, but it looks like it supports middleware. I would write a middleware module that takes care of adding the extra header.
Jun
10
comment Storing username in nginx logs
@nishant That depends entirely on your code. You will have to write something or modify what you have to output the username in the response header.
Jun
10
answered Storing username in nginx logs
Jun
6
awarded  Civic Duty
Jun
2
awarded  Popular Question
May
22
comment How to make modification take affect without restart nginx?
USR2 is for upgrading the executable, not for simple config reloading.
May
22
suggested rejected edit on How to make modification take affect without restart nginx?
May
22
asked Load balancing in Nginx with redirect rather than proxy
May
7
asked Nginx HttpRedis2Module get value only
May
7
comment Is the connection from PHP to a different MySQL server 100% secure?
This is correct. The wire protocol for MySQL is anything but secure... that isn't the intent of the protocol. You can see this by firing up Wireshark and running some queries. A tunnel is needed here. What I do on my own boxes is simply hook them up via a VPN. While this isn't the most efficient setup, it works well for links that don't require a ton of bandwidth or low latency, while enabling me to connect a bunch of cheap VPSes on various providers.
Apr
24
comment Vagrant synced folders aren't case sensitive
@JasonSuave The problem is actually with VirtualBox and what it uses for the mounts, not Vagrant. Vagrant is only controlling the VirtualBox mounts. You might have different experiences on VMWare... I haven't tried.
Mar
27
comment Nginx cache shared between multiple servers
@hangover I see no reason to re-invent the wheel. Nginx cache works well and fast. If we can avoid the overhead of running requests through the application at all, we can keep things nice and fast. Nginx responds to cached requests for us in under 5 milliseconds. Launching our PHP application, even for it to provide a cached response, will probably 10x slower than that. Nginx caching is working well for us now, we just need to distribute that cache among many servers.