Files
eu_active_script/aa

95 lines
2.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
config:
printCql: true
httpTimeout: 10000
server:
port: 80
servlet:
context-path: /scls
spring:
main:
allow-circular-references: true
application:
name: tsp-statistics-control-log-service
jackson:
default-property-inclusion: non_null
mvc:
throw-exception-if-no-handler-found: true
pathmatch:
matching-strategy: ant_path_matcher
datasource:
url: jdbc:mysql://eutsp-uat.mysql.germany.rds.aliyuncs.com:3306/CHERY_INTERNATIONAL_TSP_EU?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&allowMultiQueries=true
username: international_tsp_eu
password: p%geZgf$$n26Qpcn
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
minimum-idle: 5
idle-timeout: 180000
maximum-pool-size: 10
auto-commit: true
connection-timeout: 30000
connection-test-query: select 1
kafka:
bootstrap-servers: 10.95.3.204:9092,10.95.3.205:9092,10.95.3.206:9092
producer:
bootstrap-servers: 10.95.3.204:9092,10.95.3.205:9092,10.95.3.206:9092
# 以下序列方式请根据项目实际情况进行配置,如果和下面相同则项目中可以不用配置
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.ByteArraySerializer
#发送失败,重试次数
retries: 3
# acks=0 生产者在成功写入消息之前不会等待任何来自服务器的响应。
# acks=1 只要集群的首领节点收到消息,生产者就会收到一个来自服务器成功响应。
# acks=all :只有当所有参与复制的节点全部收到消息时,生产者才会收到一个来自服务器的成功响应。
acks: 1
properties:
linger:
ms: 1
batch-size: 16384
buffer-memory: 33554432
consumer:
bootstrap-servers: 10.95.3.204:9092,10.95.3.205:9092,10.95.3.206:9092
auto-offset-reset: earliest
group-id: ${spring.application.name}
enable-auto-commit: true
auto-commit-interval: 1000
# 以下序列方式请根据项目实际情况进行配置,如果和下面相同则项目中可以不用配置
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
value-deserializer: org.apache.kafka.common.serialization.ByteArrayDeserializer
listener:
ack-mode:
cache:
type: redis
data:
cassandra:
keyspace-name: tsp_eu
contact-points:
- 10.95.3.201
- 10.95.3.202
- 10.95.3.203
port: 9042
username: tsp_eu_rw
password: awXKeq6cJIytuS4y
session-name: Test Cluster
local-datacenter: dc1 #默认的数据中心
request:
timeout: 30s
mybatis-plus:
global-config:
sql-parser-cache: true
logging:
level:
root: INFO
remote-control-log-kafka-topic: tsp-remote-control-flow-data-eu
threadPool:
main:
corePoolSize: 10
maximumPoolSize: 20
queueCapacity: 50
rejectedPolicy: 1