Advertisements
+
Katadm  September 6, 2010 at 2:53pm
puuurrr ~
Post Count: 2,912
http://route50.net
Well, yes, it's not a randomly generated ad. People have to bid on it for it to change.

We have tried improving the code, but to be honest, there's not much that can be done to reduce the load. In all honesty, it's just that we've outgrown shared hosting.

Icon by Aodhan
memcached
I don't know if the server allows that type of modification...

(also try xdebug to profile the server,
and/or also set up a "development" server with a copy of Route 50 with arbitrary large database, to stress-test the code)
A development server will also avoid "suprised by sudden, unexpected bugs" things
Site | Blog | Twitter
蜃気楼
Ubuntu | Google Chrome | F#
Dreamhost probably doesn't, thanks to procwatch, but if they're going for a new server then memcached is a must, otherwise they will keep exhausting resources.
+
Electronadm  September 7, 2010 at 11:37am
THANKS NAVARR
Post Count: 403
No hosting company will let you install memcached, nor will they have it running on public hosts.

As Kat said, the next host will probably be a private server.
lanturn cloyster camerupt shuckle girafarig mareep tendulkar skarmory groudon electrode


Odd one out! :D
It turns out a lot of my favourite pokemon are water types, which I never knew.
nope i'm afraid that's INCORRECT electronic

webfaction has memcached and you can run a your own process under your user and assigned port, granted it does not exceed the maximum allocated memory usage for your account.
+
Electronadm  September 8, 2010 at 2:50pm
THANKS NAVARR
Post Count: 403
That's honestly fascinating, they really do have it installed...

Memcached has no authentication in so far as I know, so I wonder how they manage to keep users from looking into each other's caches...(?)

It makes little sense for shared hosting anyway.
lanturn cloyster camerupt shuckle girafarig mareep tendulkar skarmory groudon electrode


Odd one out! :D
It turns out a lot of my favourite pokemon are water types, which I never knew.
yeah, it wouldn't make much sense for shared hosting since to make really good use of memcached you would need at least 100MB RAM pre-allocated, although that number's entirely dependent on the size of your site, which is why bigger implementations are suited for more flexible hosting plans, etc. - it manages it fine however, so <3.

and also, thats a good point although memcached supports unix sockets since 1.2.4 accompanied by a `-s` arg to restrict a daemon to be accessed only by the current local user and not be exposed via networking etc. so that problem's p. much solved.
What about caching through self-modifying code? Like caching through a large amount of auto-generated PHP files like this:


code:
<?php return array(...) ?>

This lets the data to be drawn only when wanted, but that sacrifices performance and CPU.
Site | Blog | Twitter
蜃気楼
Ubuntu | Google Chrome | F#
which defeats the entire purpose of caching.
Respond
Hey! You must be logged in to post on the forum. Please login or sign up.