[Red5devs] red5/terracotta status ?
Walter Tak
walter at waltertak.com
Sun Sep 7 20:08:23 PDT 2008
Hey Steven,
thanks for your answer.
I'm however not proficient enough to alter the Red5-sources. I'm happy I'm
able to use it and write 'applications' for Red5.
I only have normal programming skills (from assembler 68000 to VB, ASP, PHP
and currently 1 year of Java experience).
I'll continue to develop my 'clustering layer' within the
MultiThreadedApplicationAdapter , less generic or reusable for other people
but it's
probably enough for my projects. When terracotta finally is 'done' I'll
rewrite my code since nobody can tell , obviously , when the integration
will be done and when we could call Red5-TC stable.
Would you mind if I'd ask you, a few questions about the plan I have ?
I short I want to setup a few Red5 servers and let them connect to eachother
as soon as they started up. The idea is to have clients connect to any of
the other Red5 servers and if a client wants to send a 'message' to a client
that is connected to another Red5 server that both R5 servers will
communicate with each other, relaying the message (be it a changed
coordinate, text message or new highscore) to the other server.
Business-logic in the Application would send and receive those 'messages'.
And that's what I'm trying to develop.
I basically want to setup an RTMPclient-connection on the server to all
other Red5-servers in the pool. A seperate database will keep track of which
client is connected to what server ; Red5 will request once from the
database(cluster) where it can find a player and then cache it for a certain
time (to avoid excessive calls to the db). All users/clients need to login
via a script on a website which will store the client-info to the db and
tell the client to what Red5-server in the pool to connect. The website will
load-balance the requests by picking on of the available Red5-servers in the
pool which are flagged "online". This way I can put one server offline for
maintenance and after a while no client would be using that server anymore,
without any hard disconnects and I'd be able to restart Red5 on that server
etc etc.
If you see any problems (or not) I would like to hear your (short) feedback.
Regards,
Walter
> Hi Walter,
> Currently there are no updates for the Terracotta integration yet.
> Your problem can definitively be solved by Terracotta though. Maybe
> you can start with the Terracotta branch in Red5 repo. There is
> already a prototype for SharedObject clustering on Terracotta.
>
> On 9/6/08, Walter Tak <walter at waltertak.com> wrote:
>> Hey devs,
>>
>> what's the status of the Terracotta implementation in Red5 ?
>>
>> I'd like to know if I could have a 'room' spread out over multiple nodes
>> and
>> being able to cycle through a list of connected clients, which aren't
>> connected to the particular physical machine, but to the cluster.
>>
>> Any ideas if that is possible or will be possible ?
>>
>> I'm not referring to the edge/origin setup since I'd like to use Red5 in
>> a
>> multiplayer-gaming architecture and don't need video at all in that
>> project.
>>
>> I'm about to write my own code to be able to deploy say 10 Red5-servers
>> which each will connect to the other 9 in the cluster and relay data on
>> the
>> fly/when needed.
>>
>> Terracotta definately does what I need for the project (call it a casual
>> mmorpg) so I hope I missed news about TC :)
>>
>> Regards,
>> Walter
>>
>
>
> --
> Best Regards
> Steven Gong
More information about the Red5devs
mailing list