[pLog-svn] resserver usage
Oscar Renalias
oscar at renalias.net
Thu Sep 28 18:10:36 GMT 2006
We can also consider the discussion to replace resserver.php with
statically served files (the webserver would do all the work)
officially open.
The big picture would be:
- Files stored in the gallery/ folder with their "real" names and not
those funny-looking names we're using now.
- Albums would be real folders in disk
- Links would be like http://www.server.com/gallery/1/myalbum1/
myalbum2/file.jpg (pointing to a real file in disk)
- UI code would't need to change, hopefully, as we've encapsulated
all resource code in their own class files (God bless OOP)
On the other hand, we'd lose the following features:
- "Hidden" resources
- Currently existing URLs would not work, unless we keep
resserver.php for compatibility reasons.
- I am not sure how URLs like the one above would work with subdomains
The performance gain would probably be noticeable, even more if you
think that the gallery/ folder could be moved somewhere else and
files could be served by a dedicated server (only resources), and no
processing of a PHP script would be required.
I am not saying that this going to be done like this but I'd like to
know your views...
On 28 Sep 2006, at 18:42, Jon Daley wrote:
> Hey nifty, this works:
>
> exec("renice +10 ".getmypid());
>
> I can put this is resserver, and should be able to lower the load.
> Resources are enabled again, we will see what happens.
>
>> On Thu, 28 Sep 2006, Oscar Renalias wrote:
>>> What's your plan?
>>> I'm not sure I've got one (a plan to help you, that is)
>>> On 9/28/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
>>>> I just had to disable the resources on the blog.ch lifetype
>>>> server. They have refused/ignored our requests to upgrade to a
>>>> dedicated
>>>> server. If these resources were served statically, we would
>>>> probably be
>>>> fine - it isn't that much stuff.
>>>> There are 400 blogs and most of them don't use any
>>>> resources, but
>>>> those that do, will generally put a whole bunch of pictures in
>>>> each post,
>>>> and so if you view the main page, it gets 20 or 30 requests through
>>>> resserver.php, and that is enough on this little server (1 x
>>>> 2.4Ghz, 1GB
>>>> RAM) to cause slow downs for other users.
>>
>
> --
> Jon Daley
> http://jon.limedaley.com/
>
> How long a minute is, depends on which
> side of the bathroom door you're on.
> -- Zall's Second Law
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
More information about the pLog-svn
mailing list