Projet

Général

Profil

Actions

Feature #15131

ouvert

Activer par défaut le compactage de la JCR

Ajouté par David Lesimple il y a 7 jours. Mis à jour il y a 2 jours.

Statut:
Resolved
Priorité:
Normal
Assigné à:
Début:
14/01/2026
Echéance:
% réalisé:

100%

Temps estimé:
Livraison en TEST:
Livraison en PROD:

Description

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/ 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* :

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.
# Ici: 7 jours
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: 5 Mo
segment.compaction.sizeDeltaEstimation = 5242880

Actions

Formats disponibles : Atom PDF