-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-config.yaml
More file actions
64 lines (48 loc) · 1.64 KB
/
example-config.yaml
File metadata and controls
64 lines (48 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Example configuration file for data-archiver
# Copy this to ~/.data-archiver.yaml and update with your settings
# PostgreSQL connection settings
db:
host: localhost
port: 5432
user: your_db_user
password: your_db_password
name: your_database_name
# Optional: PostgreSQL statement timeout in seconds (default: 300 = 5 minutes)
# Set to 0 to disable timeout. Increase for very large partitions.
# statement_timeout: 300
# Optional: Maximum number of retry attempts for failed queries (default: 3)
# Retries are only attempted for transient errors like timeouts or connection issues.
# max_retries: 3
# Optional: Delay in seconds between retry attempts (default: 5)
# retry_delay: 5
# S3-compatible object storage settings
s3:
# For Hetzner Object Storage, use your cluster endpoint
# Example: https://fsn1.your-objectstorage.com
endpoint: https://your-s3-endpoint.com
# Your storage bucket name
bucket: your-archive-bucket
# S3 access credentials
access_key: your_access_key
secret_key: your_secret_key
# Region (use "auto" for Hetzner)
region: auto
# Archive settings
# Base table name (without date suffix)
table: your_table_name
# Number of parallel workers for processing
workers: 4
# Optional: Date range for archiving
# Format: YYYY-MM-DD
# start_date: "2024-01-01"
# end_date: "2024-12-31"
# Optional: Enable debug output
# debug: true
# Optional: Perform dry run without uploading
# dry_run: true
# Optional: Skip counting rows for faster startup
# skip_count: false
# Optional: Enable embedded cache viewer web server
# cache_viewer: false
# Optional: Port for cache viewer web server
# viewer_port: 8080