Commit Graph

15 Commits

Author SHA1 Message Date
b008759183 [render_expired] Apply @29406 render_list patches to render_expired 2013-03-28 00:04:29 +00:00
e8001c859f Add support for pluggable storage backends to mod_tile / renderd
So far, (meta)tiles could only be stored and retrieved from a locally mounted posix filesystem.  Although, the posix
filesystem API is it self a plugable storage layer into which one can mount many different filsystems, from temporary
filesystems to network filesystems, as mod_tile installations scale up to multi-server environments this might not be sufficient and one
may want to use other storage layers.

This patch therefore abstracts all storage calls out into a separate API that can be implemented by various storage backends to fit the needs of different
installations. 

Three storage backends are included in this commit:

- file backend: This is the equivalent of what existed before in mod_tile / renderd. This uses a posix filesystem to store (meta)tiles
- memcached: This stores tiles in a memcached store
- rados: This stores tiles in a rados / ceph cluster

The memcached and rados backends should currently still be considered as experimental

There are also other refactoring and cleanups in this commit
2013-03-23 22:19:30 +00:00
f7582abb14 fix issues found by coverity static analysis in render_expired.c 2013-03-02 16:48:15 +00:00
66a692f44f [render_expired] Set back date by exactly 20 years for touch
based expiry

With a set back of 20 years rather than to a specific date,
the actual render time gets preserved and can be checked in
e.g. mod_tiles tile status
2013-01-14 17:41:23 +00:00
9f284bfece [mod_tile] bzero is defined in <strings.h> but was not included
On Linux strings.h must have been included through some other header, 
but on solaris it isn't. So it needs to explicitly be included.
2012-09-02 01:15:26 +00:00
6731509c8d finally remove hardcoded tile path and replace it by config option 2012-07-26 21:37:50 +00:00
44487172ec Quieten down output from render_expired 2011-10-15 02:57:21 +00:00
33283a6c97 make it use MAX_ZOOM define. Use long long to prevent overflow. Tested with z19 2011-01-16 23:24:56 +00:00
57f4d0f7d6 catch error in case changing time stamp fails 2011-01-16 20:36:30 +00:00
290dec8078 Fix bug introduced in r21645, which caused render_expire to never actually rerender anything. Noted on the dev ML. 2010-10-20 23:12:19 +00:00
8ad0a68cdb Do not spawn render threads when we're not actually going to rerender anything. 2010-06-11 09:59:52 +00:00
442cbf9805 Typos 2010-06-08 20:19:03 +00:00
b75db46f56 More optimized render_expired, with stats. Completely forgot to commit this months ago. 2010-06-08 20:16:02 +00:00
40cb10f28c Add a "touch-from" option to render_expired
In this mode it changes the timestamp of a metatile into the past to mark it as dirty
2010-02-12 23:51:51 +00:00
74e9527366 +render_expired... ANOTHER way to handle tile expiry. 2009-12-15 22:37:42 +00:00