Fix properties naming for SqlDaoCallsAspect

This commit is contained in:
ViacheslavKlimov 2022-09-28 15:36:06 +03:00
parent cae9fb55f0
commit ac5708f6ff
2 changed files with 3 additions and 3 deletions

View File

@ -273,7 +273,7 @@ sql:
log_queries: "${SQL_LOG_QUERIES:false}"
log_queries_threshold: "${SQL_LOG_QUERIES_THRESHOLD:5000}"
log_tenant_stats: "${SQL_LOG_TENANT_STATS:true}"
log_tenant_stats_interval: "${SQL_LOG_TENANT_STATS_INTERVAL:60000}"
log_tenant_stats_interval_ms: "${SQL_LOG_TENANT_STATS_INTERVAL_MS:60000}"
postgres:
# Specify partitioning size for timestamp key-value storage. Example: DAYS, MONTHS, YEARS, INDEFINITE.
ts_key_value_partitioning: "${SQL_POSTGRES_TS_KV_PARTITIONING:MONTHS}"

View File

@ -55,8 +55,8 @@ public class SqlDaoCallsAspect {
private final Set<String> invalidTenantDbCallMethods = ConcurrentHashMap.newKeySet();
private final ConcurrentMap<TenantId, DbCallStats> statsMap = new ConcurrentHashMap<>();
@Scheduled(initialDelayString = "${sql.log_tenant_stats.log_tenant_stats_interval:60000}",
fixedDelayString = "${sql.log_tenant_stats.log_tenant_stats_interval:60000}")
@Scheduled(initialDelayString = "${sql.log_tenant_stats_interval_ms:60000}",
fixedDelayString = "${sql.log_tenant_stats_interval_ms:60000}")
public void printStats() {
List<DbCallStatsSnapshot> snapshots = snapshot();
if (snapshots.isEmpty()) return;