Skip to main content
Participant
December 3, 2006
Question

FMS' limits

  • December 3, 2006
  • 1 reply
  • 280 views
Hello all, this forum has been very helpful in answering all my fms questions, I have yet another one.
How much is too much with FMS? I would like to broadcast and view users webcam, but I would like to know how many people I could broadcast and view without making to server go extremely slow and also, is there a way arround the server getting too crowded? For example, say I want a max of "x" simultaneous conections broadcasting in a server and when I reach that "x" mark for it to go to broadcast through another server, etc.
Is influxis the best hosting arround? Or are there others?

Thanks so much in advance,

Rgds,
    This topic has been closed for replies.

    1 reply

    December 4, 2006
    Well... it really depends on the machine fms is running on, the internet pipe it's connected to, and the bitrate of the streams you're serving.

    Let's assume you're running a fairly powerful machine (maybe a dual Xeon, 4meg machine), you have a 100mbps pipe, and your streams are set at 256kbps.

    In this case, you'd max out the internet pipe at about 400 concurrent streams... far fewer than the server can handle. I've read that FMS can handle several throusand concurrent live streams on a single box, but I've never pushed it that hard (the most I've has on a single box was about 1000)

    You can limit the number of allowed connections at the server level by modifying your vhost.xml file for the vhost you want to limit, or you can do it at the application level by checking connected clients in your application.onConnect method:

    application.onConnect = function(clientObj){
    if (application.clients.length > 10){
    // Execute code to reject connection (too many users)
    }else{
    // Not too many users, accept the connection or execute other code
    }
    }

    Now, FMS has no means of redirecting the client to another server, but you can put that logic in the client side.

    As for shared hosts, I've never used any of them, but Ive heard good things about influxis (although the cost adds up fast if you want to handle more than a few concurrent users)

    Others:
    mediatemple.com
    akamai.com
    moremx.com