Skip to main content
Participant
March 5, 2010
Question

How to globally limit the bandwidth of FMS 3.5

  • March 5, 2010
  • 1 reply
  • 1423 views

Hi all,

Can you give me a hint on how to solve this or confirm me the following ?

    Is it possible to limit globally the bandwidth usage of FMS 3.5 ?

I don't want FMS  to use all the bandwidth available via our ISP.

I want my coworkers and other servers to be able to continue using Internet while sending/receiving data from/to FMS

I know it is possible to limit various bandwidths per Applications, but it seems there is no easy way - using the xml config files - to globally limit the server bandwidth.Ok I could compute a limit per app, but it is not a long terme solution to modify all the config files each time a new applications is to be installed.

So I think it is not possible to easily limit globally the bandwidth of FMS.

Do you agree with me ?

If not, how did you manage this : do you have an example, some code ?

Thanks for your answers

Fred

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    March 5, 2010

    Let me take a shot at it but really don't know whether its a best solution :

    This is what you can do:

    Lets say you have figure in mind which you want to impose on entire server.You can basically get list of applications using Admin API or say File Object API , then check if it has Application.xml and apply newer BandwidthCap value to each of them ( Your imposed Bandwidth value for Server divided by number of applications). But I suppose newer values will not be applied until and unless you reload the application, so you might want to keep track of which apps are alive and update them. I know what I am suggesting is taking wild guess at solution.

    Probably you can contact Network admins if they can impose something at FMS machine level or something at process level.

    fredadminAuthor
    Participant
    March 8, 2010

    Thanks for the try, though I'd hope you aimed at a another solution

    I think your proposition is not possible this way, because:

    (It is for streaming only )

    1) say we have a BW of 100 [Mb/s] available for this FMS.

    2) the individual bw needed by the media files (indbw) within an application ranges from 200 [kb/s] to 2000[kb/s] (some files are audio, others medium quality video, some good quality video)

    3) the BandwidthCap (in application.xml) is  per connection within the application. (to simplify the talk we choose a BandwidthCap = indbw )

    4) the MaxConnections (in vhost.xml) is per vhost

    The question is "which indbw one chooses to divide the available 100 [Mb/s] BW" : ( MaxConnections = BW divided by BandwidthCap )

    Two possibilities:

    A) Let's take audio only indbw, that's 200 [kb/s], then FMS can serve 500 connections

    B) Let's take good quality vid indbw, that's 20000 [kb/s], then FMS would be limited to 50 connections.

    Both ways are not good :  in A) we risk jamming the internet link if too many of the connections are in fact streaming video, in B) we can not serve enough people and will likely waste some BW sinc not all clients will stream good quality video.

    Does anyone has another hint about " how to globally limiting the bandwidth of Flash Media Server 3.5" ?