Thanks again guys,<div>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.<br><br></div><div>Jason</div><div>
<br><div class="gmail_quote">On Wed, Mar 30, 2011 at 12:42 PM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div class="im"><br>
<br>
On 03/30/2011 01:21 PM, Jason Lee wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regarding multiple instances, I am just thinking in terms of performance<br>
and stability. If I had 2 instances of renderd and one error's for<br>
whatever reason, then at least it is not affecting the other service.<br>
</blockquote>
<br></div>
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).<br>
<br>
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.<br>
<br>
In short, I wouldn't recommend it.<br>
<br>
Bye<br>
Frederik<br>
<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br></div>