Lawrence Pit <lawrence....@gmail.com> wrote: > >[2] > >http://mid.gmane.org/cak4qkg32dggnbztzcb6noh5hu_drhmofafhk-6xvy-t86++...@mail.gmail.com > >I haven't heard back on results of our nasty/crazy solution, though. > > fyi: I've been running that patch for a while in our staging > environment. As far as I can tell it works. Though we haven't tested > it with older browsers such as IE6 (we do not have that requirement) > nor with all of the API clients we see (java, python, etc., we do > have that requirement). > > Hopefully we're bringing that patch into our production environment > within the next couple of weeks, and then we should see results > later that week. > > Tom Burns wrote: > >Unexpectedly the patch also helped us ward off a DoS attack where the > >attackers were disconnecting immediately after making a request. > > Awesome! > > The only thing that worries me is that Eric calls this a > "nasty/crazy solution". :p Not sure why. Seems to me it's a rather > smart solution that perhaps in the future would deserve to be the > default.
Until now, it was unproven. AFAIK, no other app server does anything similar. Maybe other servers/protocols have similar things, I'd love to know. > A related question: is it possible to get insight in what's in the > unicorn queue and for how long requests have been queued there? On Linux, tcpi_last_data_recv in the structure returned by TCP_INFO tells you when the last packet was received on the socket, so it's an accurate indication of queue time. Raindrops provides an interface for accessing it: http://raindrops.bogomips.org/Raindrops/LastDataRecv.html I haven't heard much feedback about it, though. Using SystemTap (or similar solutions), I think the same information may be retrieved without modifying the Ruby process. I'm just starting my exploration of SystemTap, though... Raindrops::Watcher is less accurate/informative, but can run without modifying the process. I've used this heavily, but haven't found anything interesting since I don't get enough traffic. http://raindrops.bogomips.org/Raindrops/Watcher.html _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying