Results 1 to 2 of 2

Thread: Can't get Wowza Load Balancing to work on EC2

  1. #1
    Join Date
    Jul 2014
    Posts
    3

    Default Can't get Wowza Load Balancing to work on EC2

    Hello,

    I'm trying to get Wowza 4 to work in Origin-Edge setup on Amazon EC2. I'm using the following AMI: ami-f0f90098.

    I launched and configured one origin and one edge servers as per LoadBalancer_2.0/LoadBalancer/README.html (http://www.wowza.com/forums/content.php?108) but I can't not get the IP of the edge server to be listed in the origin serverInfoXML file.

    Below is my servers' configuration:

    Origin
    Server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Root version="2">
    	<Server>
    		<Name>Wowza Streaming Engine</Name>
    		<Description>Wowza Streaming Engine is robust, customizable, and scalable server software that powers reliable streaming of high-quality video and audio to any device, anywhere.</Description>
    		<RESTInterface>
    			<Enable>true</Enable>
    			<IPAddress>*</IPAddress>
    			<Port>8087</Port>
    			<!-- none, basic, digest-->
    			<AuthenticationMethod>digest</AuthenticationMethod>
    			<DiagnosticURLEnable>true</DiagnosticURLEnable>
    			<SSLConfig>
    				<Enable>false</Enable>
    				<KeyStorePath></KeyStorePath>
    				<KeyStorePassword></KeyStorePassword>
    				<KeyStoreType>JKS</KeyStoreType>
    				<SSLProtocol>TLS</SSLProtocol>
    				<Algorithm>SunX509</Algorithm>
    				<CipherSuites></CipherSuites>
    				<Protocols></Protocols>
    			</SSLConfig>
    			<IPWhiteList>127.0.0.1</IPWhiteList>
    			<IPBlackList></IPBlackList>
    			<EnableXMLFile>false</EnableXMLFile>
    			<Properties>
    			</Properties>
    		</RESTInterface>
    		<CommandInterface>
    			<HostPort>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    				<IpAddress>*</IpAddress>
    				<Port>8083</Port>
    			</HostPort>
    		</CommandInterface>
    		<AdminInterface>
    			<!-- Objects exposed through JMX interface: Server, VHost, VHostItem, Application, ApplicationInstance, MediaCaster, Module, Client, MediaStream, SharedObject, Acceptor, IdleWorker -->
    			<ObjectList>Server,VHost,VHostItem,Application,ApplicationInstance,MediaCaster,Module,IdleWorker</ObjectList>
    		</AdminInterface>
    		<Stats>
    			<Enable>true</Enable>
    		</Stats>
    		<!-- JMXUrl: service:jmx:rmi://localhost:8084/jndi/rmi://localhost:8085/jmxrmi -->
    		<JMXRemoteConfiguration>
    			<Enable>false</Enable>
    			<IpAddress>${com.wowza.amazonaws.ec2.AWSEC2_METADATA_PUBLIC_HOSTNAME}</IpAddress> <!-- set to localhost or internal ip address if behind NAT -->
    			<RMIServerHostName>${com.wowza.amazonaws.ec2.AWSEC2_METADATA_PUBLIC_HOSTNAME}</RMIServerHostName> <!-- set to external ip address or domain name if behind NAT -->
    			<RMIConnectionPort>8084</RMIConnectionPort>
    			<RMIRegistryPort>8085</RMIRegistryPort>
    			<Authenticate>true</Authenticate>
    			<PasswordFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.password</PasswordFile>
    			<AccessFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.access</AccessFile>
    			<SSLSecure>false</SSLSecure>
    		</JMXRemoteConfiguration>
    		<UserAgents>Shockwave Flash|CFNetwork|MacNetwork/1.0 (Macintosh)</UserAgents>
    		<Streams>
    			<DefaultStreamPrefix>mp4</DefaultStreamPrefix>
    		</Streams>
    		<ServerListeners>
    			<ServerListener>
    				<BaseClass>com.wowza.wms.plugin.amazonaws.ec2.env.ServerListenerEC2Variables</BaseClass>
    			</ServerListener>
    			<ServerListener>
    				<BaseClass>com.wowza.wms.mediacache.impl.MediaCacheServerListener</BaseClass>
    			</ServerListener>			
    			<ServerListener>
    				<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener</BaseClass>
    			</ServerListener>			
    		</ServerListeners>
    		<VHostListeners>
    			<!--
    			<VHostListener>
    				<BaseClass></BaseClass>
    			</VHostListener>
    			-->
    		</VHostListeners> 
    		<HandlerThreadPool>
    			<PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
    		</HandlerThreadPool>
    		<TransportThreadPool>
    			<PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
    		</TransportThreadPool>
    		<RTP>
    			<DatagramStartingPort>6970</DatagramStartingPort>
    			<DatagramPortSharing>false</DatagramPortSharing>
    		</RTP>
    		
    		<Manager>
    			<!-- Properties defined are used by the Manager -->
    			<Properties>
    			</Properties>
    		</Manager>
    		
    		<!-- Properties defined here will be added to the IServer.getProperties() collection -->
    		<Properties>
    			<Property>
    				<Name>loadBalancerListenerKey</Name>
    				<Value>023D4FB4IS83</Value>
    			</Property>
    			<Property>
    				<Name>loadBalancerListenerIpAddress</Name>
    				<Value>*</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>
    		</Properties>
    	</Server>
    </Root>
    VHost.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Root version="2">
    	<VHost>
    		<Description></Description>
    		<HostPortList>
    			<HostPort>
    				<Name>Default Streaming</Name>
    				<Type>Streaming</Type>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    				<IpAddress>*</IpAddress>
    				<!-- Separate multiple ports with commas -->
    				<!-- 80: HTTP, RTMPT -->
    				<!-- 554: RTSP -->
    				<Port>1935,80,443,554</Port>
    				<HTTPIdent2Response></HTTPIdent2Response>
    				<SocketConfiguration>
    					<ReuseAddress>true</ReuseAddress>
    					<!-- suggested settings for video on demand applications -->
    					<ReceiveBufferSize>65000</ReceiveBufferSize>
    					<ReadBufferSize>65000</ReadBufferSize>
    					<SendBufferSize>65000</SendBufferSize>
    					<!-- suggest settings for low latency chat and video recording applications
    					<ReceiveBufferSize>32000</ReceiveBufferSize>
    					<ReadBufferSize>32000</ReadBufferSize>
    					<SendBufferSize>32000</SendBufferSize>
    					-->
    					<KeepAlive>true</KeepAlive>
    					<!-- <TrafficClass>0</TrafficClass> -->
    					<!-- <OobInline>false</OobInline> -->
    					<!-- <SoLingerTime>-1</SoLingerTime> -->
    					<!-- <TcpNoDelay>false</TcpNoDelay> -->
    					<AcceptorBackLog>100</AcceptorBackLog>
    				</SocketConfiguration>
    				<HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming,mpegdashstreaming</HTTPStreamerAdapterIDs>
    				<HTTPProviders>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
    						<RequestFilters>*crossdomain.xml</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
    						<RequestFilters>*clientaccesspolicy.xml</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    						<RequestFilters>*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.timedtext.http.HTTPProviderCaptionFile</BaseClass>
    						<RequestFilters>*.ttml|*.srt|*.scc|*.vtt</RequestFilters>
    					    	<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    					<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>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    						<RequestFilters>*</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    				</HTTPProviders>
    			</HostPort>
    			
    			<!-- 443 with SSL -->
    			<!--
    			<HostPort>
    				<Name>Default SSL Streaming</Name>
    				<Type>Streaming</Type>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    				<IpAddress>*</IpAddress>
    				<Port>443</Port>
    				<HTTPIdent2Response></HTTPIdent2Response>
    				<SSLConfig>
    					<KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/keystore.jks</KeyStorePath>
    					<KeyStorePassword>[password]</KeyStorePassword>
    					<KeyStoreType>JKS</KeyStoreType>
    					<SSLProtocol>TLS</SSLProtocol>
    					<Algorithm>SunX509</Algorithm>
    					<CipherSuites></CipherSuites>
    					<Protocols></Protocols>
    				</SSLConfig>
    				<SocketConfiguration>
    					<ReuseAddress>true</ReuseAddress>
    					<ReceiveBufferSize>65000</ReceiveBufferSize>
    					<ReadBufferSize>65000</ReadBufferSize>
    					<SendBufferSize>65000</SendBufferSize>
    					<KeepAlive>true</KeepAlive>
    					<AcceptorBackLog>100</AcceptorBackLog>
    				</SocketConfiguration>
    				<HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming,mpegdashstreaming</HTTPStreamerAdapterIDs>
    				<HTTPProviders>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
    						<RequestFilters>*crossdomain.xml</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
    						<RequestFilters>*clientaccesspolicy.xml</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    						<RequestFilters>*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    						<RequestFilters>*</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    				</HTTPProviders>
    			</HostPort>
    			-->
    			
    			<!-- Admin HostPort -->
    			<HostPort>
    				<Name>Default Admin</Name>
    				<Type>Admin</Type>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    				<IpAddress>*</IpAddress>
    				<Port>8086</Port>
    				<HTTPIdent2Response></HTTPIdent2Response>
    				<SocketConfiguration>
    					<ReuseAddress>true</ReuseAddress>
    					<ReceiveBufferSize>16000</ReceiveBufferSize>
    					<ReadBufferSize>16000</ReadBufferSize>
    					<SendBufferSize>16000</SendBufferSize>
    					<KeepAlive>true</KeepAlive>
    					<AcceptorBackLog>100</AcceptorBackLog>
    				</SocketConfiguration>
    				<HTTPStreamerAdapterIDs></HTTPStreamerAdapterIDs>
    				<HTTPProviders>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.streammanager.HTTPStreamManager</BaseClass>
    						<RequestFilters>streammanager*</RequestFilters>
    						<AuthenticationMethod>admin-digest</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPServerInfoXML</BaseClass>
    						<RequestFilters>serverinfo*</RequestFilters>
    						<AuthenticationMethod>admin-digest</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPConnectionInfo</BaseClass>
    						<RequestFilters>connectioninfo*</RequestFilters>
    						<AuthenticationMethod>admin-digest</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPConnectionCountsXML</BaseClass>
    						<RequestFilters>connectioncounts*</RequestFilters>
    						<AuthenticationMethod>admin-digest</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail</BaseClass>
    						<RequestFilters>transcoderthumbnail*</RequestFilters>
    						<AuthenticationMethod>admin-digest</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    						<RequestFilters>medialist*</RequestFilters>
    						<AuthenticationMethod>admin-digest</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.livestreamrecord.http.HTTPLiveStreamRecord</BaseClass>
    						<RequestFilters>livestreamrecord*</RequestFilters>
    						<AuthenticationMethod>admin-digest</AuthenticationMethod>
    					</HTTPProvider>
    					<HTTPProvider>
    						<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    						<RequestFilters>*</RequestFilters>
    						<AuthenticationMethod>none</AuthenticationMethod>
    					</HTTPProvider>
    				</HTTPProviders>
    			</HostPort>
    		
    		</HostPortList>
    		
    		<HTTPStreamerAdapters>
    			<HTTPStreamerAdapter>
    				<ID>smoothstreaming</ID>
    				<Name>smoothstreaming</Name>
    				<Properties>
    				</Properties>
    			</HTTPStreamerAdapter>
    			<HTTPStreamerAdapter>
    				<ID>cupertinostreaming</ID>
    				<Name>cupertinostreaming</Name>
    				<Properties>
    				</Properties>
    			</HTTPStreamerAdapter>
    			<HTTPStreamerAdapter>
    				<ID>sanjosestreaming</ID>
    				<Name>sanjosestreaming</Name>
    				<Properties>
    				</Properties>
    			</HTTPStreamerAdapter>
    			<HTTPStreamerAdapter>
    				<ID>dvrchunkstreaming</ID>
    				<Name>dvrchunkstreaming</Name>
    				<Properties>
    				</Properties>
    			</HTTPStreamerAdapter>
    			<HTTPStreamerAdapter>
    				<ID>mpegdashstreaming</ID>
    				<Name>mpegdashstreaming</Name>
    				<Properties>
    				</Properties>
    			</HTTPStreamerAdapter>
    		</HTTPStreamerAdapters>
    
    		<!-- When set to zero, thread pool configuration is done in Server.xml -->
    		<HandlerThreadPool>
    			<PoolSize>0</PoolSize>
    		</HandlerThreadPool>
    		<TransportThreadPool>
    			<PoolSize>0</PoolSize>
    		</TransportThreadPool>
    		<IdleWorkers>
    			<WorkerCount>${com.wowza.wms.TuningAuto}</WorkerCount>
    			<CheckFrequency>50</CheckFrequency>
    			<MinimumWaitTime>5</MinimumWaitTime>
    		</IdleWorkers>
    		<NetConnections>
    			<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    			<IdleFrequency>250</IdleFrequency>
    			<SocketConfiguration>
    				<ReuseAddress>true</ReuseAddress>
    				<ReceiveBufferSize>65000</ReceiveBufferSize>
    				<ReadBufferSize>65000</ReadBufferSize>
    				<SendBufferSize>65000</SendBufferSize>
    				<KeepAlive>true</KeepAlive>
    				<!-- <TrafficClass>0</TrafficClass> -->
    				<!-- <OobInline>false</OobInline> -->
    				<!-- <SoLingerTime>-1</SoLingerTime> -->
    				<!-- <TcpNoDelay>false</TcpNoDelay> -->
    				<AcceptorBackLog>100</AcceptorBackLog>
    			</SocketConfiguration>
    		</NetConnections>
    		<MediaCasters>
    			<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    			<SocketConfiguration>
    				<ReuseAddress>true</ReuseAddress>
    				<ReceiveBufferSize>65000</ReceiveBufferSize>
    				<ReadBufferSize>65000</ReadBufferSize>
    				<SendBufferSize>65000</SendBufferSize>
    				<KeepAlive>true</KeepAlive>
    				<!-- <TrafficClass>0</TrafficClass> -->
    				<!-- <OobInline>false</OobInline> -->
    				<!-- <SoLingerTime>-1</SoLingerTime> -->
    				<!-- <TcpNoDelay>false</TcpNoDelay> -->
    				<ConnectionTimeout>10000</ConnectionTimeout>
    			</SocketConfiguration>
    		</MediaCasters>
    		<LiveStreamTranscoders>
    			<MaximumConcurrentTranscodes>0</MaximumConcurrentTranscodes>
    		</LiveStreamTranscoders>
    		<HTTPTunnel>
    			<KeepAliveTimeout>2000</KeepAliveTimeout>
    		</HTTPTunnel>
    		<Client>
    			<ClientTimeout>90000</ClientTimeout>
    			<IdleFrequency>250</IdleFrequency>
    		</Client>
    		<!-- RTP/Authentication/Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
    		<RTP>
    			<IdleFrequency>75</IdleFrequency>
    			<DatagramConfiguration>
    				<Incoming>
    					<ReuseAddress>true</ReuseAddress>
    					<ReceiveBufferSize>1024000</ReceiveBufferSize>
    					<SendBufferSize>65000</SendBufferSize>
    					<!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
    					<!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
    					<!-- <TrafficClass>0</TrafficClass> -->
    					<MulticastTimeout>50</MulticastTimeout>
    					<DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
    				</Incoming>
    				<Outgoing>
    					<ReuseAddress>true</ReuseAddress>
    					<ReceiveBufferSize>65000</ReceiveBufferSize>
    					<SendBufferSize>65000</SendBufferSize>
    					<!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
    					<!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
    					<!-- <TrafficClass>0</TrafficClass> -->
    					<MulticastTimeout>50</MulticastTimeout>
    					<DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
    				</Outgoing>
    			</DatagramConfiguration>
    			<UnicastIncoming>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    			</UnicastIncoming>
    			<UnicastOutgoing>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    			</UnicastOutgoing>
    			<MulticastIncoming>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    			</MulticastIncoming>
    			<MulticastOutgoing>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    			</MulticastOutgoing>
    		</RTP>
    		<Application>
    			<ApplicationTimeout>60000</ApplicationTimeout>
    			<PingTimeout>12000</PingTimeout>
    			<UnidentifiedSessionTimeout>30000</UnidentifiedSessionTimeout>
    			<ValidationFrequency>20000</ValidationFrequency>
    			<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
    			<MaximumSetBufferTime>60000</MaximumSetBufferTime>
    		</Application>
    		<StartStartupStreams>true</StartStartupStreams>
    		
    		<Manager>
    			<TestPlayer>
    				<IpAddress>${com.wowza.amazonaws.ec2.AWSEC2_METADATA_PUBLIC_IPV4}</IpAddress>
    				<Port>${com.wowza.wms.HostPort.FirstStreamingPort}</Port>
    				<SSLEnable>${com.wowza.wms.HostPort.SSLEnable}</SSLEnable>
    			</TestPlayer>
    			<!-- Properties defined are used by the Manager -->
    			<Properties>
    			</Properties>
    		</Manager>
    		
    		<!-- Properties defined here will be added to the IVHost.getProperties() collection -->
    		<Properties>
    		</Properties>
    	</VHost>
    </Root>
    LOGS
    Access
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:1935:4)	-	-	-	22.405	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:1935)	-	-	-	22.497	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:80:4)	-	-	-	22.51	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:80)	-	-	-	22.585	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:443:4)	-	-	-	22.586	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:443)	-	-	-	22.593	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:554:4)	-	-	-	22.595	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:554)	-	-	-	22.601	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:8086:2)	-	-	-	22.602	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:8086)	-	-	-	22.648	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	server	INFO	200	-	Server.startShutdownHook: Start server shutdown hook	-	-	-	22.792	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	server	INFO	200	-	ServerListenerLoadBalancerListener.onServerInit	-	-	-	22.824	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:04	UTC	comment	server	INFO	200	-	LoadBalancerListener.bind: 0.0.0.0/0.0.0.0:1934	-	-	-	22.834	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:05	UTC	comment	server	INFO	200	-	StatsManager:startManager() Enabled=true	-	-	-	23.416	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:05	UTC	comment	server	INFO	200	-	Wowza Streaming Engine is started!	-	-	-	23.417	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	21:20:05	UTC	comment	server	INFO	200	-	LoadBalancerServer.handleMessage[315947ab-cce0-4be6-b772-551c5429ba95]: status: RUNNING	-	-	-	23.936	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-

    ERRORS
    #Version: 1.0
    #Start-Date: 2014-07-24 20:11:32 UTC
    #Software: Wowza Streaming Engine 4.0.4 build11775
    #Date: 2014-07-24
    #Fields: x-severity	x-category	x-event	date	time	c-client-id	c-ip	c-port	cs-bytes	sc-bytes	x-duration	x-sname	x-stream-id	x-spos	sc-stream-bytes	cs-stream-bytes	x-file-size	x-file-length	x-ctx	x-comment
    WARN	server	comment	2014-07-24	20:11:32	-	-	-	-	-	7824.837	-	-	-	-	-	-	-	-	LoadBalancerListener.handleMessage: Message too small: 1
    WARN	server	comment	2014-07-24	20:11:32	-	-	-	-	-	7824.839	-	-	-	-	-	-	-	-	LoadBalancerListener.handleMessage: Message too small: 1
    WARN	server	comment	2014-07-24	20:11:33	-	-	-	-	-	7825.837	-	-	-	-	-	-	-	-	LoadBalancerListener.handleMessage: Message too small: 1
    WARN	server	comment	2014-07-24	20:11:34	-	-	-	-	-	7826.837	-	-	-	-	-	-	-	-	LoadBalancerListener.handleMessage: Message too small: 1
    WARN	server	comment	2014-07-24	20:11:35	-	-	-	-	-	7827.838	-	-	-	-	-	-	-	-	LoadBalancerListener.handleMessage: Message too small: 1
    http://ORIGIN-IP:1935/loadbalancer?serverInfoXML
    <LoadBalancerServerInfo>
    <LoadBalancerServer>
    <connectCount>0</connectCount>
    <status>RUNNING</status>
    <redirectCount>0</redirectCount>
    <lastMessage>357 milliseconds</lastMessage>
    <redirect>localhost</redirect>
    <serverId>315947ab-cce0-4be6-b772-551c5429ba95</serverId>
    </LoadBalancerServer>
    </LoadBalancerServerInfo>
    http://ORIGIN-IP:1935/loadbalancer
    redirect=localhost

    EGDE-Server
    Server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Root version="2">
    	<Server>
    		<Name>Wowza Streaming Engine</Name>
    		<Description>Wowza Streaming Engine is robust, customizable, and scalable server software that powers reliable streaming of high-quality video and audio to any device, anywhere.</Description>
    		<RESTInterface>
    			<Enable>true</Enable>
    			<IPAddress>*</IPAddress>
    			<Port>8087</Port>
    			<!-- none, basic, digest-->
    			<AuthenticationMethod>digest</AuthenticationMethod>
    			<DiagnosticURLEnable>true</DiagnosticURLEnable>
    			<SSLConfig>
    				<Enable>false</Enable>
    				<KeyStorePath></KeyStorePath>
    				<KeyStorePassword></KeyStorePassword>
    				<KeyStoreType>JKS</KeyStoreType>
    				<SSLProtocol>TLS</SSLProtocol>
    				<Algorithm>SunX509</Algorithm>
    				<CipherSuites></CipherSuites>
    				<Protocols></Protocols>
    			</SSLConfig>
    			<IPWhiteList>127.0.0.1</IPWhiteList>
    			<IPBlackList></IPBlackList>
    			<EnableXMLFile>false</EnableXMLFile>
    			<Properties>
    			</Properties>
    		</RESTInterface>
    		<CommandInterface>
    			<HostPort>
    				<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
    				<IpAddress>*</IpAddress>
    				<Port>8083</Port>
    			</HostPort>
    		</CommandInterface>
    		<AdminInterface>
    			<!-- Objects exposed through JMX interface: Server, VHost, VHostItem, Application, ApplicationInstance, MediaCaster, Module, Client, MediaStream, SharedObject, Acceptor, IdleWorker -->
    			<ObjectList>Server,VHost,VHostItem,Application,ApplicationInstance,MediaCaster,Module,IdleWorker</ObjectList>
    		</AdminInterface>
    		<Stats>
    			<Enable>true</Enable>
    		</Stats>
    		<!-- JMXUrl: service:jmx:rmi://localhost:8084/jndi/rmi://localhost:8085/jmxrmi -->
    		<JMXRemoteConfiguration>
    			<Enable>false</Enable>
    			<IpAddress>${com.wowza.amazonaws.ec2.AWSEC2_METADATA_PUBLIC_HOSTNAME}</IpAddress> <!-- set to localhost or internal ip address if behind NAT -->
    			<RMIServerHostName>${com.wowza.amazonaws.ec2.AWSEC2_METADATA_PUBLIC_HOSTNAME}</RMIServerHostName> <!-- set to external ip address or domain name if behind NAT -->
    			<RMIConnectionPort>8084</RMIConnectionPort>
    			<RMIRegistryPort>8085</RMIRegistryPort>
    			<Authenticate>true</Authenticate>
    			<PasswordFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.password</PasswordFile>
    			<AccessFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.access</AccessFile>
    			<SSLSecure>false</SSLSecure>
    		</JMXRemoteConfiguration>
    		<UserAgents>Shockwave Flash|CFNetwork|MacNetwork/1.0 (Macintosh)</UserAgents>
    		<Streams>
    			<DefaultStreamPrefix>mp4</DefaultStreamPrefix>
    		</Streams>
    		<ServerListeners>
    			<ServerListener>
    				<BaseClass>com.wowza.wms.plugin.amazonaws.ec2.env.ServerListenerEC2Variables</BaseClass>
    			</ServerListener>
    			<ServerListener>
    				<BaseClass>com.wowza.wms.mediacache.impl.MediaCacheServerListener</BaseClass>
    			</ServerListener>
    			<ServerListener>
    				<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerSender</BaseClass>
    			</ServerListener>			
    		</ServerListeners>
    		<VHostListeners>
    			<!--
    			<VHostListener>
    				<BaseClass></BaseClass>
    			</VHostListener>
    			-->
    		</VHostListeners> 
    		<HandlerThreadPool>
    			<PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
    		</HandlerThreadPool>
    		<TransportThreadPool>
    			<PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
    		</TransportThreadPool>
    		<RTP>
    			<DatagramStartingPort>6970</DatagramStartingPort>
    			<DatagramPortSharing>false</DatagramPortSharing>
    		</RTP>
    		
    		<Manager>
    			<!-- Properties defined are used by the Manager -->
    			<Properties>
    				<Property>
    					<Name>loadBalancerSenderTargetPath</Name>
    					<Value>${com.wowza.wms.AppHome}/conf/loadbalancertargets.txt</Value>
    				</Property>
    				<Property>
    					<Name>loadBalancerSenderRedirectAddress</Name>
    					<Value>EDGE_IP</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>
    		</Manager>
    		
    		<!-- Properties defined here will be added to the IServer.getProperties() collection -->
    		<Properties>
    		</Properties>
    	</Server>
    </Root>
    loadbalancertargets.txt
    # [load-balancer-ip-address],[load-balancer-port],[encryption-key]
    origin-ip,1934,023D4FB4IS83
    LOGS
    2014-07-24	20:44:54	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:1935:4)	-	-	-	19.978	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:1935)	-	-	-	20.107	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:80:4)	-	-	-	20.35	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:80)	-	-	-	20.498	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:443:4)	-	-	-	20.498	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:443)	-	-	-	20.5	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:554:4)	-	-	-	20.5	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:554)	-	-	-	20.501	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:8086:2)	-	-	-	20.502	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:8086)	-	-	-	20.504	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	server	INFO	200	-	Server.startShutdownHook: Start server shutdown hook	-	-	-	20.534	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	server	INFO	200	-	ServerListenerLoadBalancerSender.onServerInit	-	-	-	20.536	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	server	INFO	200	-	LoadBalancerEdge.parseEdgeList: /usr/local/WowzaStreamingEngine/conf/loadbalancertargets.txt	-	-	-	20.539	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:55	UTC	comment	server	INFO	200	-	LoadBalancerEdge.parseEdgeList: target:origin-ip:1934	-	-	-	20.54	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:56	UTC	comment	server	INFO	200	-	StatsManager:startManager() Enabled=true	-	-	-	21.577	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:56	UTC	comment	server	INFO	200	-	Wowza Streaming Engine is started!	-	-	-	21.577	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2014-07-24	20:44:57	UTC	comment	server	INFO	200	-	REST API: ready	-	-	-	22.608	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    UDP port 1934 is open on both servers.

    Am I missing something in my configuration? Any help would be really appretiated!

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    Please zip up and send your entire conf/ and logs/ directories from both your origin and edge for further review to support@wowza.com. Ensure you leave the complete IP addresses you are using within the configuration files. Also include a screenshot of the ports you have opened within AWS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •