Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Anyone Using MediaTemple (GS)


Go to End


8 Posts   6461 Views

Avatar
morethanfire

Community Member, 13 Posts

29 June 2008 at 8:47am

Hi,

I am just seeing if anyone is using MediaTemple's GridService and it successfully is running ok without any really bad lag times. If you are can you explain on how you went about doing this. I have a very basic site that has silverstripe in the backend, but it's just awfully slow when loading. i have noticed though once you go to all pages using the navigation you can get to each page fast without the lag, but after a while it lags again. Let me know if you are. I am sort of considering Expression Engine if I can't get this issue fixed.

Cameron

Avatar
Ingo

Forum Moderator, 801 Posts

3 July 2008 at 11:10pm

matt might have more info on this (he deployed a site for a large client using GS), but from what i recall: you have to make sure that all grid-instances use the same cache directory. otherwise a random page request on ~100 different instances is very likely to rebuild the template/class cache automatically (it expires after an hour, or after file modification).

Avatar
Matt

Community Member, 86 Posts

5 July 2008 at 12:42am

Edited: 05/07/2008 12:42am

Hi Cameron,

I made this post on the Wiki which details what I had to do to get pages rendering in acceptable times.

It's also worth noting that the (gs) Grid Service offering is just a collection of servers serving your request all from one location, and so if you live outside of the States, the site can often load quite slowly still.

I had this issue with www.demconvention.com - even now it sometimes takes ~10 seconds to load for me in New Zealand, but out client in the States sees it load with ~2-3 seconds, including all images and Javascript etc.

Avatar
morethanfire

Community Member, 13 Posts

9 July 2008 at 3:30am

Hi Matt, thanks for the reply. I have tried and successfully set up the cache folder. I have only one site using silverstripe currently right now and it is using the "domains/domain-name.com/html/silverstripe-cache" folder for the cache: there are four files in the folder currently right now that were generated automagically.

Was there anything else you did or you can suggest? Maybe I did something wrong? I live in the US, California, which I think is where MediaTemple is located.

Avatar
Matt

Community Member, 86 Posts

9 July 2008 at 8:23pm

Hi Cameron,

The reason it usually takes so long to load for us in NZ is because of the routing of traffic between their servers and us, so you should be fine.

I'm not certain of what the problem could be if it is using silverstripe-cache as the cache directory, because that should be shared across all the servers. One thing you could try is deleting all the files out of the directory and see if it re-creates them when you next load a page on the site? And if it is creating them properly, can the web server access the files? I'm not sure how much you know about the Unix permission system, but if the web server can't access them then it will try and re-cache the files all the time.

Matt.

Avatar
morethanfire

Community Member, 13 Posts

10 July 2008 at 3:32am

Matt,

I have deleted the files and they populated back into the folder once I visited the homepage. It took a while to load after deleting the cache still.

How do you give permissions so that the server can access the files in that folder? The only thing I know how to do is set the permissions to 755, 777, and so on (owner, group, others).

Cameron

Avatar
vcmusic42

Community Member, 22 Posts

10 July 2008 at 5:54am

I'm not on MediaTemple, but you are not alone: http://www.silverstripe.com/site-builders-forum/flat/43294#post43294

I'm on MediaLayer which has been lightning fast for other projects, and I've had a consistent lag when first loading SS pages, and sometimes the admin. I love SS and it seems like a small point, but 1-2 seconds is significant for picky clients and impatient visitors.

I just tried to load the newest site in the Showcase - a blog with *no content,* and it took 6 seconds. And no, I'm not on dialup.

Avatar
morethanfire

Community Member, 13 Posts

10 July 2008 at 11:22am

Edited: 10/07/2008 11:23am

Yeah the lag with SS is pretty crappy. I had issues also on DreamHost with SS, but recently switched to MediaTemple about a couple months ago (for different reasons) and have not been able to figure out the problem with that initial load time. Hopefully Matt can let me know on his secrets on what he did for the Democrat site.

Cameron