[OSM-dev] Multiple instances of Renderd?

Jason Lee jaslee.st at gmail.com
Wed Mar 30 14:12:09 BST 2011


Thanks again guys,
What you say makes sense Frederik, so the question I have to ask myself is
how many threads I should have. As I have 8 virtual processors I guess that
means 8 threads.

Jason

On Wed, Mar 30, 2011 at 12:42 PM, Frederik Ramm <frederik at remote.org> wrote:

> Hi,
>
>
> On 03/30/2011 01:21 PM, Jason Lee wrote:
>
>> Regarding multiple instances, I am just thinking in terms of performance
>> and stability. If I had 2 instances of renderd and one error's for
>> whatever reason, then at least it is not affecting the other service.
>>
>
> Having two renderd processes serving the same maps is asking for trouble
> (depending on how you balance the load, the same tile might end up being
> rendered twice and suchlike).
>
> Having two renderd processes serving different maps should be possible. You
> will have to set up different Apache vhosts, each configuring mod_tile to
> use a different Unix domain socket for talking to renderd, and you will have
> to start multiple instances of renderd, one for each socket. If you don't
> modify the source code, each renderd will use the same pidfile which means
> you will have to use non-standard means to shut them down. Also, this method
> would mean that each renderd has a queue of its own which may lead to a less
> even distribution of performance, and issues with queue length and so on if
> several of your maps are used heavily.
>
> In short, I wouldn't recommend it.
>
> Bye
> Frederik
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110330/ddc723e4/attachment.html>


More information about the dev mailing list