You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by aruna reddy <re...@gmail.com> on 2011/09/16 06:22:18 UTC

clustering in vysper

Hi

We have a requirement which needs clustering in vysper.I came across
this link (http://comments.gmane.org/gmane.comp.apache.mina.user/3665)
where this is discussed using cassandra.Is this implemented in vysper.
Trying to implement this by RosterManager.Need a clarification during
clustering what needs to stored is it the resource or session bound
with resource to share the users object among multiple vysper servers.

Re: clustering in vysper

Posted by aruna reddy <re...@gmail.com>.
Hi,

For now in my implentation class of roster manager i am using another
table(differnt from the table which stores UserID and password) which
stores the bareJID and MutableRoster.Do i need to store the resource
or session in the db or the roster object


On Fri, Sep 16, 2011 at 1:51 PM, Sasha Dolgy <sd...@gmail.com> wrote:
> If you currently have your own StorageProvider registry to get client
> details from a DB, why not deploy more instances of Vysper all
> pointing to the same DB ?
>
> On Fri, Sep 16, 2011 at 9:21 AM, aruna reddy <re...@gmail.com> wrote:
>> Hi,
>> Thanks for showing interest.
>> The requirement is as below.
>> We are using XMPP server to communicate between the clients.The
>> username pwds of the clients are stored in DB and we are using our own
>> storageprovider registry to get the details of clients from db.We want
>> to have more XMPP servers to help us in load balancing.In this case we
>> want the user object to be shared among all servers.For now we have
>> have subclassed AbstractRosterManager with our own implementation to
>> store it DB.I could not understand what needs to be done in specific
>> implementation of ResourceRegistry.
>>
>> Thanks
>> Aruna
>

Re: clustering in vysper

Posted by Sasha Dolgy <sd...@gmail.com>.
If you currently have your own StorageProvider registry to get client
details from a DB, why not deploy more instances of Vysper all
pointing to the same DB ?

On Fri, Sep 16, 2011 at 9:21 AM, aruna reddy <re...@gmail.com> wrote:
> Hi,
> Thanks for showing interest.
> The requirement is as below.
> We are using XMPP server to communicate between the clients.The
> username pwds of the clients are stored in DB and we are using our own
> storageprovider registry to get the details of clients from db.We want
> to have more XMPP servers to help us in load balancing.In this case we
> want the user object to be shared among all servers.For now we have
> have subclassed AbstractRosterManager with our own implementation to
> store it DB.I could not understand what needs to be done in specific
> implementation of ResourceRegistry.
>
> Thanks
> Aruna

Re: clustering in vysper

Posted by Bernd Fondermann <be...@googlemail.com>.
On Wed, Sep 28, 2011 at 09:06, aruna reddy <re...@gmail.com> wrote:
> Hi Bernd,
>
> Clustering in XMPP in complex i agree with you but as the number of
> users increase then scalability really matters.We are interested in
> implementing load balancing can you  give some inputs how to start on
> working on load balancing.

Actually, I don't know where to start in addition to what I said
earlier on this list.
I guess you'd have to scratch your own itch here.

Sorry,

  Bernd

Re: clustering in vysper

Posted by aruna reddy <re...@gmail.com>.
Hi Bernd,

Clustering in XMPP in complex i agree with you but as the number of
users increase then scalability really matters.We are interested in
implementing load balancing can you  give some inputs how to start on
working on load balancing.

Aruna

On Fri, Sep 16, 2011 at 8:17 PM, Bernd Fondermann
<be...@googlemail.com> wrote:
> On Fri, Sep 16, 2011 at 09:21, aruna reddy <re...@gmail.com> wrote:
>> Hi,
>> Thanks for showing interest.
>> The requirement is as below.
>> We are using XMPP server to communicate between the clients.The
>> username pwds of the clients are stored in DB and we are using our own
>> storageprovider registry to get the details of clients from db.We want
>> to have more XMPP servers to help us in load balancing.In this case we
>> want the user object to be shared among all servers.For now we have
>> have subclassed AbstractRosterManager with our own implementation to
>> store it DB.I could not understand what needs to be done in specific
>> implementation of ResourceRegistry.
>
> The ResourceRegistry contains all running sessions. The crux with XMPP
> and social applications in general is that everyone is connected to
> someone. These net of connected contacts builds a graph. This graph
> must somehow be shared within the cluster of XMPP servers so every
> server is able to send presence notifications.
> It's the most difficult part in XMPP clustering.
>
>  Bernd
>

Re: clustering in vysper

Posted by Bernd Fondermann <be...@googlemail.com>.
On Fri, Sep 16, 2011 at 09:21, aruna reddy <re...@gmail.com> wrote:
> Hi,
> Thanks for showing interest.
> The requirement is as below.
> We are using XMPP server to communicate between the clients.The
> username pwds of the clients are stored in DB and we are using our own
> storageprovider registry to get the details of clients from db.We want
> to have more XMPP servers to help us in load balancing.In this case we
> want the user object to be shared among all servers.For now we have
> have subclassed AbstractRosterManager with our own implementation to
> store it DB.I could not understand what needs to be done in specific
> implementation of ResourceRegistry.

The ResourceRegistry contains all running sessions. The crux with XMPP
and social applications in general is that everyone is connected to
someone. These net of connected contacts builds a graph. This graph
must somehow be shared within the cluster of XMPP servers so every
server is able to send presence notifications.
It's the most difficult part in XMPP clustering.

  Bernd

Re: clustering in vysper

Posted by aruna reddy <re...@gmail.com>.
Hi,
Thanks for showing interest.
The requirement is as below.
We are using XMPP server to communicate between the clients.The
username pwds of the clients are stored in DB and we are using our own
storageprovider registry to get the details of clients from db.We want
to have more XMPP servers to help us in load balancing.In this case we
want the user object to be shared among all servers.For now we have
have subclassed AbstractRosterManager with our own implementation to
store it DB.I could not understand what needs to be done in specific
implementation of ResourceRegistry.

Thanks
Aruna


On Fri, Sep 16, 2011 at 12:02 PM, Sasha Dolgy <sd...@gmail.com> wrote:
> i am extremely happy to collaborate with someone on this  ...
> admittedly, i lost interest and shifted my focus elsewhere, but it is
> still very high on my list of TODO's !
>
> On Fri, Sep 16, 2011 at 7:46 AM, Bernd Fondermann
> <be...@googlemail.com> wrote:
>> You need to do at least two things:
>>
>> Subclass AbstractRosterManager with a Cassandra-specific implementation.
>> Do the same with ResourceRegistry.
>>
>> Unfortunately, ResourceRegistry still needs to be supported by an
>> Interface, see
>> https://issues.apache.org/jira/browse/VYSPER-266
>> I'll see that I get this into TRUNK soon.
>>
>>  Bernd
>>
>> On Fri, Sep 16, 2011 at 06:22, aruna reddy <re...@gmail.com> wrote:
>>> Hi
>>>
>>> We have a requirement which needs clustering in vysper.I came across
>>> this link (http://comments.gmane.org/gmane.comp.apache.mina.user/3665)
>>> where this is discussed using cassandra.Is this implemented in vysper.
>>> Trying to implement this by RosterManager.Need a clarification during
>>> clustering what needs to stored is it the resource or session bound
>>> with resource to share the users object among multiple vysper servers.
>>>
>>
>
>
>
> --
> Sasha Dolgy
> sasha.dolgy@gmail.com
>

Re: clustering in vysper

Posted by Sasha Dolgy <sd...@gmail.com>.
i am extremely happy to collaborate with someone on this  ...
admittedly, i lost interest and shifted my focus elsewhere, but it is
still very high on my list of TODO's !

On Fri, Sep 16, 2011 at 7:46 AM, Bernd Fondermann
<be...@googlemail.com> wrote:
> You need to do at least two things:
>
> Subclass AbstractRosterManager with a Cassandra-specific implementation.
> Do the same with ResourceRegistry.
>
> Unfortunately, ResourceRegistry still needs to be supported by an
> Interface, see
> https://issues.apache.org/jira/browse/VYSPER-266
> I'll see that I get this into TRUNK soon.
>
>  Bernd
>
> On Fri, Sep 16, 2011 at 06:22, aruna reddy <re...@gmail.com> wrote:
>> Hi
>>
>> We have a requirement which needs clustering in vysper.I came across
>> this link (http://comments.gmane.org/gmane.comp.apache.mina.user/3665)
>> where this is discussed using cassandra.Is this implemented in vysper.
>> Trying to implement this by RosterManager.Need a clarification during
>> clustering what needs to stored is it the resource or session bound
>> with resource to share the users object among multiple vysper servers.
>>
>



-- 
Sasha Dolgy
sasha.dolgy@gmail.com

Re: clustering in vysper

Posted by Bernd Fondermann <be...@googlemail.com>.
You need to do at least two things:

Subclass AbstractRosterManager with a Cassandra-specific implementation.
Do the same with ResourceRegistry.

Unfortunately, ResourceRegistry still needs to be supported by an
Interface, see
https://issues.apache.org/jira/browse/VYSPER-266
I'll see that I get this into TRUNK soon.

  Bernd

On Fri, Sep 16, 2011 at 06:22, aruna reddy <re...@gmail.com> wrote:
> Hi
>
> We have a requirement which needs clustering in vysper.I came across
> this link (http://comments.gmane.org/gmane.comp.apache.mina.user/3665)
> where this is discussed using cassandra.Is this implemented in vysper.
> Trying to implement this by RosterManager.Need a clarification during
> clustering what needs to stored is it the resource or session bound
> with resource to share the users object among multiple vysper servers.
>