[email protected] wrote: > On Thu, Dec 2, 2010 at 11:35 PM, Eric Wong <[email protected]> wrote: > > UNIX sockets are faster for nginx <-> Unicorn, but Raindrops is slower > > dealing with them since Linux doesn't export UNIX sockets stats to > > netlink the same way it does for TCP sockets. So there's always a > > tradeoff :x > > When does that netlink speed difference matter - only when collecting stats?
Yes, the performance difference is only when collecting stats. > Using "modprobe inet_diag" made the script spit out a new error: > > address active queued > linux-tcp-listener-stats.rb:42:in `tcp_listener_stats': NLMSG_ERROR > (RuntimeError) > from linux-tcp-listener-stats.rb:42 I don't think I've ever seen NLMSG_ERROR before. Are you running this as the same user that originally bound the listener (the user of the Unicorn master process)? > $ sudo modprobe -l inet_diag > /lib/modules/2.6.21.7-2.fc8xen/kernel/net/ipv4/inet_diag.ko > > I dug in to raindrops a little bit, and it seems the error associated > with the NLMSG_ERROR is -2, > "No such file or directory". Are you bound to 0.0.0.0:9000 and not 127.0.0.1:9000? Use 0.0.0.0:9000 if you're bound to that (I had another user on the raindrops mailing list with that problem). -- Eric Wong _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
