The docs show:

__PACKAGE__->config({
        traits => ['Replicated']
        connect_info =>
            ['dbi:mysql:master', 'user', 'pass'],
        replicants => [
            ['dbi:mysql:slave1', 'user', 'pass'],
            ['dbi:mysql:slave2', 'user', 'pass'],
            ['dbi:mysql:slave3', 'user', 'pass'],
        ],
        balancer_args => {
          master_read_weight => 0.3
        }
    });

Shouldn't that be regular connect_info?

my %config = (
    traits => ['Replicated'],
    connect_info => {
        dsn => 'dbi:mysql:master',
        user => 'username',
        pass => 'password',
    },
    replicants => [
        {
            dsn => 'dbi:mysql:slave1',
            user => 'username',
            pass => 'password',
        },
        {
            dsn => 'dbi:mysql:slave1',
            user => 'username',
            pass => 'password',
        },
    ],
    balancer_args => {
      master_read_weight => 0.3
    }
);

-- 
Bill Moseley
mose...@hank.org
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to