Posted by WhenInRome on March 30, 2010 at 12:06am
I understand that Mercury doesn't officially support multisite yet. But has anyone configured it for use with multisite? I have a brand new server I'm setting up and want to put mercury on it, but I have 10+ sites! Any input/advice is appreciated.
Thanks,
Comments
Should be fine
It should work fine with multiple sites.
You should check to make sure the memcache/APC configs have prefixes for each of the sites so that you don't have cross-site cache corruption.
That's the main thing
Greg is correct: cache-keys are the first thing you need to worry about for multi-siting on Mercury.
However, configuring Solr for multisite is more non-trivial work, and there are enough other edge-cases where I don't want to tell people it's "all good" for multisite. Managing expectations again. ;)
https://pantheon.io | http://www.chapterthree.com | https://www.outlandishjosh.com
I wont be using Solr just
I wont be using Solr just quite yet. But for the rest of the stuff....can anyone walk me through the edits that need to be made?
Memcache Prefixing
See the "prefixing" section on the main memcache page: http://drupal.org/project/memcache
There may be other issues. Like I said, it's not all tested yet.
https://pantheon.io | http://www.chapterthree.com | https://www.outlandishjosh.com
Thanks for the reply Josh.
Thanks for the reply Josh. I'll be the guinea pig and report back any issues with running multisite if I run into any.
Multisites work great for me so far.
I run Aegir in Mercury, have done for months now with no probs; its platforms are essentially Multi-sites. Memcached does work fine with the prefix.. its as simple as adding 'memcache_key_prefix' => 'yoursite' to your conf array for each site along with the other memcached stuff. Varnish seems to be fine in the mix too. Solr is the only thing ive not made multi-site capable in my stuff.. since only one site needs solr and well I couldn't get multi-core solr to work lol.
I made this wiki a while back http://groups.drupal.org/node/55393 thats geared around Mercury + Aegir but its platforms are multi-sites like I said. If you can get the solr multi-core to work please add it there so folks that need it can try it out before there is a mercury + aegir and/or mercury multi-site build released. If I end up needing it I may but truthfully im thinking of placing solr & memcached into their own separate server instances with focused ami's.
We have a soon coming real estate site thats a beast with 40k + nodes, it uses solr & may require its own instance when all is said and done. IMO the multi-sites might bog down a small instance so I used a large instance & may give some sites their own instances... the cool thing is that it looks like Aegir can manage sites across multiple servers which I really want to test soon!
Looking forward to hear any multi-site stuff you run into.
Cheers to all the Pantheon Aegir and Drupal folks for all these awesome open source goodies!
Joshua
Thanks for the post. Thanks
Thanks for the post. Thanks to josh and the crew I got multisite working flawlessly. Just like you said, all I had to do was add the prefix and it all seems to be working fine.
What about the Domain Access module?
I've been looking into the feasibility of implementation of the Domain Access module with the Mercury project. Is it more reasonable to leverage existing code? Any thoughts on this?
Multisite solr
http://groups.drupal.org/node/72488
what you don't know will inspire you