Laikmosh Posted January 24, 2022 Posted January 24, 2022 Hello, im trying to configure a read replica as documented in https://processwire.com/blog/posts/pw-3.0.175/ I have already configured my aws aurora database to have read replicas Im using elasticbeanstalk so i configured the writer and reader endpoints as env vars: and finally added this configuration to my config.php /** * Installer: Database Configuration * */ $config->dbHost = $_SERVER['host']; $config->dbName = $_SERVER['db']; $config->dbUser = $_SERVER['user']; $config->dbPass = $_SERVER['pass']; $config->dbPort = 3306; $config->dbEngine = 'InnoDB'; if ($_SERVER['hostReader']) { $config->dbReader = [ 'host' => $_SERVER['hostReader'], ]; }; but now im getting this error anytime i try to load the site: Error: Exception: SQLSTATE[HY000]: General error: 1836 Running in read-only mode (in wire/core/WireDatabasePDO.php line 889) Any ideas what i could be doing wrong?
Laikmosh Posted March 28, 2022 Author Posted March 28, 2022 Im back to be in need of this horizontal scaling, still no clue on what im missing, anyone here has ever tried using read replicas with processwire?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now