Generated by spec.rb at: 2012-09-22 01:04:07 +0200

rrstorage module

Table of contents

What's this

This is a WMS module that allows you to define more than one StorageDir for given application.

That is useful when you have your storage connected over NAS and want to round-robin over several network uplinks to your NAS.

Installation

Add wejn-rrstorage.jar and guava-13.0.1.jar to Wowza's lib/ directory.

Add following to Modules section of your Application.xml:

<Module>
    <Name>rrstorage</Name>
    <Description>round-robin storage</Description>
    <Class>cz.wejn.wowza.rrstorage.RRStorage</Class>
</Module>
}}} 

Add following to Properties section of your Application.xml
(adjust parameters as needed):
{{{xml
<Property>
    <Name>RRStorageDef0</Name>
    <Value>/home/wejn/bin/WowzaMediaServer-3.1.0/content_rr_a</Value>
</Property>
<Property>
    <Name>RRStorageDef1</Name>
    <Value>/home/wejn/bin/WowzaMediaServer-3.1.0/content_rr_b</Value>
</Property>
<!--
You can add as many RRStorageDef# properties as you like, provided
they are numbered in continuous sequence, starting with 0.

Therefore the following definition will be ignored by RRStorage
(as there is no RRStorageDef2):
 -->
<Property>
    <Name>RRStorageDef3</Name>
    <Value>/home/wejn/bin/WowzaMediaServer-3.1.0/content_rr_c</Value>
</Property>

Restart Wowza to finish installation.

Configuration options

RRStorageDef# (multiple, numbered)

String.

This is definition of single StorageDir path.

As explained in the example, this module accepts multiple properties differentiated by Storage number. Numbering starts from zero (0) and must be continuous, with no gaps. The module stops looking for additional definitions as soon as it reaches first gap. Thus any definitions after any gap will be ignored.

JMX interface

none.

License

Copyright (c) 2012 Michal "Wejn" Jirku <box@wejn.org>

This work is licensed under the Creative Commons Attribution 3.0 Czech Republic License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/cz/.