[ASK] How to calculate pagespeed storage dir?

44 vues
Accéder directement au premier message non lu

Dewangga Bachrul Alam

non lue,
1 avr. 2014, 22:21:2501/04/2014
à ngx-pagesp...@googlegroups.com
Hi,

Just have question about "the right way to set storage size on pagespeed dir" based on FileCacheCleanIntervalMs & FileCacheSizeKb. If I set

FileCachepath -> 2.5G (tmpfs)
FileCacheCleanIntervalMs -> 7200000 (2 hours)
FileCacheSizeKb -> 102400

What will happen with the cpu load and with the cache?
Will the cache files automatically override till clean interval triggered?
Should I increased the cachepath size?

Otto van der Schaaf

non lue,
2 avr. 2014, 05:41:3202/04/2014
à ngx-pagesp...@googlegroups.com
What will happen with the cpu load and with the cache?
I'm not sure what you are asking, could you elaborate a little?

 Will the cache files automatically override till clean interval triggered? 
Yes.

Should I increased the cachepath size?
Assuming you mean the size indicated by FileCacheSizeKb: that depends
on the amount of data which needs to be fit. The recommendations is 
about 5 times as large as your website content.
The pagespeed console is able to track the cache miss percentage, which is
useful here as a persistent high cache miss ratio probably means your cache is too
small.

You can read all about the console and how to enable it at https://developers.google.com/speed/pagespeed/module/console

Otto

 
 


--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Visit this group at http://groups.google.com/group/ngx-pagespeed-discuss.
For more options, visit https://groups.google.com/d/optout.

Dewangga Bachrul Alam

non lue,
3 avr. 2014, 06:13:4203/04/2014
à ngx-pagesp...@googlegroups.com
Hi otto,

I'm having trouble with cpu load while the cache size directory are full, they are bloated to memory and cpu load (compress images, js, css enabled). And my websites are user generated content, the content (images) coming from the user post. Are pagespeed suitable with my needs (user generated content website)?

Note:
I put the cache path on tmpfs for performance reason, so I only set the cache dir size 2.5G (I'm quite sure my website content more than 2.5G) :D
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

Otto van der Schaaf

non lue,
3 avr. 2014, 06:56:4703/04/2014
à ngx-pagesp...@googlegroups.com
I'm having trouble with cpu load while the cache size directory are full, they are bloated to memory and cpu load (compress images, js, css enabled). And my websites are user generated content, the content (images) coming from the user post. Are pagespeed suitable with my needs (user generated content website)? 

I'd expect any cpu load caused by optimizations to settle down fairly quickly -- unless:
- your cache is not large enough - this will cause resources to be optimized over and over.
- your resource urls (images/css/js) change with a very high frequency

Running PageSpeed optimization on websites with user generated content should not pose a problem in itself.

If your cache is undersized (check the hit/miss rates) you might want to try this:
- Move the disk cache away from tmpfs and give it more disk space, to get the available space to match the 5X recommendation.
- Configure a large LRU instead. Note that the LRU memory required will be multiplied by the amount of nginx workers you are running.

To control the load caused by optimizations, either initially or because of massive user contributed content, 
you could have a look at:


and limiting the number of concurrent image optimizations:

Otto


To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message