Skip to content

Commit

Permalink
Store GeoWebCache disk quota in PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Sep 15, 2022
1 parent 985f06d commit 73adae9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
logs/geoserver*.log
temp
gwc
15 changes: 15 additions & 0 deletions gwc/geowebcache-diskquota-jdbc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<gwcJdbcConfiguration>
<dialect>PostgreSQL</dialect>
<connectionPool>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://database/georchestra?currentSchema=geowebcache</url>
<username>georchestra</username>
<password>georchestra</password>
<minConnections>1</minConnections>
<maxConnections>10</maxConnections>
<fetchSize>1000</fetchSize>
<connectionTimeout>50</connectionTimeout>
<validationQuery>select 1</validationQuery>
<maxOpenPreparedStatements>50</maxOpenPreparedStatements>
</connectionPool>
</gwcJdbcConfiguration>
12 changes: 12 additions & 0 deletions gwc/geowebcache-diskquota.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<gwcQuotaConfiguration>
<enabled>true</enabled>
<cacheCleanUpFrequency>10</cacheCleanUpFrequency>
<cacheCleanUpUnits>SECONDS</cacheCleanUpUnits>
<maxConcurrentCleanUps>2</maxConcurrentCleanUps>
<globalExpirationPolicyName>LFU</globalExpirationPolicyName>
<globalQuota>
<value>500</value>
<units>MiB</units>
</globalQuota>
<quotaStore>JDBC</quotaStore>
</gwcQuotaConfiguration>

0 comments on commit 73adae9

Please sign in to comment.