Files
msgexchange-api/src/main/resources/application-pro.yml
T

104 lines
3.0 KiB
YAML
Raw Normal View History

2018-12-29 17:30:43 +08:00
spring:
jpa:
hibernate:
ddl-auto: none
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
datasource:
username: root
password: gzzn09ap
url: jdbc:mysql://172.17.35.162:3306/cdairport?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&autoReconnect=true
tomcat:
max-active: 30
test-on-borrow: true
initial-size: 3
redis:
2019-01-29 14:44:19 +08:00
cluster:
nodes: 172.17.35.160:6379,172.17.35.160:6380,172.17.35.161:6379,172.17.35.161:6380,172.17.35.162:6379,172.17.35.162:6380
2018-12-29 17:30:43 +08:00
password:
pool:
max-idle: 10
min-idle: 0
max-active: 200
max-wait: -1
timeout: 1000
kafka:
producer:
retries: 0
servers: 172.17.35.161:32796,172.17.35.161:32797,172.17.35.161:32798
linger: 1
batch:
size: 4096
buffer:
memory: 10240000
max:
request:
size: 10240000
consumer:
auto:
offset:
reset: latest
commit:
interval: 100
servers: 172.17.35.161:32796,172.17.35.161:32797,172.17.35.161:32798
zookeeper:
connect: 172.17.35.161:2181
session:
timeout: 6000
enable:
auto:
commit: true
topic: test
concurrency: 10
group:
id: test
msgExchange:
2019-01-10 16:57:56 +08:00
intervalSeconds: 1
2018-12-29 17:30:43 +08:00
waitDateLeftOffset: 600000
logstash:
host: 172.17.35.160:5000
scheduled:
#每日凌晨3:30分点采集历史数据 0 30 3 * * ?
flightInfoCron: 0 30 3 * * ?
corePoolSize: 10
maxPoolSize: 50
queueCapacity: 10
# 每日凌晨3:00 cminmsg 已处理数据转历史
2018-12-30 22:51:42 +08:00
cminmsgHisCron: 0 0 3 * * ?
2019-01-17 21:00:34 +08:00
# 航班发送信息定时
2019-01-18 14:15:13 +08:00
flightSendCron: "*/3 * * * * ?"
2018-12-29 17:30:43 +08:00
#计入历史航班数据的条件
hstCondition:
#航班到达超过多久则成为历史航班数据(单位:毫秒)
ARRIVE_HST_TIME: 3600000
#航班取消超过多久则成为历史航班数据(单位:毫秒)
CANCEL_HST_TIME: 3600000
#备降超过多久则成为历史航班数据 FROM CTU 本应降落到成都备降到其他地方(单位:毫秒)
FDIV_HST_TIME: 59400000
#计划时间超过多久则成为历史航班数据(单位:毫秒)
SODT_HST_TIME: 259200000
2018-12-29 17:30:43 +08:00
# Elasticsearch
# 9200端口是用来让HTTP REST API来访问ElasticSearch,而9300端口是传输层监听的默认端口
elasticsearch:
ip: 172.17.35.160
port: 9300
pool: 5
#注意cluster.name需要与config/elasticsearch.yml中的cluster.name一致
cluster:
2019-01-14 11:00:02 +08:00
name: docker-cluster
2019-02-26 17:57:57 +08:00
nodes: 172.17.35.160:9300,172.17.35.161:9300,172.17.35.162:9300
2019-01-14 11:00:02 +08:00
eureka:
client:
service-url:
defaultZone: http://172.17.35.163:94/eureka/
instance:
prefer-ip-address: false
hostName: msgexchangeapi
2019-01-29 14:44:19 +08:00
adminApi:
host: 172.17.35.163
port: 92
schema: http
baseUrl: ${adminApi.schema}://ADMINAPI
2019-02-26 09:16:03 +08:00
ormsStandsUrl: ${adminApi.baseUrl}/basicdata/ormsStands
getAirbridgeCodeByStandCodeUrl: ${adminApi.baseUrl}/basicdata/ormsStands/{standCode}/airbridgeCode