Hello All,
I ran into a very interesting issue when I was replicating my production site's moodledata to my dev environment that lead to a outage for my production site. I am still trying to determine the cause and was wondering if I could get some direction. I only copied the Moodledata and not the database nor the moodle code. My dev environment had a few difference in settings along with being in maintenance mode. After the copying of moodledata to the dev environment, end users on production were getting the maintenance mode page and certain settings and pages on dev were showing on production. I checked the production's database to see if it was in maintenance mode, it was not. My environments are on different hardware and dev is the same design as production. I could not take my production site out of maintenance mode through the GUI. I assume it was the caches that caused the problem but here is where it is odd:
- tempdir was not copied over as it was not in moodledata. Different storage servers
- cachedir was not copied over as it was not in moodledata. Different storage servers
- localcachedir was not copied over as it was not in moodledata. On the apache servers.
- MUC caching goes to memcache port 11211. Different servers with prod and dev
- Session handling goes to memcache port 11212. Different servers with prod and dev
In the end I had to drop dev completeley and purge all the caching (through the CLI and flush_all with memcache) on production to fix the issue but I am still not 100% certain if the dev impacting production is fixed.. Did I overlook something on how the caching is set in Moodle where something in moodledata that could make dev push caching data to the production server instances?