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-583077360 1. I think that's right: 1MB. That was based on limitations in older memcached and you can configure that higher or off I think. No limit on redis. 2. Yes exactly, though you can place that file elsewhere; see https://www.modpagespeed.com/doc/system#purge_options for detail 3. LoadFromFile is more awesome than that :) It checks on every access if the timestamp is updated. Definitely only use LoadFromFile ona local hard disk or SSD, not on a network mount, as the stat() will kill performance. On Thu, Feb 6, 2020 at 2:39 PM salvoaranzulla <[email protected]> wrote: > Thanks for your clarification. > > 1) The standard limit for memcached object is 1 Mb, right? > > I need to use the large option only if I have images with size > 1 mb, > right? > > 2) >> 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. > > Are these metadata saved in var/cache/pagespeed, right? > > 3) If I use LoadfromFile option, does mod_pagespeed check if the file is > updated every 5 minutes, right? > > Does pagespeed delete the cached (optimized) file and regenerate it again > every 5 minutes? Or does pagespeed just check if the file is updated? > > Thanks, > Salvatore > > Il giorno gio 6 feb 2020 alle 20:16 Joshua Marantz < > [email protected]> > ha scritto: > > > 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 <[email protected]> wrote: > > > > > Hi > > > > > > > > > - Do I need to use a shared folder (maybe in a NAS) in > > > ModPagespeedFileCachePath instead of "//"? > > > > > > 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 > > > > > > . > > > > > > > — > > You are receiving this because you authored the thread. > > Reply to this email directly, view it on GitHub > > < > https://github.com/apache/incubator-pagespeed-ngx/issues/1679?email_source=notifications&email_token=ABNVCX7LKTHDPJ4YICX4BOLRBROYVA5CNFSM4KQ4JUGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELAN3TY#issuecomment-583065039 > >, > > or unsubscribe > > < > https://github.com/notifications/unsubscribe-auth/ABNVCX3SPC77UHBMUN325Z3RBROYVANCNFSM4KQ4JUGA > > > > . > > > > — > 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=AAO2IPNTM4T5GFADJ3ZG4TTRBRRNJA5CNFSM4KQ4JUGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELAQHOI#issuecomment-583074745>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAO2IPO5T44LGRIOE4KHHDLRBRRNJANCNFSM4KQ4JUGA> > . >
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
