Skip to content

Commit d52ca10

Browse files
Enable participant pruning with 30d retention (#3090)
Signed-off-by: Julien Tinguely <[email protected]>
1 parent 196fc46 commit d52ca10

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

apps/validator/src/main/scala/org/lfdecentralizedtrust/splice/validator/config/ValidatorAppConfig.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import com.digitalasset.canton.config.*
2121
import com.digitalasset.canton.config.RequireTypes.{NonNegativeLong, NonNegativeNumeric}
2222

2323
import java.nio.file.Path
24+
import scala.concurrent.duration.DurationInt
2425

2526
case class AppInstance(
2627
serviceUser: String,
@@ -193,7 +194,14 @@ case class ValidatorAppBackendConfig(
193194
NonNegativeFiniteDuration.ofSeconds(10),
194195
// Identifier for all Canton nodes controlled by this application
195196
cantonIdentifierConfig: Option[ValidatorCantonIdentifierConfig] = None,
196-
participantPruningSchedule: Option[PruningConfig] = None,
197+
// Participant pruning is enabled by default for all validators and SVs
198+
participantPruningSchedule: Option[PruningConfig] = Some(
199+
PruningConfig(
200+
cron = "0 /10 * * * ?", // Runs every 10 minutes
201+
maxDuration = PositiveDurationSeconds.tryFromDuration(5.minutes),
202+
retention = PositiveDurationSeconds.tryFromDuration(30.days),
203+
)
204+
),
197205
deduplicationDuration: PositiveDurationSeconds = PositiveDurationSeconds.ofHours(24),
198206
txLogBackfillEnabled: Boolean = true,
199207
txLogBackfillBatchSize: Int = 100,

docs/src/release_notes.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@
66
.. _release_notes:
77

88
Upcoming
9-
========
9+
--------
10+
11+
- Canton Participant
12+
13+
- Participants now prune data to only retain the last 30 days matching the 30 day pruning interval of sequencers and mediators.
14+
You can overwrite this default value by adding the following env variable in the `additionalEnvVars` helm values of the validator app: `ADDITIONAL_CONFIG_PARTICIPANT_PRUNING`
15+
16+
An example value would be: ``ADDITIONAL_CONFIG_PARTICIPANT_PRUNING=canton.validator-apps.validator_backend.participant-pruning-schedule {cron: "0 /10 * * * ?", max-duration: "5m", retention: "10h"}``
1017

1118
- Sequencer connections
1219

13-
- Improve retries for sending sequencer submissions when a sequencer rejects the request with an overloaded error code by retrying immediately on another node.
14-
- The network timeout for the connection was lowered to 15 seconds to detect failures faster.
20+
- Improve retries for sending sequencer submissions when a sequencer rejects the request with an overloaded error code by retrying immediately on another node.
21+
- The network timeout for the connection was lowered to 15 seconds to detect failures faster.
1522

1623

1724
0.5.1
18-
=====
25+
-----
1926

2027
- Canton Participant
2128

0 commit comments

Comments
 (0)