Jump to:

558 Posts in 3589 Topics by 244 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » What needs to be considered when moving to load-balancing?

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 812 Views
  • Corey
    Avatar
    Community Member
    2 Posts

    What needs to be considered when moving to load-balancing? Link to this post

    Hi,

    We're currently running SilverStripe CMS on one host and we'd like to shift it to a load-balanced set of servers.

    What needs to happen in order to make this work?

    Clearly, we'll need all 5 servers to talk to one database server. Also, I'm assuming all downloadable files such as images will be going to an uploads folder that will need to be regularly synchronized (with rsync, I presume) or alternatively, hosted on a common server (potentially Amazon S3, using S3FS).

    I'm making these plans now but I have no familiarity with Silverstripe. Is there other potential issues I should be investigating? For example, the presence of Memcached or something else?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: What needs to be considered when moving to load-balancing? Link to this post

    s there other potential issues I should be investigating? For example, the presence of Memcached or something else?

    SilverStripe has a cache for classnames and file lookups. You can either store the cache on a common fileshare or have a cache on each machine. If you have one on each machine then you need to make sure that when you do a deploy the cache is removed on each machine / recached.

    I'd recommend using a common fileshare for the assets rather than rsync make it easier.

  • Corey
    Avatar
    Community Member
    2 Posts

    Re: What needs to be considered when moving to load-balancing? Link to this post

    Great, thank you. Looks like the cache folder is at /tmp/silverstripe-cache is that correct? ( Source: http://www.silverstripe.org/installing-silverstripe/show/20046 )

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: What needs to be considered when moving to load-balancing? Link to this post

    Yes, though you can override the temp folder location by defining TEMP_FOLDER. It will default to /tmp/ or ./silverstripe-cache if not defined. The cache includes file paths so you may not want to share between servers if they are structured ever so differently (like a random hash folder)

    812 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.