NAME

Aniki::Plugin::WeightedRoundRobin - Connect to database in a Weighted RoundRobin manner

SYNOPSIS

    package MyDB;
    use Mouse v2.4.5;
    extends qw/Aniki/;
    with qw/Aniki::Plugin::WeightedRoundRobin/;

    my $db = MyDB->new(connect_info => [
        {
            value  => [...], # Auguments for DBI's connect method.
            weight => 10,
        },
        {
            value  => [...], # Auguments for DBI's connect method.
            weight => 10,
        },
    ]);

SEE ALSO

Data::WeightedRoundRobin Aniki::Handler::WeightedRoundRobin

LICENSE

Copyright (C) karupanerura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

karupanerura <karupa@cpan.org>