bjournal (bjournal) wrote in lj_everywhere,
bjournal
bjournal
lj_everywhere

Multiple DBINFO Clusters

I'm trying to setup multiple dbinfo clusters, to keep the users off the main database. I have a test account already on cluster1, whichi is on the master db server, so I want to leave that there, but I'm trying to setup so all new accounts go on the second cluster. It creates the accounts over there, but whenever I try to visit a journal I receive "User test_cluster2 has messed up their journal template definition" because there's no styles anywhere. I've already ran ./update-db.pl --cluster=2 --runsql I cannot do --populate because it's not meant for user profiles. What am I missing? Also, are there memcache clusters? I don't see anywhere to configure a memcache cluster per DBINFO cluster.

%DBINFO = (
'master' => { # master must be named 'master'
'host' => "localhost",
'port' => 3306,
'user' => 'user',
'pass' => 'password',
'dbname' => 'livejournal',
'role' => {
'cluster1' => 1,
},
},
'cluster2' => {
'host' => "localhost",
'port' => 3306,
'user' => 'user',
'pass' => 'password',
'dbname' => 'dbcluster2',
'role' => {
'cluster2' => 1,
},
},
);
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 3 comments