I have a MediaWiki application installed on a single AWS EC2 server with its own RDS Database server, which works well. For load balancing purposes, I installed another EC2 server with a load balancer to handle additional web server traffic.
I edited the LocalSettings.php and pointed it to a load balanced URL $wgServer = "http://xxxxxxxxx.elb.amazonaws.com" , I then restated the apache servers.
The application does not work consistently any longer – here are some of the symptoms.
- After logging in, the end user is shown the log in link as if the user never logged in at all.
- The Data may or may when user edits information.
After I shutdown one of the web servers in the load balancer – everything works well again. I suspect this is due to session state etc.
How can I make the application work in a load balanced environment?
I also looked at https://meta.wikimedia.org/wiki/Help:Logging_and searched for information in but it does not give me clues how to solve this.
Installed from https://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz on an EC2 Linux server.