ATTN: .Net Systems Engineers

The Lounge is for non-sport-related topics other than politics, war and religion. Order up your favorite beverage, kick back and enjoy the conversation! RATING: PG-13
ATTN: .Net Systems Engineers
Sun Jan 13, 2013 1:45 pm
  • The "Bad Gateway" error you are getting from NginX is caused by concurrency setting mismatches between NginX and whatever you are running on the back-end (Apache with mod-php, or php-fpm?). NginX is reporting this error because the back end is busy and cannot accept any more incoming connections.

    Make sure that the NginX config and whatever you are using for back-end PHP processing have the same concurrency settings.

    Signed,
    -Smokin'
    Feel free to contact me if you need legal assistance. I have a great lawyer that helped me with an ex who violated my privacy and kept harassing me on MySpace and Facebook. He's very good. And there is legal precedent. - linuxpro

    He is hold back the legion of boom - skater18000
    User avatar
    SmokinHawk
    *PLATINUM SUPPORTER*
    *PLATINUM SUPPORTER*
     
    Posts: 5724
    Joined: Thu Apr 30, 2009 9:29 am
    Location: Back in Seattle


Re: ATTN: .Net Systems Engineers
Sun Jan 13, 2013 4:15 pm
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Understood,
    -99% of this post's readers
    World Champion Seattle Seahawks football. It's an addiction, and there is no cure.
    Les Norton - gone but never forgotten. Rest in blue and green peace, my friend.
    User avatar
    Seahawk Sailor
    * .NET Navy Bad Ass *
     
    Posts: 18799
    Joined: Sat Mar 03, 2007 9:23 am
    Location: The beautiful PNW


Re: ATTN: .Net Systems Engineers
Sun Jan 13, 2013 4:31 pm
  • Seahawk Sailor wrote:Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Understood,
    -99% of this post's readers


    Not sure what you just said. It's all Greek to me.

    All I know is that the front end and the back end aren't properly tuned for high numbers of concurrent users. The front-end is configured to handle more connections than the back-end, so once it overflows, the "bad gateway" error is churned out.
    Feel free to contact me if you need legal assistance. I have a great lawyer that helped me with an ex who violated my privacy and kept harassing me on MySpace and Facebook. He's very good. And there is legal precedent. - linuxpro

    He is hold back the legion of boom - skater18000
    User avatar
    SmokinHawk
    *PLATINUM SUPPORTER*
    *PLATINUM SUPPORTER*
     
    Posts: 5724
    Joined: Thu Apr 30, 2009 9:29 am
    Location: Back in Seattle


Re: ATTN: .Net Systems Engineers
Sun Jan 13, 2013 5:30 pm
  • SmokinHawk wrote:Not sure what you just said. It's all Greek to me.


    Bingo!

    (but it's actually Latin)
    World Champion Seattle Seahawks football. It's an addiction, and there is no cure.
    Les Norton - gone but never forgotten. Rest in blue and green peace, my friend.
    User avatar
    Seahawk Sailor
    * .NET Navy Bad Ass *
     
    Posts: 18799
    Joined: Sat Mar 03, 2007 9:23 am
    Location: The beautiful PNW


Re: ATTN: .Net Systems Engineers
Sun Jan 13, 2013 6:51 pm
  • Seahawk Sailor wrote:
    SmokinHawk wrote:Not sure what you just said. It's all Greek to me.


    Bingo!

    (but it's actually Latin)


    I know. Was trying to make a funny. ;)
    Feel free to contact me if you need legal assistance. I have a great lawyer that helped me with an ex who violated my privacy and kept harassing me on MySpace and Facebook. He's very good. And there is legal precedent. - linuxpro

    He is hold back the legion of boom - skater18000
    User avatar
    SmokinHawk
    *PLATINUM SUPPORTER*
    *PLATINUM SUPPORTER*
     
    Posts: 5724
    Joined: Thu Apr 30, 2009 9:29 am
    Location: Back in Seattle


Re: ATTN: .Net Systems Engineers
Mon Jan 14, 2013 12:02 pm
  • Rockhawk and Anguish were talking about this problem in the mod forum today. Trying to plan long term what to do about it.

    They are planning on making the next move in time for draft day which till now has been the most posters at once.

    Over the weekend I saw over 2,800 posters at once just on the forum plus what ever more in the chat room, which is seperate.

    Think Sailor saw even more.
    Image
    On to week two. Week one was not a fluke!
    User avatar
    The Radish
    * NET Radish *
     
    Posts: 18655
    Joined: Tue Feb 27, 2007 8:18 pm
    Location: Spokane, Wa.


Re: ATTN: .Net Systems Engineers
Mon Jan 14, 2013 12:17 pm
  • The Radish wrote:Rockhawk and Anguish were talking about this problem in the mod forum today. Trying to plan long term what to do about it.

    They are planning on making the next move in time for draft day which till now has been the most posters at once.

    Over the weekend I saw over 2,800 posters at once just on the forum plus what ever more in the chat room, which is seperate.

    Think Sailor saw even more.


    Same but different. Smokin was right, a couple config tweaks needed to be made. Unfortunately I was in an aeropuerto in the middle of nowhere Mexico yesterday afternoon.
    User avatar
    Anguish
    * NET Developer *
     
    Posts: 3885
    Joined: Wed Dec 31, 1969 4:00 pm
    Location: Battle Ground, WA


Re: ATTN: .Net Systems Engineers
Mon Jan 14, 2013 1:27 pm
  • Seahawk Sailor wrote:
    SmokinHawk wrote:Not sure what you just said. It's all Greek to me.


    Bingo!

    (but it's actually Latin)


    Actually, it's not really latin. It's mostly gibberish. If I'm remembering right, this is the passage they use to test typefaces and spacing and stuff, correct? There's quite a few Latin words in there, but quite a few non-Latin words, too.
    Colt 45 and two zig zags.
    User avatar
    peachesenregalia
    * NET Starfish *
     
    Posts: 11035
    Joined: Sun Jun 14, 2009 6:29 am
    Location: Helm's Deep


Re: ATTN: .Net Systems Engineers
Mon Jan 14, 2013 1:56 pm
  • Anguish wrote:
    The Radish wrote:Rockhawk and Anguish were talking about this problem in the mod forum today. Trying to plan long term what to do about it.

    They are planning on making the next move in time for draft day which till now has been the most posters at once.

    Over the weekend I saw over 2,800 posters at once just on the forum plus what ever more in the chat room, which is seperate.

    Think Sailor saw even more.


    Same but different. Smokin was right, a couple config tweaks needed to be made. Unfortunately I was in an aeropuerto in the middle of nowhere Mexico yesterday afternoon.


    Webserver tuning can be such a pain in the ass. I host a couple high traffic community sites and use NginX to serve static content while Apache (via mod-php) handles the PHP, which is what I suspect you are doing here (perhaps php-fpm instead of Apache). APC is used to cache php opcodes while memcached is employed to store session data such that multiple web servers can be implemented and subsequently load balanced.

    In all of that configuratin', the hardest thing to tune was PHP concurrency settings as setting values too high will cause you to run out of RAM in high load situations (very bad as it causes paging to disk and horrible slowness while disk queues lengthen) while setting it too low will cause server busy or gateway unavailable issues. php-fpm is a lot better than mod-php in terms of memory usage, but can bottleneck as it relies on sockets or TCP for piping data in and out.

    If the site is presently hosted on a single server solution, moving up to a multi-server solution will cost a pretty penny (slightly more than double the cost unless "smaller" virtual servers are employed), and will require a lot of mojo to configure properly (multi-master database replication, distributed PHP session data, rsyncing of user data, etc). If you guys want any recommendations or an extra brain to help with some design issues, by all means feel free to ask. I'm a busy guy these days, but I have no problem advising on a solution.
    Feel free to contact me if you need legal assistance. I have a great lawyer that helped me with an ex who violated my privacy and kept harassing me on MySpace and Facebook. He's very good. And there is legal precedent. - linuxpro

    He is hold back the legion of boom - skater18000
    User avatar
    SmokinHawk
    *PLATINUM SUPPORTER*
    *PLATINUM SUPPORTER*
     
    Posts: 5724
    Joined: Thu Apr 30, 2009 9:29 am
    Location: Back in Seattle


Re: ATTN: .Net Systems Engineers
Thu Jan 17, 2013 4:05 pm
  • Latin has always been Greek to me... even when I was an Altar Boy.
    Yes, Rocket was a little angel.
    "We walked our (pedestrian) ass to the Super Bowl"
    Angry Doug
    "We got grit. That's it."
    Earl Thomas.
    "Check your PMs"
    Pithy Radish.
    User avatar
    Rocket
    NET Veteran
     
    Posts: 1335
    Joined: Sat Jun 30, 2012 11:12 pm
    Location: The Rain Forest




It is currently Wed Oct 22, 2014 3:58 pm

Please REGISTER to become a member

Return to [ THE NET LOUNGE ]




Information
  • Who is online