jmarantz commented on issue #1679: pagespeed with load balancer (nginx) and 
front-end (apache)
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1679#issuecomment-583065039
 
 
   One clarification: even if you use a shared cache like memcached or redis,
   you need to purge the cache on each server. This is because purging the
   cache doesn't actually remove the item from the cache; it adds metadata
   local to the server about what's been purged at what date.
   
   This should be easy to script by sending PURGE requests to each server,
   e.g. via curl.
   
   
   On Thu, Feb 6, 2020 at 2:12 PM Lofesa <notificati...@github.com> wrote:
   
   > Hi
   >
   >
   >    - Do I need to use a shared folder (maybe in a NAS) in
   >    ModPagespeedFileCachePath instead of "/var/cache/pagespeed/"?
   >
   > I think is a bad idea. The time to load resources from a shared disk
   > mayincrease the time to serve the resource
   >
   >
   >    - Do I need to purge cache in each 4 front-end?
   >    If you use 4 disk cache, yes you need to purge each.
   >    But you can manage to store all the optimized resources in memcached,
   >    in latest versions it can stored big object (version 1.4.2 or later) 
with
   >    the -I option, or change memcached by redis that don´t have object size
   >    limits.
   >    To do so, you need to no configure any cache, only the file cache
   >    cause if not configured pagespeed don´t workbut not the 
ModPagespeedCreateSharedMemoryMetadataCache
   >    or and disable the ModPagespeedDefaultSharedMemoryCacheKB setting
   >    their size to 0. And maybe the same ModPagespeedCacheFragment
   >    some_token in all 4 servers.
   >
   > In ths way all metadata and optimized resources are stored in memcached or
   > redis
   > I have not tried this with multile servers, but I have 1 server and can´t
   > use the disk.
   >
   > —
   > You are receiving this because you commented.
   > Reply to this email directly, view it on GitHub
   > 
<https://github.com/apache/incubator-pagespeed-ngx/issues/1679?email_source=notifications&email_token=AAO2IPPVXPRTJKD2GFL4SSLRBROJ7A5CNFSM4KQ4JUGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELANPLA#issuecomment-583063468>,
   > or unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/AAO2IPJNMLJWKXXA7UDXMULRBROJ7ANCNFSM4KQ4JUGA>
   > .
   >
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to