RTFS Scheduled Jobs Reference

Look up background jobs RTFS runs for Federation health and event processing.

RTFS runs background jobs to maintain Federation health, process events, manage database partitions, collect metrics, and perform cleanup. This reference lists all scheduled jobs, their purpose, and configuration.

Cron-Based Jobs

These jobs run on fixed cron schedules.

JobPurposeCron PropertyDefault Schedule
Mirror HeartbeatSends heartbeats to all Federation members to monitor connectivity and detect inactive or unreachable members.rtfs.mirror.heartbeat.cron*/20 * * ? * * * (every 20 seconds)
Stream RecoveryDetects and recovers stalled event streams that have stopped processing due to transient errors.rtfs.stream.recovery.job.cron*/10 * * ? * * * (every 10 seconds)
Stream Lag CollectionCollects worker lag metrics and identifies repositories with the highest synchronization delay.rtfs.stream.lag.collector.job.cron0 */2 * ? * * (every 2 minutes)
File List TasksProcesses pending file list preparation tasks required for Full Sync operations.rtfs.file.list.tasks.job.cron*/30 * * ? * * * (every 30 seconds)
Readiness ProbePerforms internal readiness checks to determine if RTFS can serve traffic.rtfs.readiness.job.cron*/15 * * ? * * * (every 15 seconds)
Partition ManagementEvaluates database partition utilization and creates new partitions for event and message blob tables when thresholds are reached.rtfs.partition.job.interval.cron0 0/30 * ? * * (every 30 minutes)
Sub-Partition PK MonitoringMonitors sub-partition primary key counts and reports metrics for capacity planning.rtfs.sub.partition.pk.monitoring.cron0 0 0 ? * * * (daily at midnight)
Events CleanupRemoves processed events older than the retention period to control database growth.rtfs.events.cleanup.cron0 0 1 * * ? (daily at 1:00 AM)
Full Sync Dir CleanupCleans up temporary directories and files created during Full Sync operations.rtfs.full.sync.cleanup.cron0 0/10 * * * ? * (every 10 minutes)
Metrics CollectionCollects general RTFS metrics (member counts, config consistency, and connection pool utilization). See the Open Metrics Reference for exposed metric names.rtfs.collect.metrics.job.cron*/59 * * ? * * * (approximately every minute)
Call Home MetricsCollects aggregated usage metrics for JFrog analytics.rtfs.call.home.collect.metrics.job.cron0 0 3 * * ? (daily at 3:00 AM)
Orphan CleanupRemoves orphaned records from the database (for example, member state entries for repositories that no longer exist).rtfs.orphan.cleanup.cron0 0 2 * * ? (daily at 2:00 AM)
Configuration SyncAligns repository configuration between RTFS, Artifactory, and remote members. Detects configuration drift and repairs inconsistencies.rtfs.repo.config.sync.job.interval.cron0 0 * * * ? (hourly)
Configuration IntegrityValidates repository configuration integrity as a secondary consistency check.rtfs.repo.config.integrity.job.interval.cron0 30 * * * ? (hourly at :30)

Interval-Based Jobs

These jobs run at fixed intervals rather than cron expressions.

JobPurposeInterval PropertyDefault IntervalInitial Delay PropertyDefault Delay
Full SyncCoordinates full synchronization between members that are in PENDING_FS state. Processes members in batches.rtfs.full.sync.job.interval.sec120 secondsrtfs.full.sync.job.initial.delay.min1 minute
Auto-HealingChecks for members in error states and initiates recovery (resets exhausted queues, replays failed binary tasks).rtfs.auto.healing.job.interval.sec20 secondsrtfs.auto.healing.job.initial.delay.min1 minute
Metrics ExportExports collected metrics for external consumption.rtfs.export.metrics.job.interval.sec60 secondsrtfs.export.metrics.job.initial.delay.min1 minute

Continuous Processes

These services run continuously rather than on a schedule.

ProcessPurposeKey Properties
Worker RunnerContinuously polls event streams and processes event batches for propagation to remote members.rtfs.worker.batch.size (100), rtfs.worker.max.events.processed.in.batch (200)
Binary Tasks HandlerContinuously processes binary transfer tasks (download from source, upload to target).rtfs.binary.tasks.handler.run.duration (PT1S), rtfs.binary.tasks.handler.tenants.thread.pool.size (100)

Tuning Guidelines

  • High-volume deployments: If you observe stream lag growing, reduce the rtfs.stream.recovery.job.cron interval and increase rtfs.worker.batch.size.

For example, to run Stream Recovery every 5 seconds instead of the default 10:

rtfs.stream.recovery.job.cron=*/5 * * ? * * *
  • Database growth: If database size grows faster than expected, reduce rtfs.events.cleanup.retention.time.Days and verify PartitionMakerJob is running successfully. See RTFS Database Requirements for schema details.
  • Full Sync performance: Increase rtfs.full.sync.job.run.members.batch.size to process more members per cycle. Decrease rtfs.full.sync.grace.period.min to allow more frequent syncs for the same member.
  • Auto-healing frequency: The default 20-second interval is suitable for most deployments. Increase it only if auto-healing log noise is excessive in stable environments.

Related Topics


Did this page help you?