Replies: 6 comments
-
I have faced the same problem having an RDS cluster with read replicas. In my case the problem is that I didn't install ludicrousdb correctly. I have fixed it by following these steps: 1.- Downloading the zip file https://github.com/stuttter/ludicrousdb/archive/master.zip This is my wp-content/plugins/ludicrousdb And this is the content of
|
Beta Was this translation helpful? Give feedback.
-
Installation guide is not good ;-) |
Beta Was this translation helpful? Give feedback.
-
@des79 could you improve the installation guide text, since you already know how it works now |
Beta Was this translation helpful? Give feedback.
-
@isradelatorre Thanks for your information. Unfortunately, I did install this properly. I have since gone back to hyper-db and it is working fine for now. I will not be able to attempt to use this until maybe next year at the earliest and it would have to be on a new system. The system is now averaging over a million users/day and I cannot risk attempting this again. I personally have no issues with the installation guide, this isn't complex to setup. I have tested 3 times by switching back and forth between hyper-db and this plugin and every time I would use this plugin, what I posted above would happen. I was never able to get this plugin to work as expected. That is unfortunate. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the trouble @jpSimkins. Without logs it's difficult to know for sure what happened, but obviously your experience isn't one we want people to have with LDB, so it will be important that we get this figured out eventually. Possibly related to #103? |
Beta Was this translation helpful? Give feedback.
-
Hmm, as a noob this is even more confusing for me now. You have 3 copies of db-config.php?
And 3 copies of db.php and db-error.php each?
:( |
Beta Was this translation helpful? Give feedback.
-
I used HyperDB and had no issues. I wanted to use this plugin as word around Google is it's more "up-to-date".
I switched to this plugin and within 30 minutes our DB connections went from an average of 100 connections to 2700. I could see the connection spike happening. This naturally caused a max_connections issue and I had to quickly revert this update and go back to HyperDB.
Traffic is not a cause here. This was on minimal traffic. We were performing an import which does many numerous DB calls reads and writes.
Also note, that I ran the same import with HyperDB and the DB connections went to a max of 175 connections. Still higher than I expect but I am not sure how PHP and MySQL work under the hood.
Please let me know if I can provide you with more details.
I am using AWS RDS (Aurora MySQL 5.7.12 with 2 db.r5.2xlarge instances, 1 Writer, 1 Reader).
The server cluster is Amazon Linux 2 AMI running PHP-FPM 7.2 with Apache 2.4.
Using ludicrousdb version:
5.0.0
I cannot provide logs as reverting back spun up new instances and destroyed the older ones (I know, centralized logs are important). When I checked the logs, I didn't see any errors other than connection timeouts or MySQL has gone away.
DB Constants in
wp-config.php
My
db-config.php
:Beta Was this translation helpful? Give feedback.
All reactions