Commit Graph

550 Commits

Author SHA1 Message Date
072fe78159 Don't recreate the directory every time we start. 2014-03-14 11:40:57 -04:00
e3a4f0a4cf missing comment character 2014-02-17 16:51:31 +01:00
6c2cb243e4 Merge pull request #53 from pnorman/patch-2
Update renderd.conf mapnik paths to default ubuntu paths with mapnik PPA
2013-12-23 16:23:04 -08:00
13da3afe70 render_list was not blocking on requests and would swamp renderd with requests 2013-12-24 01:03:20 +01:00
949fdc16c7 Merge pull request #60 from osm-fr/lsb
Make sure that renderd is started after postgresql in init script for debian
2013-12-16 07:17:50 -08:00
437cde6670 Make sure that renderd is started after postgresql in init script for debian
This will work even if postgresql is not installed, because dependency is a
soft one.
2013-12-09 20:35:39 +01:00
fbb8f52a55 Merge pull request #59 from osm-fr/calloc
Replace malloc+memset by calloc in render_expired.c
2013-12-09 09:53:08 -08:00
df5e6a8d77 Merge pull request #57 from stoecker/master
fix linking on 32 bit systems
2013-12-09 09:52:16 -08:00
4f531b682a Replace malloc+memset by calloc in render_expired.c
This improves startup time of render_expired, when using --max-zoom=20, as a
2GB array is initialized to 0.
2013-12-08 00:05:07 +01:00
5568a080af fix linking on 32 bit systems 2013-12-06 08:51:23 +01:00
1caf9a45b8 Merge pull request #56 from stoecker/master
Fix some gcc compile issues, so it builds for openSUSE_13.1 with newest gcc
2013-12-05 09:33:06 -08:00
66e5538dc4 fix gcc errors 2013-12-05 17:47:04 +01:00
5dffe058e6 fix gcc errors 2013-12-05 16:35:49 +01:00
e5d618459e fix gcc errors 2013-12-05 16:19:05 +01:00
c1efa2de57 Update renderd.conf mapnik paths to default ubuntu paths with mapnik PPA
These are *more* more likely to be what a user has, so less likely to have to be changed
2013-11-13 22:45:10 -08:00
681fbd4eb2 Limit sscan in URL parsing to not overflow the allocated bufferes 2013-10-23 21:03:55 -06:00
c0bc71162d Fix issues found via coverity scan 2013-10-23 20:09:56 -06:00
e2c4b62e67 Fix issues found via coverity scan 2013-10-23 20:09:27 -06:00
db982683ad Fix issues found via coverity scan 2013-10-23 20:08:33 -06:00
d17a27261c Fix some issues in the test framework found via coverity scan 2013-10-23 20:07:50 -06:00
99357a53ab Improve backwards and forward compatibility for renderd protocol v3/v2 2013-10-20 16:03:32 -06:00
1585e50d7a Fix compile on older mapnik version. This should fix #49 2013-10-18 09:16:56 -06:00
c4aabc5701 Enable mapnik style parameterization
Provide a parameterization function for internationalizing the names
2013-10-13 23:26:31 -06:00
e70bfafa20 Extend the storage backends to support options 2013-10-13 23:25:14 -06:00
5941e23ced Support options for tile layers in mod_tile.
If a tile layer has options enabled, the URL changes to

http://localhost/style/options/z/x/y.ext
2013-10-13 23:23:10 -06:00
fdc317a8f3 Update mod_tile to renderd protocol to version 3.
Include an "options" string and a "mimetype" string.
2013-10-13 23:22:08 -06:00
7ce9b5099b Merge pull request #48 from mstock/fixes
Don't try to install mod_tile.so using debian/libapache2-mod-tile.install
2013-10-12 17:35:29 -07:00
7ae98d9517 Don't try to install mod_tile.so using debian/libapache2-mod-tile.install
This was not working anymore since 273973e which moved the sources to a src/
directory in order to clean up the top level directory, which broke the package
build. However, debian/rules already contains calls to 'make' which install
mod_tile.so to the correct location, so it's not even necessary to install it
using debian/libapache2-mod-tile.install.
2013-10-05 15:21:50 +02:00
bd9739582a Merge pull request #47 from woodpeck/master
add capability to export specific bbox or zoom
2013-10-02 09:03:15 -07:00
ac30cf123e add capability to export specific bbox or zoom 2013-10-02 17:20:36 +02:00
d86347b6e0 Merge pull request #45 from tomhughes/munin
Fix munin plugin bugs
2013-08-29 14:21:55 -07:00
9dd09e5ff8 Correct derivation expression for renderd_zoom_time munin graph 2013-08-29 22:00:01 +01:00
d6cbcbba0c Correct axis label for renderd_queue_time munin graph 2013-08-29 22:00:00 +01:00
dc8d5e06d4 Set min value of 0 for munin graph render time spent by 2013-08-29 00:35:39 -06:00
3b2fcd5ba2 Fix sending back NotDone from renderd immediately if
request doesn't fit into a rendering queue

RenderPrio, Render and RenderLow queues each only have a size of 32 entries. If these are full,
then requests overflow into the dirty queue. If this happens, renderd should send the NotDone
back immediately so that mod_tile doesn't wait for potentially a long time.

This however only worked for Render requests, but not RenderPrio or RenderLow. This patch fixes this.
2013-08-29 00:34:56 -06:00
b2d4993807 Use Stack in the munin graph of queue_time 2013-08-29 00:34:06 -06:00
c483c07338 Try and be more helpful with error messages if an exception is thrown while saving.
Also don't exit renderd entirely if an exception is thrown during saving.
2013-08-17 14:41:58 -06:00
b94be88ebb Add a OSGB36 projection to renderd
Add some tests for tile number to projected coordinate bounds
2013-08-16 02:36:27 -06:00
0ce9f43437 Allow to configure different aspect ratios of tiles.
For example for Plate Carree which has a 2x1 ratio
or OSGB which can use a 1x2 ratio
2013-08-16 02:35:31 -06:00
01b2c52425 Merge pull request #40 from tomhughes/cors
Improve CORS support
2013-08-13 09:47:33 -07:00
b5bd1cd686 Yet another attempt to fix the mapnik-config issue (probably not the last...) 2013-08-13 09:59:18 -06:00
4c2faccb12 Improve CORS support
* Only treat OPTIONS as preflight if Access-Control-Request-Method  is set
* Only send Access-Control-Allow-Headers for preflight requests
* Don't send a bogus Access-Control-Allow-Headers value
2013-08-13 09:33:04 +01:00
c19b387af8 Update the readme.txt somewhat by deleting old and outdated content
This likely needs more improvements to make the readme actually useful.
But for now this mostly removes parts of the readme that were totally
out of date and confusing.
2013-08-10 23:21:58 -06:00
dd57fa7ea3 significantly increase the load thresholds after which mod_tile reduces rendering
sets the new MaxLoadMissing to 50 and MaxLoadOld to 16.

With the prevalence of multi core servers today, the previous
default thresholds of 10 and 5 were becoming to lower than the average
CPU count. Furthermore, load is not an ideal measure, as it includes I/O
load and much of the I/O load might well come from serving rather than
rendering. Especially if the database is on a separate SSD. Lastly, using
the thresholds in mod_tile isn't super helpful, as due to hysteresis of
 rendering queues stop submitting tiles at a time of high load is not
particularly helpful without stopping rendering from the queue.
2013-08-10 23:09:54 -06:00
1b4c56d8ed Add another priority level (RenderLow) to accommodate rerenders after style changes
In addition to Render and RenderPrio, add another priority level of RenderLow.

The idea is that if you rerender all tiles by touching planet-import-complete and
thereby likely overloading the server's rendering capacity you want to prioritize rerendering
of tiles that were explicitly marked dirty due to data changes over rerendering
due to planet-import-complete updates.

This is achieved by splitting rendering requests by if they are "old", or "very old".
As the tile expiry sets back the modification date many years, mod_tile splits
rendering requests based on how old the tiles are. If they are no more than a
certain threshold (currently set to one year) old, they are rendered with lower priority.
2013-08-10 23:05:28 -06:00
6f85a79375 Fix typo in install path of makefile 2013-08-09 20:29:26 -06:00
2fc098dfd8 Remove outdated files that haven't been touched in 5 years. 2013-08-09 19:35:37 -06:00
273973ed03 Clean up mod_tile directory by moving source files into a common src/ sub directory
also move includes into includes/
2013-08-09 18:46:10 -06:00
a975db9074 Another attempt at including mapnik include directories from mapnik-config
use mapnik-config --includes rather than --cflags (as was attempted in 23be036).

This should fix #35
2013-08-09 18:44:06 -06:00
f10e357f55 Fix #38 clock_gettime needs -lrt on some systems 2013-08-09 18:42:37 -06:00