application.properties 3.14 KB
# app info
server.port=16060
spring.application.name=VVAS-DataCenter-DBWriter

# Db
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://39.155.171.242:5432/ShoppingMall
spring.datasource.username=postgres
spring.datasource.password=vion
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.idle-timeout=600000
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.maximum-pool-size=50

# redis
spring.redis.host=39.155.171.242
spring.redis.port=6379
spring.redis.password=vionredis
spring.redis.database=10
spring.redis.lettuce.pool.min-idle=1
spring.redis.lettuce.pool.max-active=10

# kafka
spring.kafka.bootstrap-servers=182.92.177.43:9092
spring.kafka.properties.spring.json.add.type.headers=false
spring.kafka.producer.key-serializer=org.springframework.kafka.support.serializer.JsonSerializer
spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer
spring.kafka.producer.batch-size=16384
spring.kafka.producer.properties.linger.ms=50
spring.kafka.producer.retries=1
spring.kafka.producer.acks=all
#spring.kafka.consumer.key-deserializer=org.springframework.kafka.support.serializer.JsonDeserializer
#spring.kafka.consumer.value-deserializer=org.springframework.kafka.support.serializer.JsonDeserializer
spring.kafka.consumer.auto-offset-reset=earliest
spring.kafka.consumer.enable-auto-commit=false
spring.kafka.consumer.fetch-max-wait=500
spring.kafka.consumer.max-poll-records=100
#spring.kafka.consumer.properties.spring.json.trusted.packages=com.viontech.keliu.entity
spring.kafka.listener.ack-mode=manual_immediate
spring.kafka.listener.type=batch

# jackson
spring.jackson.time-zone=Asia/Shanghai
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss

# topic consumer config
# FaceCapture
vion.consumer.mallFaceCapture.autoStartup=true
vion.consumer.mallFaceCapture.concurrency=1
vion.consumer.mallFaceCapture.batchEnable=1
vion.consumer.mallFaceCapture.batchSize=100
vion.consumer.mallFaceCapture.batchThreadNum=10
vion.consumer.mallRetryFaceCapture.autoStartup=false
vion.consumer.mallRetryFaceCapture.concurrency=1
# PersonLabel
vion.consumer.mallPersonLabel.autoStartup=false
vion.consumer.mallPersonLabel.concurrency=1
vion.consumer.mallPersonLabel.batchEnable=1
vion.consumer.mallPersonLabel.batchSize=100
vion.consumer.mallPersonLabel.batchThreadNum=10
vion.consumer.mallRetryPersonLabel.autoStartup=false
vion.consumer.mallRetryPersonLabel.concurrency=1
# d_gate_minute_count_data
vion.consumer.mallGateMinuteCount.autoStartup=true
vion.consumer.mallGateMinuteCount.concurrency=1
vion.consumer.mallGateMinuteCount.batchSize=20
vion.consumer.mallGateMinuteCount.batchThreadNum=5
# d_zone_minute_count_data
vion.consumer.mallZoneMinuteCount.autoStartup=true
vion.consumer.mallZoneMinuteCount.concurrency=1
vion.consumer.mallZoneMinuteCount.batchSize=20
vion.consumer.mallZoneMinuteCount.batchThreadNum=5

# mall dataStiatistics
vion.consumer.mallDataStatistics.autoStartup=true
vion.consumer.mallDataStatistics.concurrency=1
vion.consumer.mallDataStatistics.reidUrl=http://10.0.14.11:23456
vion.consumer.mallDataStatistics.zoneNum=false