Skip to content
Snippets Groups Projects
Commit 511cf5e6 authored by David Hoese's avatar David Hoese
Browse files

Merge branch 'bugfix-mapcache-locking' into 'master'

Fix mapcache config having conflicting options for blank detection

See merge request cspp_geo/cspp-geo-web-viewer!25
parents e7e72647 ebe835f7
Branches
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ RUN mkdir -p /build_deps && cd /build_deps \ ...@@ -57,7 +57,7 @@ RUN mkdir -p /build_deps && cd /build_deps \
&& git checkout c467a3bb444cab69c52bc78b91b9bae3a9415f2f \ && git checkout c467a3bb444cab69c52bc78b91b9bae3a9415f2f \
&& mkdir -p build && cd build \ && mkdir -p build && cd build \
&& cmake .. \ && cmake .. \
# -DWITH_MEMCACHE=1 -DCMAKE_BUILD_TYPE="Debug" \ # && cmake -DCMAKE_BUILD_TYPE="Debug" .. \
&& make -j$(nproc) \ && make -j$(nproc) \
&& make install && make install
......
...@@ -25,14 +25,6 @@ ...@@ -25,14 +25,6 @@
<cache name="disk" type="disk"> <cache name="disk" type="disk">
<base>{{ cache_disk_base }}</base> <base>{{ cache_disk_base }}</base>
<symlink_blank/> <symlink_blank/>
<!-- detect_blank
Similar to symlink_blank, except completely skip writing a file
if a blank, fully transparent tile is detected.
Note: This setting should only be used when using the seeder. If used
on demand, mapcache will will query the WMS source on each subsequent
tile request.
-->
<detect_blank/>
</cache> </cache>
...@@ -339,7 +331,7 @@ ...@@ -339,7 +331,7 @@
<locker type="disk"> <!-- this is the default --> <locker type="disk"> <!-- this is the default -->
<directory>/tmp</directory> <directory>{{ lock_disk_base }}</directory>
<retry>0.01</retry> <!-- check back every .01 seconds --> <retry>0.01</retry> <!-- check back every .01 seconds -->
</locker> </locker>
<threaded_fetching>true</threaded_fetching> <threaded_fetching>true</threaded_fetching>
......
...@@ -28,6 +28,7 @@ basemap_autoexpire = os.getenv("BASEMAP_AUTOEXPIRE", "0") ...@@ -28,6 +28,7 @@ basemap_autoexpire = os.getenv("BASEMAP_AUTOEXPIRE", "0")
wms_host = os.environ['WMS_HOST'] wms_host = os.environ['WMS_HOST']
wms_port = os.environ['WMS_PORT'] wms_port = os.environ['WMS_PORT']
cache_disk_base = os.environ['CACHE_DISK_BASE'] cache_disk_base = os.environ['CACHE_DISK_BASE']
lock_disk_base = os.getenv('LOCK_DISK_BASE', '/tmp')
PLATFORM_LONG_NAMES = { PLATFORM_LONG_NAMES = {
...@@ -66,6 +67,7 @@ def main(): ...@@ -66,6 +67,7 @@ def main():
'wms_host': wms_host, 'wms_host': wms_host,
'wms_port': wms_port, 'wms_port': wms_port,
'cache_disk_base': cache_disk_base, 'cache_disk_base': cache_disk_base,
'lock_disk_base': lock_disk_base,
'PLATFORM_LONG_NAMES': PLATFORM_LONG_NAMES, 'PLATFORM_LONG_NAMES': PLATFORM_LONG_NAMES,
'PLATFORM_EPSGS': PLATFORM_EPSGS, 'PLATFORM_EPSGS': PLATFORM_EPSGS,
'PLATFORM_POS_NAMES': PLATFORM_POS_NAMES, 'PLATFORM_POS_NAMES': PLATFORM_POS_NAMES,
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
# It is also possible to configure the loglevel for particular # It is also possible to configure the loglevel for particular
# modules, e.g. # modules, e.g.
#LogLevel info ssl:warn #LogLevel info ssl:warn
#LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined CustomLog ${APACHE_LOG_DIR}/access.log combined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment