Apache mod_proxy + mod_cache (Socache und Festplatte)

Apache mod_proxy + mod_cache (Socache und Festplatte)

Ich habe hier einen Apache Mod_Proxy-Lastausgleichscluster mit drei Knoten. Jetzt möchte ich Mod_Cache aktivieren, um mehr Last vom Backend zum Frontend zu übertragen.

Das ist also meine Konfiguration für den Cache:

<IfModule mod_cache.c>
    <IfModule mod_disk_cache.c>
            CacheDefaultExpire 3600
            CacheEnable disk https://
            CacheEnable disk /
            CacheRoot "/mnt/ram/"
            CacheDirLevels 2
            CacheDirLength 1
            CacheMaxFileSize 1000000
            CacheMinFileSize 1
            CacheIgnoreCacheControl On
            CacheIgnoreNoLastMod On
            CacheIgnoreQueryString Off
            CacheIgnoreHeaders None
            CacheLastModifiedFactor 0.1
            CacheDefaultExpire 3600
            CacheMaxExpire 86400
            CacheStoreNoStore On
            CacheStorePrivate On
    </IfModule>

geladene Apache-Module:

Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cache_module (shared)
 cache_disk_module (shared)
 cache_socache_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 fcgid_module (shared)
 filter_module (shared)
 headers_module (shared)
 lbmethod_bybusyness_module (shared)
 lbmethod_byrequests_module (shared)
 lbmethod_bytraffic_module (shared)
 mime_module (shared)
 mpm_event_module (shared)
 negotiation_module (shared)
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_http_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 slotmem_shm_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 status_module (shared)
 suexec_module (shared)

Das Problem besteht also darin, dass jede Anfrage an die Website auch an das Backend geht und daher keine Leistungsoptimierung erfolgt.

Gibt es eine Möglichkeit, dies mit mod_cache zu handhaben?

Apache-Version: 2.4.10 (Debian8) Backend: Typo3-Website.

verwandte Informationen