Limiting Bandwidth

The amount of data served by a streaming component can vary over time depending on the content, because more complicated content can not be compressed as much as simple content. It is therefore difficult to predict how much bandwith will be needed even when limiting the number of client users.

However, Flumotion can limit the total bandwidth of a component to prevent it from becoming excessive. This is a helpful guarantee in case your estimates for maximum bandwidth could be incorrect or if you wish to optimize for a more common case.

For instance, this example shows the use of the ratecontroller-fixed plug with a http-server component, to restrict its bandwidth to 200,000 bits per second.

<component name="http-server-one"
           type="http-server"
  ...
  <plugs>
    <plug 
      socket="flumotion.component.misc.httpserver.ratecontroller.RateController"
          type="ratecontroller-fixed">
      <property name="rate">200000</property>
    </plug>
  </plugs>
  ...
</component>