DJabberd-Plugin-Balancer

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

        ...
      </VHost>

DESCRIPTION
    This is a simple load balancer plugin for djabberd that works by
    distributing all the messages for a single fully qualified JID through
    several clients.

    Every time a client binds to a resource, this plugin will record that
    trial and return a different resource, including a sufix in the #999
    format. The original JID will be saved as a load balancing endpoint.
    Other clients then can try to bind to the same resource, and will also
    be assigned different JIDs, but all that will be recorded.

    If some client, on the other hand, tries to bind to the resource of
    another real client (already with the #999 sufix), the bind will be
    denied.

    When a message arrives for the load-balancing-endpoint JID, it will be
    dispatched randomly through all the clients that tried to bind to that
    resource.

    Messages to the real JIDs will be delivered normally, iq stanzas will
    work as expected, since when sending that, the client will send using
    the JID assigned by the server.

DIFFERENCES
    Unlike the default behaviour, on a real-JID conflict, the new connection
    will be dropped, and not the old one.

lib/DJabberd/Plugin/Balancer.pm  view on Meta::CPAN


=head1 DESCRIPTION

This is a simple load balancer plugin for djabberd that works by
distributing all the messages for a single fully qualified JID through
several clients.

Every time a client binds to a resource, this plugin will record that
trial and return a different resource, including a sufix in the #999
format. The original JID will be saved as a load balancing
endpoint. Other clients then can try to bind to the same resource, and
will also be assigned different JIDs, but all that will be recorded.

If some client, on the other hand, tries to bind to the resource of
another real client (already with the #999 sufix), the bind will be
denied.

When a message arrives for the load-balancing-endpoint JID, it will be
dispatched randomly through all the clients that tried to bind to that
resource.

Messages to the real JIDs will be delivered normally, iq stanzas will
work as expected, since when sending that, the client will send using
the JID assigned by the server.

=head1 DIFFERENCES

Unlike the default behaviour, on a real-JID conflict, the new



( run in 0.277 second using v1.01-cache-2.11-cpan-b61123c0432 )