REPO-5571 : Change the tempFileCleanerTrigger to work at scale (#293)

* REPO-5571 : Change the tempFileCleanerTrigger to work at scale
    - added nr of files and time limits
This commit is contained in:
Lucian Tuca
2021-02-23 15:41:06 +02:00
committed by GitHub
parent cf91e0afe0
commit fd7adefe27
3 changed files with 90 additions and 6 deletions

View File

@@ -1220,3 +1220,7 @@ alfresco.content.directAccessUrl.lifetimeInSec=300
# Creates additional indexes on alf_node and alf_transaction. Recommended for large repositories.
system.new-node-transaction-indexes.ignored=true
# Allows the configuration of maximum limits of the temp files to be deleted or the maximum time allowed to run for the job
system.tempFileCleaner.maxFilesToDelete=
system.tempFileCleaner.maxTimeToRun=

View File

@@ -40,6 +40,8 @@
<property name="jobDataAsMap">
<map>
<entry key="protectHours" value="1"/>
<entry key="maxFilesToDelete" value="${system.tempFileCleaner.maxFilesToDelete:#{null}}"/>
<entry key="maxTimeToRun" value="${system.tempFileCleaner.maxTimeToRun:#{null}}"/>
</map>
</property>
</bean>
@@ -55,6 +57,8 @@
<map>
<entry key="protectHours" value="1"/>
<entry key="directoryName" value="${webscripts.tempDirectoryName}"/>
<entry key="maxFilesToDelete" value="${system.tempFileCleaner.maxFilesToDelete:#{null}}"/>
<entry key="maxTimeToRun" value="${system.tempFileCleaner.maxTimeToRun:#{null}}"/>
</map>
</property>
</bean>