Projet

Général

Profil

Feature #15131

Mis à jour par David Lesimple il y a 7 jours

Par défaut, seul le compactage automatique de la JCR au démarrage de Silverpeas est activé. 
 Or dans le cas d'une forte activité, la taille des fichiers tar dans $SILVERPEAS_HOME/data/jcr/segmentstore/ *$SILVERPEAS_HOME/data/jcr/segmentstore/* vont augmenter de manière importante. 
 Il est donc préférable de compacter la JCR de manière régulière lorsque Silverpeas fonctionne. 

 Pour cela, il convient donc de valoriser le paramétrage suivant dans $SILVERPEAS_HOME/data/jcr/silverpeas-oak.properties* : 

 <pre> 
 segment.compaction.cron = 30 5 * * * 

 # Along the segment data manipulations, backup files are created in order to give the possibility 
 # of data restoring. But after a while, they can take a lot of space and become useless. 
 # The minimum number of days old a backup file MUST be aged to be deleted during the compaction 
 # process. Ignored if segment.compaction.pause parameter is set at true value. 
 # -1 means that backup file deletion is not performed. 
 # 0 means that all backup files are deleted whatever their age. 
 segment.compaction.backup.age = 7 

 # The increase in size of the Node Store (in bytes) since the last successful compaction that will 
 # trigger another execution of the compaction phase. 
 # Exemple ici: 10 Mo 
 segment.compaction.sizeDeltaEstimation = 10485760 

 </pre> 

Retour