Aniki::Plugin::WeightedRoundRobin - Connect to database in a Weighted RoundRobin manner
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, }, ]);
Data::WeightedRoundRobin Aniki::Handler::WeightedRoundRobin
Copyright (C) karupanerura.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
karupanerura <karupa@cpan.org>
To install Aniki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Aniki
CPAN shell
perl -MCPAN -e shell install Aniki
For more information on module installation, please visit the detailed CPAN module installation guide.