Merge pull request #5760 from smatvienko-tb/sql_batch_thread_count_better_hash_distribution
[3.3.3] SQL and TS batch thread count 3 for better hash distribution
This commit is contained in:
		
						commit
						6b9bdba92f
					
				@ -265,17 +265,17 @@ sql:
 | 
			
		||||
    batch_size: "${SQL_ATTRIBUTES_BATCH_SIZE:10000}"
 | 
			
		||||
    batch_max_delay: "${SQL_ATTRIBUTES_BATCH_MAX_DELAY_MS:100}"
 | 
			
		||||
    stats_print_interval_ms: "${SQL_ATTRIBUTES_BATCH_STATS_PRINT_MS:10000}"
 | 
			
		||||
    batch_threads: "${SQL_ATTRIBUTES_BATCH_THREADS:4}"
 | 
			
		||||
    batch_threads: "${SQL_ATTRIBUTES_BATCH_THREADS:3}" # batch thread count have to be a prime number like 3 or 5 to gain perfect hash distribution
 | 
			
		||||
  ts:
 | 
			
		||||
    batch_size: "${SQL_TS_BATCH_SIZE:10000}"
 | 
			
		||||
    batch_max_delay: "${SQL_TS_BATCH_MAX_DELAY_MS:100}"
 | 
			
		||||
    stats_print_interval_ms: "${SQL_TS_BATCH_STATS_PRINT_MS:10000}"
 | 
			
		||||
    batch_threads: "${SQL_TS_BATCH_THREADS:4}"
 | 
			
		||||
    batch_threads: "${SQL_TS_BATCH_THREADS:3}" # batch thread count have to be a prime number like 3 or 5 to gain perfect hash distribution
 | 
			
		||||
  ts_latest:
 | 
			
		||||
    batch_size: "${SQL_TS_LATEST_BATCH_SIZE:10000}"
 | 
			
		||||
    batch_max_delay: "${SQL_TS_LATEST_BATCH_MAX_DELAY_MS:100}"
 | 
			
		||||
    stats_print_interval_ms: "${SQL_TS_LATEST_BATCH_STATS_PRINT_MS:10000}"
 | 
			
		||||
    batch_threads: "${SQL_TS_LATEST_BATCH_THREADS:4}"
 | 
			
		||||
    batch_threads: "${SQL_TS_LATEST_BATCH_THREADS:3}" # batch thread count have to be a prime number like 3 or 5 to gain perfect hash distribution
 | 
			
		||||
    update_by_latest_ts: "${SQL_TS_UPDATE_BY_LATEST_TIMESTAMP:true}"
 | 
			
		||||
  # Specify whether to sort entities before batch update. Should be enabled for cluster mode to avoid deadlocks
 | 
			
		||||
  batch_sort: "${SQL_BATCH_SORT:false}"
 | 
			
		||||
@ -290,7 +290,7 @@ sql:
 | 
			
		||||
  timescale:
 | 
			
		||||
    # Specify Interval size for new data chunks storage.
 | 
			
		||||
    chunk_time_interval: "${SQL_TIMESCALE_CHUNK_TIME_INTERVAL:604800000}"
 | 
			
		||||
    batch_threads: "${SQL_TIMESCALE_BATCH_THREADS:4}"
 | 
			
		||||
    batch_threads: "${SQL_TIMESCALE_BATCH_THREADS:3}" # batch thread count have to be a prime number like 3 or 5 to gain perfect hash distribution
 | 
			
		||||
  ttl:
 | 
			
		||||
    ts:
 | 
			
		||||
      enabled: "${SQL_TTL_TS_ENABLED:true}"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user