[Red5] edge-origin live show

Steven Gong steven.gong at gmail.com
Tue Feb 5 17:44:20 PST 2008


As there is no business state stored in Edge, it is not a problem if Edge is
down. Origin is a single point of failure so it is one of the next steps to
enable redundant Origins.

On Feb 5, 2008 11:39 PM, Sales Department <sales at interalab.com> wrote:

> The way the Flash code works, if one of the machines goes down, it has a
> failed net connection and tries again.  On the second try, DNS will hand
> off a different server.  So, DNS doesn't have to know about the status
> of the servers.
>
> Dan Rossi wrote:
> > That would be a round robin system via the dns then which sounds kinda
> > interesting. Hardware LB routers to funky things like connection
> > monitoring or something like that so it knows where to go to, if one
> > machine goes down it may still connect to it correct ? I sent some
> > code examples I think on the round robin code i had to implement when
> > the LB went down on us.
> >
> > On 05/02/2008, at 11:39 PM, Sales Department wrote:
> >
> >
> >> It's a DNS server, which is hardware/software using BIND.
> >>
> >> Steven Gong wrote:
> >>
> >>> Hi Bill,
> >>> Thanks for the info. What LB are you using? Software LB or hardware
> >>> LB?
> >>>
> >>> On Feb 5, 2008 10:30 AM, Interalab <sales at interalab.com
> >>> <mailto:sales at interalab.com>> wrote:
> >>>
> >>>    Sure.
> >>>
> >>>    On the DNS side, it's a simple round-robin LB:
> >>>
> >>>    domain.com <http://domain.com>.
> >>>    edge                A      [server ip edge #1]
> >>>                          A      [server ip edge #2]
> >>>                          A      [server ip edge #3]
> >>>    origin               A      [server ip origin]
> >>>
> >>>    This sets up two domain names, one pointed to the origin and
> >>> another
> >>>    pointed to the edges (address gets handed out round robin to all
> >>> IP's
> >>>    under the edge host).  I found that DNS can't provide addresses
> >>>    based on
> >>>    port of the request, and Flash will try rtmp and then fail over to
> >>>    rtmpt, but will only try on the same address.  This way, I can try
> >>>    rmtp
> >>>    on one address and rtmpt on another one.
> >>>
> >>>    On the Flash side, we set a flag to try the edge server first,
> >>> then if
> >>>    it fails, try the origin server:
> >>>
> >>>       if(toggle==true){
> >>>               trace("try rtmp");
> >>>               toggle = false;
> >>>               my_nc.connect(edge.domain.com <http://edge.domain.com>,
> >>>    . . .);
> >>>           } else {
> >>>               trace("try rtmpt");
> >>>               toggle = true;
> >>>               my_nc.connect(origin.domain.com
> >>>    <http://origin.domain.com>, . . . );
> >>>           }
> >>>
> >>>    Watch the my_nc.onStatus() to find out if the connection was
> >>>    successful.  If not, try again.
> >>>
> >>>    I never said I was a good coder, but this seems to work :-)
> >>>    Comments,
> >>>    improvements welcome.
> >>>
> >>>    Bill.
> >>>
> >>>    Steven Gong wrote:
> >>>
> >>>> Hi Bill,
> >>>> Can you share your load-balancing configurations and deployment
> >>>> solution with us? Thanks!
> >>>>
> >>>> On Feb 4, 2008 11:29 PM, Sales Department <sales at interalab.com
> >>>>
> >>>    <mailto:sales at interalab.com>
> >>>
> >>>> <mailto:sales at interalab.com <mailto:sales at interalab.com>>> wrote:
> >>>>
> >>>>    I used
> >>>>
> >>>>
> >>>
> http://jira.red5.org/confluence/display/docs/Edge+Origin+Clustering+Configuration
> >>>
> >>>>    for our configuration and it was really easy to do.  The new
> >>>>
> >>>    target
> >>>
> >>>>    should make it even easier, thanks.
> >>>>
> >>>>    The last I remember, someone said the Terracotta set up was not
> >>>>    working
> >>>>    yet.  If it is working, I don't know much about Terracotta,
> >>>>
> >>>    so a short
> >>>
> >>>>    bullet point list of benefits would be helpful.
> >>>>
> >>>>    Regards,
> >>>>    Bill
> >>>>
> >>>>    Thijs Triemstra | Collab wrote:
> >>>>
> >>>>> hi Bill,
> >>>>>
> >>>>> Thanks for the stats :) I added a new 'ant dist-cluster'
> >>>>>
> >>>    target to
> >>>
> >>>>> the main ant build file yesterday, that creates a
> >>>>>
> >>>    'cluster' folder
> >>>
> >>>>> containing an 'edge' and 'origin' folder/server. Let us
> >>>>>
> >>>    know if you
> >>>
> >>>>> have any ideas on how to make it easier to create red5
> >>>>>
> >>>    clustering
> >>>
> >>>>> setups.
> >>>>>
> >>>>> Cheers,
> >>>>>
> >>>>> Thijs
> >>>>>
> >>>>> On Feb 4, 2008, at 3:43 PM, Sales Department wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> It's an alternate configuration of Red5 where you can hang
> >>>>>>
> >>>>    additional
> >>>>
> >>>>>> servers (edges) off the main server that contains the
> >>>>>>
> >>>    applications
> >>>
> >>>>>> (origin).   I can't seem to find the wiki link for the
> >>>>>>
> >>>    setup at the
> >>>
> >>>>>> moment.  You could search the email lists for it.
> >>>>>>
> >>>>>> Bill
> >>>>>>
> >>>>>> Mark van Harmelen wrote:
> >>>>>>
> >>>>>>
> >>>>>>> for a n00b, please, what's an origin, and what's an edge (I
> >>>>>>>
> >>>>    think I
> >>>>
> >>>>>>> can guess, but I'd like confirmation, please)
> >>>>>>>
> >>>>>>> thanks
> >>>>>>> mark
> >>>>>>>
> >>>>>>> On Feb 4, 2008 2:33 PM, Sales Department
> >>>>>>>
> >>>    <sales at interalab.com <mailto:sales at interalab.com>
> >>>
> >>>>    <mailto:sales at interalab.com <mailto:sales at interalab.com>>
> >>>>
> >>>>>>> <mailto:sales at interalab.com <mailto:sales at interalab.com>
> >>>>>>>
> >>>    <mailto:sales at interalab.com <mailto:sales at interalab.com>>>> wrote:
> >>>
> >>>>>>>    Origin looked just like the edges as far as CPU and
> >>>>>>>
> >>>    memory are
> >>>
> >>>>>>>    concerned.  Of course, all 30 mbps was being
> >>>>>>>
> >>>    delivered by the
> >>>
> >>>>>>> origin
> >>>>>>>    where the edges were only delivering their share.
> >>>>>>>
> >>>     All three
> >>>
> >>>>>>>    servers are
> >>>>>>>    the same hardware and in the same data center,
> >>>>>>>
> >>>    connected to
> >>>
> >>>>>>> the same
> >>>>>>>    1Gbit switch, so there shouldn't have been any
> >>>>>>>
> >>>    latency between
> >>>
> >>>>>>>    servers.
> >>>>>>>    Each server has two NIC's.
> >>>>>>>
> >>>>>>>    The CPU load suggests that we could have supported
> >>>>>>>
> >>>    over 700
> >>>
> >>>>>>> concurrent
> >>>>>>>    viewers with a CPU of under 90% load.
> >>>>>>>
> >>>>>>>    The big question for me is whether I can feed a
> >>>>>>>
> >>>    second origin
> >>>
> >>>>>>> from the
> >>>>>>>    first so I could have a duplicate system in a second
> >>>>>>>
> >>>    data
> >>>
> >>>>    center?
> >>>>
> >>>>>>>    Bill
> >>>>>>>
> >>>>>>>    Steven Gong wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>> Thanks for reporting this, Bill! :-)
> >>>>>>>> I am interested in the load of Origin too.
> >>>>>>>>
> >>>>>>>> On Feb 4, 2008 9:53 PM, Sales Department
> >>>>>>>>
> >>>    <sales at interalab.com <mailto:sales at interalab.com>
> >>>
> >>>>    <mailto:sales at interalab.com <mailto:sales at interalab.com>>
> >>>>
> >>>>>>>    <mailto:sales at interalab.com
> >>>>>>>
> >>>    <mailto:sales at interalab.com> <mailto:sales at interalab.com
> >>>    <mailto:sales at interalab.com>>>
> >>>
> >>>>>>>> <mailto:sales at interalab.com
> >>>>>>>>
> >>>    <mailto:sales at interalab.com> <mailto:sales at interalab.com
> >>>    <mailto:sales at interalab.com>>
> >>>
> >>>>    <mailto:sales at interalab.com <mailto:sales at interalab.com>
> >>>>
> >>>    <mailto:sales at interalab.com <mailto:sales at interalab.com>>>>>
> >>> wrote:
> >>>
> >>>>>>>>    Hello all.  Just wanted to post the results of a
> >>>>>>>>
> >>>    live show
> >>>
> >>>>>>>    we did last
> >>>>>>>
> >>>>>>>
> >>>>>>>>    week using the edge/origin configuration.
> >>>>>>>>
> >>>>>>>>    Config:
> >>>>>>>>
> >>>>>>>>    Red5 trunk revision 2538
> >>>>>>>>    Origin plus two edges.
> >>>>>>>>    Routing all rtmpt to the origin and rtmp to the edges.
> >>>>>>>>    Each server is a dual core AMD Athlon 64 5400+ (I
> >>>>>>>>
> >>>    think)
> >>>
> >>>>    with 4
> >>>>
> >>>>>>>>    Gig RAM,
> >>>>>>>>    Ubuntu Linux, all in one data center.
> >>>>>>>>    1Gbit Internet connection and switching hardware.
> >>>>>>>>    Using live encoded stream as source, 427x240
> >>>>>>>>
> >>>    (widescreen),
> >>>
> >>>>>>>    20fps.
> >>>>>>>
> >>>>>>>
> >>>>>>>>    Encoder is a dual core AMD Athlon 64 4800+ with 1
> >>>>>>>>
> >>>    Gig RAM,
> >>>
> >>>>>>>    firewire
> >>>>>>>
> >>>>>>>
> >>>>>>>>    camera/audio feed, Ubuntu Linux.
> >>>>>>>>
> >>>>>>>>    Event:
> >>>>>>>>
> >>>>>>>>    3 hour live talk show, one camera.
> >>>>>>>>    University Internet connection used for upstream
> >>>>>>>>
> >>>    encoder
> >>>
> >>>>    link.
> >>>>
> >>>>>>>>    Performance:
> >>>>>>>>
> >>>>>>>>    Summary- couldn't have been any better!  No
> >>>>>>>>
> >>>    problems, dropped
> >>>
> >>>>>>>>    connections, or choppiness. Very stable.
> >>>>>>>>    Approximately 30 mbps of client connections spread
> >>>>>>>>
> >>>    over the
> >>>
> >>>>>>>    origin
> >>>>>>>
> >>>>>>>
> >>>>>>>>    and edges
> >>>>>>>>    Load balancing was perfect, spreading rtmp connections
> >>>>>>>>
> >>>>>>>>
> >>>>>>>    equally between
> >>>>>>>
> >>>>>>>
> >>>>>>>>    the edges, all rtmpt sent to origin.
> >>>>>>>>    The origin showed two connections, one from each edge,
> >>>>>>>>
> >>>>    consuming
> >>>>
> >>>>>>>>    approximately 12mbps each, plus about 6mbps of rtmpt
> >>>>>>>>
> >>>>    connections
> >>>>
> >>>>>>>>    directly to origin from clients.
> >>>>>>>>    RAM consumption on the servers never exceeded 2 GB
> >>>>>>>>
> >>>    each.
> >>>
> >>>>>>>>    CPU performance on all three servers was about 12%
> >>>>>>>>
> >>>    load each.
> >>>
> >>>>>>>>    Thank you Red5 team for a great piece of software!
> >>>>>>>>
> >>>     You are
> >>>
> >>>>>>>    helping to
> >>>>>>>
> >>>>>>>
> >>>>>>>>    enable a revolution in media delivery.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>    _______________________________________________
> >>>>>>>>    Red5 mailing list
> >>>>>>>>    Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>>>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
> >>>
> >>>>>>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>>
> >>>
> >>>>>>>>    http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Best Regards
> >>>>>>>> Steven Gong
> >>>>>>>>
> >>>>>>>> InfraRed5 Red5 Consultant: http://www.infrared5.com,
> >>>>>>>> steven at infrared5.com <mailto:steven at infrared5.com>
> >>>>>>>>
> >>>    <mailto:steven at infrared5.com <mailto:steven at infrared5.com>>
> >>>
> >>>>    <mailto:steven at infrared5.com <mailto:steven at infrared5.com>
> >>>>
> >>>    <mailto:steven at infrared5.com <mailto:steven at infrared5.com>>>
> >>>
> >>>>>>>    <mailto:steven at infrared5.com
> >>>>>>>
> >>>    <mailto:steven at infrared5.com> <mailto:steven at infrared5.com
> >>>    <mailto:steven at infrared5.com>>
> >>>
> >>>>    <mailto:steven at infrared5.com <mailto:steven at infrared5.com>
> >>>>
> >>>    <mailto:steven at infrared5.com <mailto:steven at infrared5.com>>>>
> >>>
> >>>>>>>> Red5 Developer: http://osflash.org/red5,
> >>>>>>>> http://jira.red5.org/confluence/display/~steven/Home<http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>>>>>>
> >>>    <http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>
> >>>>    <http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>>
> >>>>>>>    <http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>>>>>
> >>>>>>>
> >>>>>>>> <http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>>>>>>
> >>>>>>>> Javaflash Project Founder and Maintainer:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>    http://osflash.org/javaflash
> >>>>>>>
> >>>>>>>
> >>>>>>>> Modesty is an overrated quality in men of no great
> >>>>>>>>
> >>>>>>>>
> >>>>>>>    accomplishment.  --
> >>>>>>>
> >>>>>>>
> >>>>>>>> Ricky Jay
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>>
> >>>>>>> ---
> >>>>>>>
> >>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> Red5 mailing list
> >>>>>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>>>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
> >>>
> >>>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>    _______________________________________________
> >>>>>>>    Red5 mailing list
> >>>>>>>    Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
> >>>
> >>>>>>>    http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> primary email        mark -a at t- cs.man.ac.uk
> >>>>>>>
> >>>    <http://cs.man.ac.uk>
> >>>
> >>>>    <http://cs.man.ac.uk> <http://cs.man.ac.uk>
> >>>>
> >>>>>>> secondary email    markvanharmelen -a at t- gmail.com
> >>>>>>>
> >>>    <http://gmail.com>
> >>>
> >>>>    <http://gmail.com> <http://gmail.com>
> >>>>
> >>>>>>> email direct to mobile/cell phone (no attachments please)
> >>>>>>>                           mvhphone -a at t- gmail.com
> >>>>>>>
> >>>    <http://gmail.com>
> >>>
> >>>>    <http://gmail.com> <http://
> >>>>
> >>>>>>> gmail.com <http://gmail.com> <http://gmail.com>>
> >>>>>>> skype                   markvanharmelen
> >>>>>>> cell/mobile            07830 212 464
> >>>>>>>
> >>>>>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>>
> >>>>>>> ---
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> Red5 mailing list
> >>>>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> _______________________________________________
> >>>>>> Red5 mailing list
> >>>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>>>
> >>>>>>
> >>>>> _______________________________________________
> >>>>> Red5 mailing list
> >>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>>
> >>>>>
> >>>>    _______________________________________________
> >>>>    Red5 mailing list
> >>>>    Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>>
> >>>    <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
> >>>
> >>>>    http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Best Regards
> >>>> Steven Gong
> >>>>
> >>>> InfraRed5 Red5 Consultant: http://www.infrared5.com,
> >>>> steven at infrared5.com <mailto:steven at infrared5.com>
> >>>>
> >>>    <mailto:steven at infrared5.com <mailto:steven at infrared5.com>>
> >>>
> >>>> Red5 Developer: http://osflash.org/red5,
> >>>> http://jira.red5.org/confluence/display/~steven/Home<http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>>
> >>>    <http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>
> >>>> <http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>>
> >>>> Javaflash Project Founder and Maintainer:
> >>>>
> >>>    http://osflash.org/javaflash
> >>>
> >>>> Modesty is an overrated quality in men of no great
> >>>>
> >>>    accomplishment.  --
> >>>
> >>>> Ricky Jay
> >>>>
> >>>>
> >>>
> >>>
> ------------------------------------------------------------------------
> >>>
> >>>> _______________________________________________
> >>>> Red5 mailing list
> >>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>
> >>>>
> >>>    _______________________________________________
> >>>    Red5 mailing list
> >>>    Red5 at osflash.org <mailto:Red5 at osflash.org>
> >>>    http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> Best Regards
> >>> Steven Gong
> >>>
> >>> InfraRed5 Red5 Consultant: http://www.infrared5.com,
> >>> steven at infrared5.com <mailto:steven at infrared5.com>
> >>>
> >>> Red5 Developer: http://osflash.org/red5,
> >>> http://jira.red5.org/confluence/display/~steven/Home<http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>> <http://jira.red5.org/confluence/display/%7Esteven/Home>
> >>>
> >>> Javaflash Project Founder and Maintainer: http://osflash.org/
> >>> javaflash
> >>>
> >>> Modesty is an overrated quality in men of no great accomplishment.
> >>> --
> >>> Ricky Jay
> >>>
> ------------------------------------------------------------------------
> >>>
> >>> _______________________________________________
> >>> Red5 mailing list
> >>> Red5 at osflash.org
> >>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>
> >>>
> >> _______________________________________________
> >> Red5 mailing list
> >> Red5 at osflash.org
> >> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



-- 
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com, steven at infrared5.com

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

Javaflash Project Founder and Maintainer: http://osflash.org/javaflash

Modesty is an overrated quality in men of no great accomplishment.  -- Ricky
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080206/b8a28ed3/attachment-0001.html 


More information about the Red5 mailing list