Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Our site traffic has grown large enough that we need to implement two web servers.

We've signed up for the RackSpace cloud and we're wanting to move our eCommerce platform accross. We're running Magento.

Basically I have a few issues.

I'm in the testing phase at the moment and I've built two web servers which connect to a dedicated DB server and am using the Cloud Load Balancer that Rackspace provide, however I'm not sure on a couple of things.

1) having two web servers, I seem to lose my session frequently. How do you get around this? I don't have a SAN. Should I use our dedicated DB server and NFS mount a drive to have a shared sessions directory?

2) Where should we host our media, such as product images etc? At the moment, they're on each individual server and I have been using Rsync to sync the directories. I have toyed with the idea of using the Rackspace CDN but if the admin staff add a product, how should the image be pushed to the cloud? Should it be done using API commands at the time of image upload or is there a good way I can do it at OS level?

3) Any other advice about this would be greatly appreciated.

Thanks

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Regarding your question about session persistence, there's a few ways to get around losing your persistence. Storing your sessions in a database, memcache or shared storage is one way, which may work fine, but may introduce a single point-of-failure into your environment.

Another way may be to see if you can have your loadbalancer perform session persistence, by forcing connections from a user to a single server (hopefully using cookies). I'm not sure if this is an option with Rackspace Cloud loadbalancers.

share|improve this answer
    
You can get around the SPoF on memcached instances with the Repcached patch. repcached.lab.klab.org –  Tom O'Connor Dec 8 '11 at 18:14
    
I ended up using DB based sessions. Thanks –  Samuurai Feb 10 '12 at 16:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.