|
|
|
|
|
|
|
|
|
|
|
|
|
|
syncthing: |
|
|
host: "localhost" |
|
|
port: 8384 |
|
|
api_key: "${SYNCTHING_API_KEY}" |
|
|
config_dir: "/data/adaptai/platform/dataops/dto/syncthing" |
|
|
|
|
|
|
|
|
environments: |
|
|
production: |
|
|
devices: |
|
|
vast1: |
|
|
device_id: "${VAST1_SYNCTHING_DEVICE_ID}" |
|
|
name: "vast1-prod-mirror" |
|
|
address: "vast1.adapt.ai:22000" |
|
|
role: "primary" |
|
|
vast2: |
|
|
device_id: "${VAST2_SYNCTHING_DEVICE_ID}" |
|
|
name: "vast2-prod-mirror" |
|
|
address: "vast2.adapt.ai:22000" |
|
|
role: "secondary" |
|
|
archive1: |
|
|
device_id: "${ARCHIVE1_SYNCTHING_DEVICE_ID}" |
|
|
name: "archive1-prod-mirror" |
|
|
address: "archive1.adapt.ai:22000" |
|
|
role: "archive" |
|
|
|
|
|
staging: |
|
|
devices: |
|
|
vast1-staging: |
|
|
device_id: "${VAST1_STAGING_SYNCTHING_DEVICE_ID}" |
|
|
name: "vast1-staging-mirror" |
|
|
address: "vast1-staging.adapt.ai:22000" |
|
|
role: "primary" |
|
|
vast2-staging: |
|
|
device_id: "${VAST2_STAGING_SYNCTHING_DEVICE_ID}" |
|
|
name: "vast2-staging-mirror" |
|
|
address: "vast2-staging.adapt.ai:22000" |
|
|
role: "secondary" |
|
|
|
|
|
|
|
|
data_classes: |
|
|
CLASS_B: |
|
|
|
|
|
sync_config: |
|
|
rescan_interval: 1800 |
|
|
folder_type: "sendreceive" |
|
|
versioning: |
|
|
type: "simple" |
|
|
keep: 3 |
|
|
bandwidth: |
|
|
max_send_kbps: 50000 |
|
|
max_recv_kbps: 50000 |
|
|
options: |
|
|
ignore_perms: false |
|
|
auto_normalize: true |
|
|
fs_watcher_enabled: true |
|
|
fs_watcher_delay: 10 |
|
|
weak_hash_threshold: 25 |
|
|
|
|
|
|
|
|
storage_paths: |
|
|
production: "/data/adaptai/platform/dataops/dto/mirrors/class_b/prod" |
|
|
staging: "/data/adaptai/platform/dataops/dto/mirrors/class_b/staging" |
|
|
|
|
|
|
|
|
priority: "normal" |
|
|
schedule: |
|
|
active_hours: "00:00-23:59" |
|
|
maintenance_window: "02:00-04:00" |
|
|
|
|
|
CLASS_C: |
|
|
|
|
|
sync_config: |
|
|
rescan_interval: 3600 |
|
|
folder_type: "sendreceive" |
|
|
versioning: |
|
|
type: "simple" |
|
|
keep: 5 |
|
|
bandwidth: |
|
|
max_send_kbps: 20000 |
|
|
max_recv_kbps: 20000 |
|
|
options: |
|
|
ignore_perms: true |
|
|
auto_normalize: true |
|
|
fs_watcher_enabled: false |
|
|
weak_hash_threshold: 50 |
|
|
|
|
|
|
|
|
storage_paths: |
|
|
production: "/data/adaptai/platform/dataops/dto/mirrors/class_c/prod" |
|
|
staging: "/data/adaptai/platform/dataops/dto/mirrors/class_c/staging" |
|
|
archive: "/data/adaptai/platform/dataops/dto/mirrors/class_c/archive" |
|
|
|
|
|
|
|
|
priority: "low" |
|
|
schedule: |
|
|
active_hours: "22:00-06:00" |
|
|
maintenance_window: "02:00-04:00" |
|
|
|
|
|
|
|
|
mirror_policies: |
|
|
|
|
|
auto_setup: |
|
|
enabled: true |
|
|
data_size_threshold: 10737418240 |
|
|
file_count_threshold: 100 |
|
|
data_types: |
|
|
- "research_datasets" |
|
|
- "model_checkpoints" |
|
|
- "experiment_results" |
|
|
- "backup_archives" |
|
|
|
|
|
|
|
|
retention: |
|
|
CLASS_B: |
|
|
keep_days: 30 |
|
|
archive_after_days: 90 |
|
|
cleanup_failed_syncs: true |
|
|
CLASS_C: |
|
|
keep_days: 90 |
|
|
archive_after_days: 365 |
|
|
cleanup_failed_syncs: true |
|
|
|
|
|
|
|
|
health_checks: |
|
|
interval_seconds: 300 |
|
|
connection_timeout: 30 |
|
|
max_disconnect_time: 3600 |
|
|
|
|
|
|
|
|
integrations: |
|
|
|
|
|
nats: |
|
|
subjects: |
|
|
mirror_setup: "dto.events.syncthing.mirror_setup" |
|
|
sync_progress: "dto.events.syncthing.sync_progress" |
|
|
sync_completed: "dto.events.syncthing.sync_completed" |
|
|
health_status: "dto.events.syncthing.health_status" |
|
|
|
|
|
|
|
|
slack: |
|
|
notify_on: |
|
|
- "device_disconnected" |
|
|
- "sync_failed" |
|
|
- "mirror_setup_failed" |
|
|
- "health_check_failed" |
|
|
channels: |
|
|
alerts: "#dto-alerts" |
|
|
status: "#dto-status" |
|
|
|
|
|
|
|
|
metrics: |
|
|
enabled: true |
|
|
port: 8385 |
|
|
metrics: |
|
|
- "syncthing_device_connections" |
|
|
- "syncthing_folder_sync_status" |
|
|
- "syncthing_bandwidth_usage" |
|
|
- "syncthing_sync_completion_time" |
|
|
|
|
|
|
|
|
security: |
|
|
|
|
|
discovery: |
|
|
enabled: true |
|
|
global_discovery: false |
|
|
local_discovery: true |
|
|
|
|
|
|
|
|
authentication: |
|
|
auto_accept_devices: false |
|
|
device_verification_required: true |
|
|
certificate_validation: true |
|
|
|
|
|
|
|
|
folder_security: |
|
|
auto_accept_folders: false |
|
|
folder_verification_required: true |
|
|
ignore_patterns: |
|
|
- ".git/*" |
|
|
- "*.tmp" |
|
|
- "*.log" |
|
|
- "__pycache__/*" |
|
|
- ".DS_Store" |
|
|
|
|
|
|
|
|
performance: |
|
|
|
|
|
connections: |
|
|
max_concurrent_requests: 64 |
|
|
request_timeout: 60 |
|
|
connect_timeout: 30 |
|
|
|
|
|
|
|
|
scanning: |
|
|
max_concurrent_scans: 2 |
|
|
scan_progress_interval: 2 |
|
|
weak_hash_selection_method: "auto" |
|
|
|
|
|
|
|
|
bandwidth: |
|
|
limit_enabled: true |
|
|
peak_hours: "08:00-18:00" |
|
|
peak_limit_factor: 0.7 |
|
|
|
|
|
|
|
|
resources: |
|
|
max_memory_mb: 2048 |
|
|
max_cpu_percent: 50 |
|
|
gc_interval: 300 |
|
|
|
|
|
|
|
|
logging: |
|
|
level: "INFO" |
|
|
file: "/data/adaptai/platform/dataops/dto/logs/syncthing-automation.log" |
|
|
max_size_mb: 100 |
|
|
max_files: 5 |
|
|
format: "json" |
|
|
|
|
|
|
|
|
backup: |
|
|
config_backup: |
|
|
enabled: true |
|
|
interval_hours: 24 |
|
|
backup_dir: "/data/adaptai/platform/dataops/dto/syncthing/backups" |
|
|
keep_backups: 7 |
|
|
|
|
|
disaster_recovery: |
|
|
config_restore_script: "/data/adaptai/platform/dataops/dto/syncthing/restore_config.sh" |
|
|
device_id_backup: "/data/adaptai/platform/dataops/dto/syncthing/device_ids.json" |