227 reputation
417
bio website facebook.com/thenonsequitur
location New York, NY
age 31
visits member for 3 years, 6 months
seen 8 hours ago
puts 10.downto(1).each{ |i| puts i }
puts 'Blast off!'

puts (10.downto(1).map{ |i| i.to_s } + ['Blast Off!']).join("\n")

(1..10).to_a.reverse.each{ |i| puts i }
puts 'Blast off!'

Jun
28
revised Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
added 819 characters in body
Jun
28
comment Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
Nope, ulimit settings on both machines are the same (specifically open files is 65535, everything else looks fine too).
Jun
28
comment Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
Throughput between each machine and a db machine is the same now, and latency between the new machine and db machine is about 30% more than between old machine and db. But 30% more that a tenth of a millisecond is not the problem.
Jun
28
comment Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
same problem with even a worse magnitude using tcp/ip (write queue climbs even faster). I have nginx / unicorn / kernel all set up exactly the same (as far as I can tell) on a different machine, and that other machine is not exhibiting this problem. (I can switch dns between the two machines, to get live load testing, and have dns on a 60-sec ttl)
Jun
28
comment Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
Got a new server moved to a location to provide adequate throughput, completely rebuilt the system, and still have the same problem. So it turns out my problem is unresolved after all... =( I still think it's app-specific, but can't think of anything. This new server is set up exactly like another server where it's working fine. Yes, somaxconn and netdev_max_backlog are st up correctly.
Jun
28
revised Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
deleted 192 characters in body
Jun
28
comment How to set the default source (src) ip address when you have mulitple IP's on a virtual interface
@foocorpluser, thanks for this! This solved a similar problem for me. You might want to consider posting your solution as an actual answer here instead of just leaving it as an edit in your question.
Jun
20
awarded  Benefactor
Jun
20
comment Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
I figured out the problem. See the answer I posted. It actually was the app bottlenecking, not the socket, just as you posit. I had ruled this out earlier due to a mis-diagnosis, but turns out the problem was throughput to another server. Figured this out just a couple hours ago. I'm going to award you the bounty, since you pretty much nailed the source of the problem even despite the mis-diagnosis I put in the question; however, going to give the checkmark to my answer, because my answer describes the exact circumstances so might help someone in the future with a similar issue.
Jun
19
comment Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
Thanks for the idea, but this didn't appear to make any difference.
Jun
18
awarded  Tumbleweed
Jun
17
awarded  Promoter
Jun
15
revised Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
added 904 characters in body
Jun
15
comment Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
@Khaled, ulimit -n says 65535.
Jun
14
revised Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
edited tags
Jun
14
asked Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?
Jun
11
asked Why is there a separate “unicorn_rails” for Rails apps?
May
23
comment Multiple Linux sysadmins working as root
+1.. I'd go further than saying "The second option is the best". I'd it's the only reasonable option. Options one and three vastly decrease the security of the system from both outside attacks and mistakes. Besides, #2 is how the system was designed to be primarily used.
Apr
11
revised how to rewrite '%25' in url
added 2 characters in body
Apr
11
revised how to rewrite '%25' in url
added 479 characters in body