Looks like with an edge running locally via eclipse, connecting to a terracotta also ran via eclipse, it wont connect to a remote origin server. I even turned off the firewall.

On 08/09/2007, at 11:39 PM, Daniel Rossi wrote:

Here is the step ive taken with the cluster branch in eclipse though for debugging

Requires terracotta eclipse plugin.

1. Create terracotta nature for project
2.  Choose tc-config.xml in the nature dialog
3. install the entire terracotta directory into the root of the cluster project 4. it requires some bootstrap jar created, which can be done by doing right click project -> terracotta -> build bootjar 5. right click red5_server_cluster , terracotta , servers , localhost to start terracotta 6. Create red5 origin debug profile with just org.red5.server.Standalone in the main class section 7. Create red5 edge debug profile with org.red5.server.Standalone in the class section, red5-edge.xml in the program arguments section, -Dtc.install-root=terracotta/
-Xbootclasspath/p:.
-Dtc.config=tc-config-edge.xml

in the JVM arguments section.

8. start red5 origin debug profile, then edge / terracotta debug profile.


If i choose to connect to the terracotta admin console on localhost and port 9520 nothing shows up ?


On 08/09/2007, at 11:12 PM, Lenny Sorey wrote:

Steven,

Thanks for your response.

Lenny


On 9/8/07, Steven Gong <[EMAIL PROTECTED]> wrote:
Lenny,

On 9/8/07, Lenny Sorey <[EMAIL PROTECTED] > wrote:
Hi Steven,

Apologies for asking because I am sure it is somewhere in the list,
but would you mind pointing me again to the setup docs for Origin / Edge / Terracotta.

No problem. Here's the steps I wrote last time:
I haven't integrated the Edge with Terracotta yet but will do it soon. Now you can play with it on two machines with one Origin server and one Edge server. (Of course, it should work for one Origin and several Edges. But I have never tried it. :-) ) The Edge server is accessed by RTMPT. The RTMP Edge support will be added after the Edge/Origin with Terracotta prototype is done.

How to run the prototype inside Eclipse:
(1) Check out the code first.
(2) Start Origin server by running Standalone without arguments.
(3) Start Edge server by running Standalone with argument "red5- edge.xml " (4) Connect the Edge by RTMPT on port 8088. For example, "rtmpt:// localhost:8088
/oflaDemo"

The default setting of Edge is to connect Origin locally. You can modify the "server" property of "mrtmpClient" bean in " red5-edge- core.xml " to set the address of Origin server.


I will write a full doc on wiki these days.

I have some time this weekend so I would like to set up this on three machines
via using Win2K, Tomcat  / Apache / Terracotta

That's great! Thanks a lot.


Thanks,

Lenny


On 9/8/07, Steven Gong <[EMAIL PROTECTED] > wrote:


On 9/8/07, Daniel Rossi <[EMAIL PROTECTED] > wrote:
Well i cant see any debug info of the connection stuff even though ive set INFO to mrtmp. I shut down the origin, and yes give it a minute or so the stream stops. Thats possibly not a good thing requiring a couple of origin servers just in case one machine dies :) What do you think ?

The final solution will support the fail-over of Origins.


Well thanks for your help its working for me locally, but running stuff via eclipse and the edge is configured with terracotta, though dont i have to run terracotta manually first aswell ?

Yes, of course. :-)


On 08/09/2007, at 9:46 PM, Steven Gong wrote:



On 9/8/07, Daniel Rossi < [EMAIL PROTECTED] > wrote:
Ok did some research, some people on this list have had it before its a VM specific error and is ignorable, though i still cant work out if the edge is actually connecting, cant see much debug info for it, and if i shut down the origin its still running as normal ie the video is still playing.

Don't know the reason why the video is still playing when you shutdown the origin. Maybe the video file is already cached on the client. The client won't be disconnected when you shutdown the Origin because the client connects to Edge.


http://jira.codehaus.org/browse/JETTY-227


Its a constant error though.



On 08/09/2007, at 9:26 PM, Daniel Rossi wrote:

Ok tried a few things,


Setup a edge / terracotta debug profile with vm args


-Dtc.install-root=terracotta/
-Xbootclasspath/p:.
-Dtc.config=tc-config-edge.xml

the program args is

red5-edge.xml

oflademo.swf connects, but then after a while i get this, if i shut down the origin server the file still plays is this expected ? It doesnt seem like its loading the origin.

I start the origin debug profile first, and then the edge profile.





[ERROR]:( org.mortbay.log.invoke0 ) EXCEPTION
java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid ( SelectionKeyImpl.java:55)
at sun.nio.ch.SelectionKeyImpl.readyOps( SelectionKeyImpl.java:69 )
at sun.nio.ch.KQueueSelectorImpl.updateSelectedKeys ( KQueueSelectorImpl.java:105 ) at sun.nio.ch.KQueueSelectorImpl.doSelect ( KQueueSelectorImpl.java:74)
at sun.nio.ch.SelectorImpl.lockAndDoSelect( SelectorImpl.java:69)
at sun.nio.ch.SelectorImpl.select( SelectorImpl.java:80 )
at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect ( SelectorManager.java:299) at org.mortbay.io.nio.SelectorManager.doSelect ( SelectorManager.java:73) at org.mortbay.jetty.nio.SelectChannelConnector.accept ( SelectChannelConnector.java:120 ) at org.mortbay.jetty.AbstractConnector$Acceptor.run ( AbstractConnector.java:498) at org.mortbay.thread.BoundedThreadPool$PoolThread.run ( BoundedThreadPool.java:475)

On 08/09/2007, at 9:04 PM, Steven Gong wrote:



On 9/8/07, Daniel Rossi < [EMAIL PROTECTED] > wrote:

On 08/09/2007, at 8:10 PM, Steven Gong wrote:

Only Origin needs to connect to the file server in this prototype and now only one Origin is supported. The load- balancer is connected to Edges. So if you have 5 machines, you can use one as Origin, one as Terracotta server, one as load- balancer and 2 as Edges.


Ok so no need to use a network switch load balancer, its done via terracotta ?

A generic HTTP load-balancer is needed (but not mandatory) and it's not part of the feature of terracotta. Terracotta only makes sure the state of connections are shared by all Edges.


I still cant get it connected


rtmpt://localhost:8088/oflaDemo


(314) Connections: true | true
(13863) connected?: true
(76961) NetConnection.onStatus:
  level = status
  code = NetConnection.Connect.Closed




(76987) disconnected:
(79193) connected?: true
(131305) NetConnection.onStatus:
  level = status
  code = NetConnection.Connect.Closed




(131332) disconnected:
(134721) connected?: true


Hangs on connection, and then eventually this


[ERROR]:( org.mortbay.log.invoke0 ) EXCEPTION
java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid (SelectionKeyImpl.java:55) at sun.nio.ch.SelectionKeyImpl.readyOps (SelectionKeyImpl.java :69) at sun.nio.ch.KQueueSelectorImpl.updateSelectedKeys (KQueueSelectorImpl.java:105) at sun.nio.ch.KQueueSelectorImpl.doSelect (KQueueSelectorImpl.java:74) at sun.nio.ch.SelectorImpl.lockAndDoSelect (SelectorImpl.java:69)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect (SelectorManager.java:299) at org.mortbay.io.nio.SelectorManager.doSelect (SelectorManager.java:73) at org.mortbay.jetty.nio.SelectChannelConnector.accept (SelectChannelConnector.java:120) at org.mortbay.jetty.AbstractConnector$Acceptor.run (AbstractConnector.java :498) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:475)








On 9/8/07, Daniel Rossi <[EMAIL PROTECTED] > wrote:
Sorry me again, with this configuration, we have 5 clustered machines connecting to a NAS, what would be the best configuration for this in this scenario ? One machine is the origin and not attached to the load balancer which is also running terracotta, 4 machines running as the frontend edge machines and attached to the load balancer ? They are all running 3G P4's and 2G of ram. Is it possible to run the cluster files from the NAS storage itself rather than having seperate set of files on each machine ? This means i just need to update it in one spot, but not sure if that will affect performance, especially for reads for the files. I am finding some errors at times where there is network issues getting the files for some reason.

On 08/09/2007, at 7:44 PM, Steven Gong wrote:

Hi all,
Orion, Tim and I had a meeting discussing the current status and future plan of Red5 Edge/Origin with Terracotta integration. Below is the detail. (1) Deadlock issue: Orion and Tim explained the auto-lock concept to me and helped to solve the deadlock issue caused by misconfiguration of auto-locks. Now the Edge/Origin Red5 won't get deadlocked on Terracotta. (2) Performance test and tuning: We plan to do performance test and tuning in the next step to verify the design and implementation of the Edge/Origin prototype. Orion and Tim gave some advice on how to do performance test and tuning on Terracotta. Orion will also provide several online HW resources for the test. This is very helpful for clustering performance test when several machines are available to setup the server environment. Great thanks to Orion and other Terracotta guys to make this happen!

So we will move forward to test the prototype and do the enhancement afterwards.

To all the Red5 users,
Now you can try to run Edge/Origin prototype on Terracotta. Theoretically you can run all the servers on one machine: Edge, Origin and Terracotta server. But the recommended configuration is to put each server to their own machine, especially the Terracotta server. To run the servers, the only difference from the version without Terracotta is that you need to start the Edge on Terracotta with the configuration file tc-config-edge.xml in the root dir of the clustering branch.
Feel free to report issues during your experiment. Thanks!

--
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com, [EMAIL PROTECTED]

Red5 Developer: http://osflash.org/red5, http://jira.red5.org/ confluence/display/~steven/Home

Modesty is an overrated quality in men of no great accomplishment. -- Ricky Jay
_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org




--
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com , [EMAIL PROTECTED]

Red5 Developer: http://osflash.org/red5, http://jira.red5.org/ confluence/display/~steven/Home

Modesty is an overrated quality in men of no great accomplishment. -- Ricky Jay
_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org




--
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com , [EMAIL PROTECTED]

Red5 Developer: http://osflash.org/red5, http://jira.red5.org/ confluence/display/~steven/Home

Modesty is an overrated quality in men of no great accomplishment. -- Ricky Jay
_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org




--
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com , [EMAIL PROTECTED]

Red5 Developer: http://osflash.org/red5, http://jira.red5.org/ confluence/display/~steven/Home

Modesty is an overrated quality in men of no great accomplishment. -- Ricky Jay
_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org




--
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com , [EMAIL PROTECTED]

Red5 Developer: http://osflash.org/red5, http://jira.red5.org/ confluence/display/~steven/Home

Modesty is an overrated quality in men of no great accomplishment. -- Ricky Jay

_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org




--
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com , [EMAIL PROTECTED]

Red5 Developer: http://osflash.org/red5, http://jira.red5.org/ confluence/display/~steven/Home

Modesty is an overrated quality in men of no great accomplishment. -- Ricky Jay

_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to