Configuring Disk Quota
Whether you prefer seeding your layers, as we will do moreover in this chapter, or just setting the cache on and waiting for your client's requests to populate it, the tiles can grow to a huge number of files and sizes. The folder configured to contain them may fill, and you may run the filesystem on a shortage of resources. By default, the integrated GeoWebCache comes with unlimited disk usage for cached tiles. It is a good practice to configure it to a known value and to set a policy for tiles recycling. This can be done as follows:
- From the GeoServer administration interface, go to
Disk Quota
under theTile caching
section, as shown here:
- As you can see, there is an upper limit for cache size--
500 MiB
. You might wonder what happens when your cache size hits the limit. Set the limit at 5 megabytes and click on theSubmit
button.
- Now go to the
Tile Layers
form and open the cache preview formyLayerGroup
, which you created in Chapter 6, Styling Your Layers. Browse the...