Wowza Community

Problem with Dynamic Load Balancer

Hi, I’m configuring Dynamic Load Balancer module for Wowza. But after all installation instructions I have an error:

LoadBalancerServer.processMessage: Invalid start string

This error repeat with interval 2500ms - load balancer sender message interval.

Note, that i installed listener and sender on a single PC. I do not exclude that the problem could be here.

loadbalancertargets.txt:

localhost,1934,023D4FB4IS83

HTTPProvider in VHost.xml:

<HTTPProvider>
	<BaseClass>com.wowza.wms.plugin.loadbalancer.HTTPLoadBalancerRedirector</BaseClass>
	<RequestFilters>*loadbalancer</RequestFilters>
	<AuthenticationMethod>none</AuthenticationMethod>
	<Properties>
		<Property>
			<Name>enableServerInfoXML</Name>
			<Value>true</Value>
			<Type>Boolean</Type>
		</Property>
	</Properties>
</HTTPProvider>

and, lastly - Server.xml

...
<Properties>
<Property>
	<Name>loadBalancerListenerKey</Name>
	<Value>023D4FB4IS83</Value>
</Property>
<Property>
	<Name>loadBalancerListenerIpAddress</Name>
	<Value>localhost</Value>
</Property>
<Property>
	<Name>loadBalancerListenerPort</Name>
	<Value>1934</Value>
	<Type>Integer</Type>
</Property>
<Property>
	<Name>loadBalancerListenerRedirectorClass</Name>
	<Value>com.wowza.wms.plugin.loadbalancer.LoadBalancerRedirectorConcurrentConnects</Value>
</Property>
<Property>
	<Name>loadBalancerListenerMessageTimeout</Name>
	<Value>5000</Value>
	<Type>Integer</Type>
</Property>
<Property>
	<Name>loadBalancerSenderTargetPath</Name>
	<Value>${com.wowza.wms.AppHome}/conf/loadbalancertargets.txt</Value>
</Property>
<Property>
	<Name>loadBalancerSenderRedirectAddress</Name>
	<Value>localhost</Value>
</Property>
<Property>
	<Name>loadBalancerSenderMonitorClass</Name>
	<Value>com.wowza.wms.plugin.loadbalancer.LoadBalancerMonitorDefault</Value>
</Property>
<Property>
	<Name>loadBalancerSenderMessageInterval</Name>
	<Value>2500</Value>
	<Type>Integer</Type>
</Property>
</Properties>
...
<ServerListeners>
<ServerListener>
	<BaseClass>com.wowza.wms.mediacache.impl.MediaCacheServerListener</BaseClass>
</ServerListener>
<ServerListener>
	<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener</BaseClass>
</ServerListener>
<ServerListener>
	<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerSender</BaseClass>
</ServerListener>
</ServerListeners>
...

Please, help me to solve this problem.

Hi,

Can you provide some more information about your current setup?

What is the Wowza server version you are using?

Zoran