Added edge_event config to yml file
This commit is contained in:
parent
878d9743ce
commit
d3eda0c473
@ -283,6 +283,11 @@ sql:
|
|||||||
batch_max_delay: "${SQL_EVENTS_BATCH_MAX_DELAY_MS:100}"
|
batch_max_delay: "${SQL_EVENTS_BATCH_MAX_DELAY_MS:100}"
|
||||||
stats_print_interval_ms: "${SQL_EVENTS_BATCH_STATS_PRINT_MS:10000}"
|
stats_print_interval_ms: "${SQL_EVENTS_BATCH_STATS_PRINT_MS:10000}"
|
||||||
batch_threads: "${SQL_EVENTS_BATCH_THREADS:3}" # batch thread count have to be a prime number like 3 or 5 to gain perfect hash distribution
|
batch_threads: "${SQL_EVENTS_BATCH_THREADS:3}" # batch thread count have to be a prime number like 3 or 5 to gain perfect hash distribution
|
||||||
|
edge_events:
|
||||||
|
batch_size: "${SQL_EDGE_EVENTS_BATCH_SIZE:1000}"
|
||||||
|
batch_max_delay: "${SQL_EDGE_EVENTS_BATCH_MAX_DELAY_MS:100}"
|
||||||
|
stats_print_interval_ms: "${SQL_EDGE_EVENTS_BATCH_STATS_PRINT_MS:10000}"
|
||||||
|
batch_threads: "${SQL_EDGE_EVENTS_BATCH_THREADS:3}" # batch thread count have to be a prime number like 3 or 5 to gain perfect hash distribution
|
||||||
# Specify whether to sort entities before batch update. Should be enabled for cluster mode to avoid deadlocks
|
# Specify whether to sort entities before batch update. Should be enabled for cluster mode to avoid deadlocks
|
||||||
batch_sort: "${SQL_BATCH_SORT:false}"
|
batch_sort: "${SQL_BATCH_SORT:false}"
|
||||||
# Specify whether to remove null characters from strValue of attributes and timeseries before insert
|
# Specify whether to remove null characters from strValue of attributes and timeseries before insert
|
||||||
|
|||||||
@ -63,7 +63,7 @@ public class JpaBaseEdgeEventDao extends JpaAbstractSearchTextDao<EdgeEventEntit
|
|||||||
@Autowired
|
@Autowired
|
||||||
private StatsFactory statsFactory;
|
private StatsFactory statsFactory;
|
||||||
|
|
||||||
@Value("${sql.edge_events.batch_size:10000}")
|
@Value("${sql.edge_events.batch_size:1000}")
|
||||||
private int batchSize;
|
private int batchSize;
|
||||||
|
|
||||||
@Value("${sql.edge_events.batch_max_delay:100}")
|
@Value("${sql.edge_events.batch_max_delay:100}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user