Editing Varnish

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 42: Line 42:
 
==Varnish Storage Backends==
 
==Varnish Storage Backends==
  
Varnish has 3 storage options for the '''[http://wiki.mikejung.biz/Category:Caching cache]''' file, malloc and persistent storage. The most common type is malloc. Varnish mentions that the persistent storage option is still experimental, so there are really only 2 options to use in a production environment.
+
Varnish has 3 storage options for the '''[[Category:Caching|cache]]''' file, malloc and persistent storage. The most common type is malloc. Varnish mentions that the persistent storage option is still experimental, so there are really only 2 options to use in a production environment.
  
 
Regardless of whether you use the file or malloc method you should keep in mind that there is an approximate overhead of 1KB of memory per object stored in the Varnish cache. If you had 10,000 objects in the Varnish cache, each with 1KB overhead, there would be a total of 10MB overhead. This means that even if you set the cache size to 100MB, Varnish will go over this limit if the cache ever gets completely full. This shouldn't be a huge issue in most cases, but keep this in mind if you notice a Varnish server swapping a lot.  
 
Regardless of whether you use the file or malloc method you should keep in mind that there is an approximate overhead of 1KB of memory per object stored in the Varnish cache. If you had 10,000 objects in the Varnish cache, each with 1KB overhead, there would be a total of 10MB overhead. This means that even if you set the cache size to 100MB, Varnish will go over this limit if the cache ever gets completely full. This shouldn't be a huge issue in most cases, but keep this in mind if you notice a Varnish server swapping a lot.  

Please note that all contributions to wiki.mikejung.biz may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see wiki.mikejung.biz:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)