enhance utilisation of postgres features
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-20 10:19:27 +10:00
parent 98e92a8264
commit 8ccf5a7009
28 changed files with 2836 additions and 422 deletions
+5 -5
View File
@@ -2,12 +2,12 @@ CPE_OPTS='-settings /etc/dtms/vctp.yml'
# Aggregation engine selection (default: Go paths enabled).
# DAILY_AGG_GO=1:
# Use the Go fan-out/reduce daily aggregation path.
# Force the Go fan-out/reduce daily aggregation path for manual runs.
# MONTHLY_AGG_GO=1:
# Use the Go monthly aggregation path for both monthly modes
# (hourly or daily source tables, controlled by settings.monthly_aggregation_granularity).
# Set either option to 0 to prefer the SQL implementation for that layer.
# If a Go aggregation run fails, vCTP automatically falls back to SQL for that run.
# Force the Go monthly aggregation path for manual runs.
# DAILY_AGG_SQL=1 / MONTHLY_AGG_SQL=1:
# Force legacy SQL fallback for manual runs.
# Scheduled aggregation selection is controlled by settings.scheduled_aggregation_engine in YAML.
DAILY_AGG_GO=1
MONTHLY_AGG_GO=1
# Additional runtime behavior is configured in the YAML file (`/etc/dtms/vctp.yml` by default).
+8 -1
View File
@@ -49,11 +49,18 @@ settings:
snapshot_cleanup_cron: "30 2 * * *"
hourly_snapshot_retry_seconds: 300
hourly_snapshot_max_retries: 3
capture_write_batch_size: 1000
snapshot_table_compat_mode: true
async_report_generation: true
# Postgres-only: when true, vm_hourly_stats is migrated/managed as monthly range partitions.
postgres_vm_hourly_partitioning_enabled: false
# Scheduled aggregation engine: go (default) or sql (canonical Postgres SQL path rollout flag).
scheduled_aggregation_engine: "go"
hourly_job_timeout_seconds: 1200
hourly_snapshot_timeout_seconds: 600
daily_job_timeout_seconds: 900
monthly_job_timeout_seconds: 1200
monthly_aggregation_granularity: "hourly"
monthly_aggregation_granularity: "daily"
monthly_aggregation_cron: "10 3 1 * *"
# Optional: override Summary worksheet pivot layout in daily/monthly XLSX reports.
# metric values: avg_vcpu, avg_ram, prorated_vm_count, vm_name_count