Created
September 11, 2014 14:00
-
-
Save benhosmer/268ec9534c05aa4ae364 to your computer and use it in GitHub Desktop.
Autoslave module settings.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Snippet for configuring the autoslave module in settings.php | |
// Master is x.x.x.100 and slave is x.x.x.101 | |
$databases['default']['master'] = array ( | |
'database' => 'drupal', | |
'username' => 'root', | |
'password' => 'root', | |
'host' => '192.168.33.100', | |
'port' => '', | |
'driver' => 'mysql', | |
'prefix' => '', | |
); | |
$databases['default']['slave'][] = array ( | |
'database' => 'drupal', | |
'username' => 'root', | |
'password' => 'root', | |
'host' => '192.168.33.101', | |
'port' => '', | |
'driver' => 'mysql', | |
'prefix' => '', | |
'readonly' => TRUE, | |
); | |
$databases['default']['default'] = array ( | |
'driver' => 'autoslave', | |
'master' => array('master', 'slave'), | |
'slave' => array('slave', 'master'), | |
'invalidation path' => 'sites/default/files', | |
'flag all tables' => TRUE | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment