modelRT/config/config.yaml

66 lines
1.1 KiB
YAML
Raw Normal View History

2024-11-28 11:46:40 +08:00
postgres:
2025-01-09 15:56:40 +08:00
host: "192.168.2.103"
2024-11-28 11:46:40 +08:00
port: 5432
database: "demo"
2024-11-28 11:46:40 +08:00
user: "postgres"
password: "coslight"
2024-11-28 11:46:40 +08:00
kafka:
servers: "localhost:9092"
port: 9092
group_id: "modelRT"
topic: ""
auto_offset_reset: "earliest"
enable_auto_commit: "false"
read_message_time_duration: ”0.5s"
2024-11-28 11:46:40 +08:00
# influxdb:
# host: "localhost"
# port: "8086"
# token: "lCuiQ316qlly3iFeoi1EUokPJ0XxW-5lnG-3rXsKaaZSjfuxO5EaZfFdrNGM7Zlrdk1PrN_7TOsM_SCu9Onyew=="
# org: "coslight"
# bucket: "wave_record"
2024-11-28 11:46:40 +08:00
# zap logger config
logger:
mode: "development"
level: "debug"
filepath: "/home/douxu/log/modelRT-%s.log"
2024-11-28 11:46:40 +08:00
maxsize: 1
maxbackups: 5
maxage: 30
compress: false
2024-11-28 11:46:40 +08:00
# ants config
ants:
parse_concurrent_quantity: 10
rtd_receive_concurrent_quantity: 10
2024-11-28 11:46:40 +08:00
# redis config
locker_redis:
addr: "192.168.2.104:6379"
password: ""
db: 1
poolsize: 50
timeout: 10
storage_redis:
addr: "192.168.2.104:6379"
password: ""
db: 0
poolsize: 50
timeout: 10
2024-11-28 11:46:40 +08:00
# modelRT base config
base:
grid_id: 1
zone_id: 1
station_id: 1
# dataRT api config
dataRT:
host: "http://127.0.0.1"
port: 8888
polling_api: "datart/getPointData"
polling_api_method: "GET"