Hi. I have a working setup with mod_tile + tirex/wms-backend + my_own_slow_wms_renderer Sometimes, however, there are black/yellow checkered tiles like this one: http://drangmeister.net/tmp/44568.png The according metatile looks like this: -rw-r--r-- 1 tirex tirex 9108 2010-07-07 23:21 8.meta i.e. is very short. About 70% of the metatiles are like this. This is although my renderer produced a valid image (seen in the rendering temp dir). So I presume this may be due to a timeout somewhere. I already set the following timeouts: /etc/tirex/tirex.conf: # If the rendering of a metatile takes more than this many minutes the master # gives up on it and removes the job from the list of currently rendering tiles. master_rendering_timeout=60 (one hour) backend_manager_alive_timeout=57 /etc/tirex/renderer/wms/myrenderer.conf - there is no timeout here. Correct? /etc/apache2/conf.d/mod_tile.conf # Timeout before giving up for a tile to be rendered ModTileRequestTimeout 300 [<- pretty sure this means minutes, please confirm] # Timeout before giving up for a tile to be rendered that is otherwise missing ModTileMissingRequestTimeout 100 # If tile is out of date, don't re-render it if past this load threshold (users gets old tile) ModTileMaxLoadOld 2 # If tile is missing, don't render it if past this load threshold (user gets 404 error) ModTileMaxLoadMissing 5 No other timeout that I can think of. My metatiles take about 3 to 5 minutes to generate. Question: what part of my chain renders that checkered metatiles and why? Thanks, Kay
Hi. Just an additional information
The according metatile looks like this: -rw-r--r-- 1 tirex tirex 9108 2010-07-07 23:21 8.meta
i.e. is very short. About 70% of the metatiles are like this.
I identified a metatile that fails reproducibly. The rendered image looks ok on the filesystem (takes about 180 secs to render). /var/log/tirex/jobs.log reports success as well: 2010-07-08T11:31:18 id=1278581298_166981800 map=osray x=69152 y=44568 z=17 prio=1 request_time=1278581298 expire= sources=M render_time=180337 success=1 Where to look next? Regards, Kay
The black/yellow tiles are error tiles created by the backend if rendering fails for some reason. In this case the WMS backend. I guess its because the WMS request timeouted in the HTTP library. There is no timeout code in Tirex at that point, so I guess it must be the library. Jochen On Thu, Jul 08, 2010 at 10:33:41AM +0200, Kay Drangmeister wrote:
Date: Thu, 08 Jul 2010 10:33:41 +0200 From: Kay Drangmeister <kay@drangmeister.net> To: "devserver@lists.openstreetmap.de" <devserver@lists.openstreetmap.de> Subject: [OSM-Devserver] mod_tile/Tirex sometimes rendering checkered tiles
Hi.
I have a working setup with mod_tile + tirex/wms-backend + my_own_slow_wms_renderer
Sometimes, however, there are black/yellow checkered tiles like this one: http://drangmeister.net/tmp/44568.png
The according metatile looks like this: -rw-r--r-- 1 tirex tirex 9108 2010-07-07 23:21 8.meta
i.e. is very short. About 70% of the metatiles are like this. This is although my renderer produced a valid image (seen in the rendering temp dir). So I presume this may be due to a timeout somewhere. I already set the following timeouts:
/etc/tirex/tirex.conf:
# If the rendering of a metatile takes more than this many minutes the master # gives up on it and removes the job from the list of currently rendering tiles. master_rendering_timeout=60 (one hour) backend_manager_alive_timeout=57
/etc/tirex/renderer/wms/myrenderer.conf
- there is no timeout here. Correct?
/etc/apache2/conf.d/mod_tile.conf
# Timeout before giving up for a tile to be rendered ModTileRequestTimeout 300 [<- pretty sure this means minutes, please confirm] # Timeout before giving up for a tile to be rendered that is otherwise missing ModTileMissingRequestTimeout 100 # If tile is out of date, don't re-render it if past this load threshold (users gets old tile) ModTileMaxLoadOld 2 # If tile is missing, don't render it if past this load threshold (user gets 404 error) ModTileMaxLoadMissing 5
No other timeout that I can think of. My metatiles take about 3 to 5 minutes to generate.
Question: what part of my chain renders that checkered metatiles and why?
Thanks, Kay _______________________________________________ Devserver mailing list Devserver@lists.openstreetmap.de http://lists.openstreetmap.de/mailman/listinfo/devserver
-- Jochen Topf jochen@remote.org http://www.remote.org/jochen/ +49-721-388298
Hi, Am 08.07.2010, 12:40 Uhr, schrieb Jochen Topf <jochen@remote.org>:
I guess its because the WMS request timeouted in the HTTP library. There is no timeout code in Tirex at that point, so I guess it must be the library.
I fixed it by inserting a "timeout()" definition just before the WMS request is sent out: /etc/tirex# diff -c -C 2 /home/kayd/Install/tirex/lib/Tirex/Backend/WMS.pm /usr/share/perl5/Tirex/Backend/WMS.pm *** /home/kayd/Install/tirex/lib/Tirex/Backend/WMS.pm 2010-07-02 18:39:56.000000000 +0200 --- /usr/share/perl5/Tirex/Backend/WMS.pm 2010-07-08 13:55:48.000000000 +0200 *************** *** 118,123 **** --- 118,125 ---- $self->set_status("wms request"); + $self->{'ua'}->timeout(1200); + my $response = $self->{'ua'}->request(HTTP::Request->new(GET => $request)); if ($response->is_success() && $response->header('Content-type') eq 'image/png') So I hardcoded the timeout to 20 mins, but this really should come from some configuration file. Unfortunately, pearl escapes me completely, so please anyone gifted fixeth it. How can I limit the number of concurrent WMS requests? As displayed by tirex-status: Currently rendering: (num=1) Map X Y Z Prio Age osray 69168 44528 17 1 90 the "num" value. I managed to limit that only by limiting the "load", which seems wrong. Regards, Kay
On Thu, Jul 08, 2010 at 03:14:47PM +0200, Kay Drangmeister wrote:
Am 08.07.2010, 12:40 Uhr, schrieb Jochen Topf <jochen@remote.org>:
I guess its because the WMS request timeouted in the HTTP library. There is no timeout code in Tirex at that point, so I guess it must be the library.
I fixed it by inserting a "timeout()" definition just before the WMS request is sent out:
/etc/tirex# diff -c -C 2 /home/kayd/Install/tirex/lib/Tirex/Backend/WMS.pm /usr/share/perl5/Tirex/Backend/WMS.pm *** /home/kayd/Install/tirex/lib/Tirex/Backend/WMS.pm 2010-07-02 18:39:56.000000000 +0200 --- /usr/share/perl5/Tirex/Backend/WMS.pm 2010-07-08 13:55:48.000000000 +0200 *************** *** 118,123 **** --- 118,125 ----
$self->set_status("wms request");
+ $self->{'ua'}->timeout(1200); + my $response = $self->{'ua'}->request(HTTP::Request->new(GET => $request));
if ($response->is_success() && $response->header('Content-type') eq 'image/png')
So I hardcoded the timeout to 20 mins, but this really should come from some configuration file. Unfortunately, pearl escapes me completely, so please anyone gifted fixeth it.
I have now added code to the WMS backend so that it takes the timeout from the backend_manager_alive_timeout setting in the config file (minus 10s so that it hits before the backend_manager kills the process).
How can I limit the number of concurrent WMS requests? As displayed by tirex-status:
Currently rendering: (num=1) Map X Y Z Prio Age osray 69168 44528 17 1 90
the "num" value. I managed to limit that only by limiting the "load", which seems wrong.
There are two settings for this: In /etc/tirex/renderer/wms.conf you can set "procs" which is the number of WMS backend processes that will be started. And in /etc/tirex/tirex.conf you can set with the "maxproc" parameter of the "bucket" config option how many of those backend processes will be used for requests of different priority. Jochen -- Jochen Topf jochen@remote.org http://www.remote.org/jochen/ +49-721-388298
Hi Jochen Topf schrieb:
I have now added code to the WMS backend so that it takes the timeout from the backend_manager_alive_timeout setting in the config file (minus 10s so that it hits before the backend_manager kills the process).
Thanks a lot! I svn up'ed, built, and did a "sudo make install", and it wrote template files over my existing config files in /etc/tirex. Is that a bug or did I do something wrong? Other than that, I can confirm it working (my tiles take upto 2 hrs to render :-P ) Kind regards, Kay
On Sat, Jul 17, 2010 at 04:14:14PM +0200, Kay Drangmeister wrote:
Jochen Topf schrieb:
I have now added code to the WMS backend so that it takes the timeout from the backend_manager_alive_timeout setting in the config file (minus 10s so that it hits before the backend_manager kills the process).
Thanks a lot! I svn up'ed, built, and did a "sudo make install", and it wrote template files over my existing config files in /etc/tirex. Is that a bug or did I do something wrong?
Thats normal. Make install doesn't know about existing files. If you create the Debian packages and install them properly, the config-files are not overwritten. Jochen -- Jochen Topf jochen@remote.org http://www.remote.org/jochen/ +49-721-388298
Am 08.07.2010 10:33, schrieb Kay Drangmeister:
Sometimes, however, there are black/yellow checkered tiles like this one: http://drangmeister.net/tmp/44568.png
The according metatile looks like this: -rw-r--r-- 1 tirex tirex 9108 2010-07-07 23:21 8.meta May I ask how you got this? I'm sometimes wondering how to find the meta-tile to a given png. I'd love to have a /meta request that gives me this kind of information.
Peter
participants (3)
-
Jochen Topf -
Kay Drangmeister -
Peter Körner