Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4]

Author Topic: nginx errors  (Read 4232 times)

Enzo

  • Bay Watcher
    • View Profile
Re: nginx errors
« Reply #45 on: April 18, 2010, 08:50:27 pm »

All morning, it was "timing out" when I tried to post...

Yeah, I was having this problem before I went to work. I was also getting nginx errors most of yesterday. Seems to be fine now though.
Logged

Shades

  • Bay Watcher
    • View Profile
Re: nginx errors
« Reply #46 on: April 19, 2010, 03:23:13 am »

Regardless, hosts with overrestricted VPS settings are one of a number of reasons why I avoid VPSes like the plague.

Why don't you just avoid the over restrictive ones instead. A (decent) VPS has much to offer over a 'dedicated host', in fact I often recommend anyone actually running sites hosted on physical systems to get hold of something like XEN and turn all their hosts into virtual ones.

The current level of hardware tech means you have almost zero overhead and the benefits of being able to move and scale hosts quickly is something that can't be overlooked. It's much easier to restart a crashed VPS than hardware in some server farm too. Much cheaper too as you tend to waste far fewer cycles because you can scale so fast.

I should point out I only use self managed VPSs, so I've not really come across limits like that, but then I have control freak like issues.
Logged
Its like playing god with sentient legos. - They Got Leader
[Dwarf Fortress] plays like a dizzyingly complex hybrid of Dungeon Keeper and The Sims, if all your little people were manic-depressive alcoholics. - tv tropes
You don't use science to show that you're right, you use science to become right. - xkcd

Blacken

  • Bay Watcher
  • Orange Polar Bear
    • View Profile
Re: nginx errors
« Reply #47 on: April 19, 2010, 03:28:32 am »

Shades is right, IMO--dealing with hardware yourself really kind of sucks. A decent VPS provider (I use Slicehost or Rackspace Cloud, which is in itself a reseller for Slicehost, for basically everything) allows you to be far, far more flexible, and generally for less money.
Logged
"There's vermin fish, which fisherdwarves catch, and animal fish, which catch fisherdwarves." - Flame11235

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: nginx errors
« Reply #48 on: April 19, 2010, 06:43:53 am »

Well, if the problem is(and it likely is) the number of connections, then the issue is that while downloading DF or DFtalk, that your connection is going to be open far longer than just browsing the forum.

Naturally, what happens, is even if only 1 in 5 connects succeed, the downloaders will have a connection open the whole time they are downloading, while forum users will close their connections as soon as they have the relatively small page downloaded.

Because of that, the available connections would fill up quickly, since most take at least 10 seconds to finish, though probably far longer, depending on the size of the file. DFtalk was a large file, so even though there wasn't as great of a rush to get it, each connection would stay open longer, so fewer forum users could get through because more of the downloads would be active at once.

Most of this is speculation, but the fact that the downloads take time to get while forum pages are relatively small, and the discusses probability of limited connections, can be easily put together to get this.
Logged
Eh?
Eh!

Locriani

  • Bay Watcher
  • Locriani == Briess
    • View Profile
    • dwarf fortress wiki
Re: nginx errors
« Reply #49 on: April 19, 2010, 10:01:10 am »

And that's a restriction of non-xen virtualized hosts.  Xen is a hypervisor (paravirtualization) while Virtuozzo is an operating system level container.  Since Xen has finer control over resources, it can actually allocate them fairly without arbitrary limits on shmpages or maxtcpconn or etc.  A dedicated server is usually not worth the cash; even if it is, though, you should be sticking Xen on it to compartmentalize your resources.

Linode comes with my recommendation; as I run the dfwiki on 3 linodes as well as the rest of my company's applications on 30 other linodes, of various sizes.  Since Linode uses Xen, there are no arbitrary resource limitations except for those in the contract (memory amount, hard disk space, CPU share if and only if the host is under heavy load).
« Last Edit: April 19, 2010, 10:02:55 am by Locriani »
Logged
I am one of many administrators of the wiki.  Please use my user page (http://dwarffortresswiki.org/index.php/User_talk:Briess) on the wiki to contact me, as I check that more often than these forums.

Blacken

  • Bay Watcher
  • Orange Polar Bear
    • View Profile
Re: nginx errors
« Reply #50 on: April 19, 2010, 10:46:55 am »

Well, if the problem is(and it likely is) the number of connections, then the issue is that while downloading DF or DFtalk, that your connection is going to be open far longer than just browsing the forum.

Naturally, what happens, is even if only 1 in 5 connects succeed, the downloaders will have a connection open the whole time they are downloading, while forum users will close their connections as soon as they have the relatively small page downloaded.

Because of that, the available connections would fill up quickly, since most take at least 10 seconds to finish, though probably far longer, depending on the size of the file. DFtalk was a large file, so even though there wasn't as great of a rush to get it, each connection would stay open longer, so fewer forum users could get through because more of the downloads would be active at once.

Most of this is speculation, but the fact that the downloads take time to get while forum pages are relatively small, and the discusses probability of limited connections, can be easily put together to get this.
The danger of you writing with such an authoritative tone is that people might think that you know what you're talking about and taking your comments as something to be relied on as factual. In truth, what you have said has no bearing on reality. There is no "available connections" limit (except for a very obscure one in code, based on the limit of file descriptors on the system--usually no less than 100,000, often many more). Each takes up a trivial amount of memory (on the order of kilobytes) and it's not like there is a bandwidth/throughput issue that large files exacerbate--the point of a modern TCP stack is to allow an arbitrary number of connections and ensure that (sans QoS, which changes the rules) each receives approximately proportional bandwidth.

The problem is a configuration issue with shared application containers; I've seen it before on improperly configured Virtuozzo setups (and I can attest that Lunarpages doesn't configure anything correctly, they're among the worst hosts I've ever been forced to use). It would happen without regard to the type of connections.
« Last Edit: April 19, 2010, 10:50:44 am by Blacken »
Logged
"There's vermin fish, which fisherdwarves catch, and animal fish, which catch fisherdwarves." - Flame11235

Urist McDepravity

  • Bay Watcher
    • View Profile
Re: nginx errors
« Reply #51 on: April 19, 2010, 11:08:45 am »

There is no "available connections" limit (except for a very obscure one in code, based on the limit of file descriptors on the system--usually no less than 100,000, often many more). Each takes up a trivial amount of memory (on the order of kilobytes) and it's not like there is a bandwidth/throughput issue that large files exacerbate--the point of a modern TCP stack is to allow an arbitrary number of connections and ensure that (sans QoS, which changes the rules) each receives approximately proportional bandwidth.
You should look up Virtuozzo docs and see yourself that there IS tcp connections limit. Plus each connection takes a file handler, which is also quite limited on typical virtuozzo's.
You should not flame on people before checking your facts.

Heres typical virtuozzo limits (keyweb's VPS):
Spoiler (click to show/hide)
Where numtcpsock limits number of open connections.
Logged

Shades

  • Bay Watcher
    • View Profile
Re: nginx errors
« Reply #52 on: April 19, 2010, 11:23:53 am »

Does this site use virtuozzo? Most VPS hosts I've seen (and all the ones I've worked with) use Xen.
Logged
Its like playing god with sentient legos. - They Got Leader
[Dwarf Fortress] plays like a dizzyingly complex hybrid of Dungeon Keeper and The Sims, if all your little people were manic-depressive alcoholics. - tv tropes
You don't use science to show that you're right, you use science to become right. - xkcd

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: nginx errors
« Reply #53 on: April 19, 2010, 11:30:52 am »

It does. Don't worry, we'll be moving from lunarpages Soon(tm).
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

Blacken

  • Bay Watcher
  • Orange Polar Bear
    • View Profile
Re: nginx errors
« Reply #54 on: April 19, 2010, 11:47:27 am »

You should look up Virtuozzo docs and see yourself that there IS tcp connections limit.
I've run Virtuozzo servers. Even on Virt best practice is to set numtcpsock to unlimited, because too many applications expect unlimited access (and in practice it's not really that big a deal). Did "the problem is a configuration issue with shared application containers" escape you?
« Last Edit: April 19, 2010, 11:50:03 am by Blacken »
Logged
"There's vermin fish, which fisherdwarves catch, and animal fish, which catch fisherdwarves." - Flame11235

Urist McDepravity

  • Bay Watcher
    • View Profile
Re: nginx errors
« Reply #55 on: April 19, 2010, 01:22:01 pm »

SYSTEM WARNING: session_start() [function.session-start]: open(/tmp/sess_rcr***, O_RDWR) failed: Disk quota exceeded (122)
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: nginx errors
« Reply #56 on: April 19, 2010, 06:03:28 pm »

- The server has a limited number of allowed network connections. If we get a backlog, it's likely to overrun that.
The source quote that I didn't feel I needed at the time.
TL;DR Vs. Read the Thread?
Logged
Eh?
Eh!

Xeriar

  • Escaped Lunatic
    • View Profile
    • http://www.anenris.com
Re: nginx errors
« Reply #57 on: April 20, 2010, 02:44:52 am »

Why don't you just avoid the over restrictive ones instead. A (decent) VPS has much to offer over a 'dedicated host', in fact I often recommend anyone actually running sites hosted on physical systems to get hold of something like XEN and turn all their hosts into virtual ones.

I have completely and utterly destroyed several : )

Granted, that was with virtuozzo, but I outgrew a VPS for my main site a long time ago. I do want to pick apart Xen at some point, will see.

Quote
The current level of hardware tech means you have almost zero overhead and the benefits of being able to move and scale hosts quickly is something that can't be overlooked. It's much easier to restart a crashed VPS than hardware in some server farm too. Much cheaper too as you tend to waste far fewer cycles because you can scale so fast.

I should point out I only use self managed VPSs, so I've not really come across limits like that, but then I have control freak like issues.

Has there been any update on the ring0 vulnerabilities here? I wouldn't mind chopping up a machine with Xen but I'm still a bit leery when it comes to security.

I've run Virtuozzo servers. Even on Virt best practice is to set numtcpsock to unlimited, because too many applications expect unlimited access (and in practice it's not really that big a deal). Did "the problem is a configuration issue with shared application containers" escape you?

Shouldn't even be using tcp for fastcgi on the same machine in the first place, honestly.

Heres typical virtuozzo limits (keyweb's VPS):
Spoiler (click to show/hide)
Where numtcpsock limits number of open connections.

Those are not typical. Most hosts learn fairly early on in their adventures with VPS that these limits usually just get in the way.

Here's one from my host (still haven't replaced this one):
Spoiler (click to show/hide)

Edit: While most of these are 'unlimited', the host instead has monitors that trip things if someone's running a fork bomb, etc.
« Last Edit: April 20, 2010, 02:47:57 am by Xeriar »
Logged
Pages: 1 2 3 [4]