Ignore:
Timestamp:
Aug 23, 2011, 8:38:09 PM (13 years ago)
Author:
rick
Message:
  • Caches are now fully-file based as memcached was not working well with large entries (like images).
  • OSM django proxy is way to slow, rewrite to use apache balanced proxy members.
  • Use HTTPD mod_cache to cache heavy image generation work.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/settings.py

    r9545 r9549  
    77DJANGO_BALANCERS = OSM_PROXY_BALANCERS = ['a','b','c','d','e','f']
    88OSM_PROXY_CDN_DOMAINS = [d + '.osmproxy.wirelessleiden.nl' for d in DJANGO_BALANCERS]
     9OSM_PREFIX = '/osm-tile-proxy'
    910DJANGO_CDN_DOMAINS = [d + '.maps.wirelessleiden.nl' for d in DJANGO_BALANCERS]
    1011
     
    3839        'LOCATION': '127.0.0.1:11211',
    3940        'TIMEOUT': 3600 * 24 * 7,
     41        'OPTIONS': {
     42            'MAX_ENTRIES': 100000
     43        }
     44    },
     45    'osm_proxy': {
     46        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
     47        'LOCATION': '/usr/local/var/django/cache/osm_proxy',
     48        'TIMEOUT': 3600 * 24 * 7,
     49        'OPTIONS': {
     50            'MAX_ENTRIES': 100000
     51        }
     52    },
     53    'tile_cache': {
     54        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
     55        'LOCATION': '/usr/local/var/django/cache/tile_cache',
     56        'TIMEOUT': 3600 * 24,
    4057        'OPTIONS': {
    4158            'MAX_ENTRIES': 100000
Note: See TracChangeset for help on using the changeset viewer.