WebFaction
Community site: login faq

If I use the Websocket app to allow clients to connect, is there a limit to the number of simultaneous connections on either shared or cloud hosts? If the limit is exceeded, what happens? Are the web socket connections reclaimed or closed out automatically even when clients abort connections, or is this the responsibility of the server app e.g. Node.js?

asked 05 Jan '16, 23:53

pixelglow
113
accept rate: 0%


There is no limit in the number of hosts, obviously other resources such as RAM and CPU usage will limit the number, but we do not monitor or throttle it directly.

The connection will stay open as long as the app keeps it open.

permanent link

answered 06 Jan '16, 06:38

johns
5.3k312
accept rate: 23%

Doesn't the host have some open file or socket limit? And if I'm on a shared host is that open file or socket limit then shared with all the other people using it?

(06 Jan '16, 23:27) pixelglow

The number of websocket connections is indeed limited by the system open files limit.

If the limit is reached, Nginx may stop responding to requests intermittently, or completely.

We have that set to a very high value for the system nginx user, so its unlikely that the limit will be reached. If it does, we'll be alerted by our monitoring systems and will take immediate action to ensure that the responsible customer doesn't disrupt service for the other customers on the shared server.

permanent link

answered 07 Jan '16, 01:17

seanf
12.2k41836
accept rate: 37%

What's the limit approximately? How about cloud servers, do they have a single limit instead of a shared limit?

(07 Jan '16, 08:38) pixelglow

The limit is 150000 on all of our servers.

Our cloud servers are dedicated VPS boxes, so on those machines you're not sharing that limit with other customers.

(07 Jan '16, 17:24) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67
×27
×3

question asked: 05 Jan '16, 23:53

question was seen: 2,122 times

last updated: 07 Jan '16, 17:24

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM