This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-tsg-olap-generate-ba…/src/main/resources/application.properties
2021-09-01 15:06:31 +08:00

79 lines
2.3 KiB
Properties
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.

##########################################
############## 数据库配置 ###############
##########################################
#Druid配置
druid.url=jdbc:avatica:remote:url=http://192.168.44.12:8082/druid/v2/sql/avatica/
druid.driver=org.apache.calcite.avatica.remote.Driver
druid.table=traffic_top_destination_ip_metrics_log
#HBase配置
hbase.table=dos:ddos_traffic_baselines
hbase.zookeeper.quorum=192.168.44.12
hbase.zookeeper.client.port=2181
##########################################
############## Druid数据读取 ###############
##########################################
#读取druid时间范围方式
# 0读取默认范围天数read.historical.days
# 1指定时间范围
read.druid.time.limit.type=0
#07-05
read.druid.min.time=1625414400000
#07-08
read.druid.max.time=1625673600000
#Druid字段映射
druid.attacktype.tcpsynflood=TCP SYN Flood
druid.attacktype.udpflood=UDP Flood
druid.attacktype.icmpflood=ICMP Flood
druid.attacktype.dnsamplification=DNS Amplification
druid.columnname.serverip=destination_ip
druid.columnname.attacktype=attack_type
druid.columnname.recvtime=__time
druid.columnname.partition.num=partition_num
baseline.metric.type=session_rate
#Hbase字段映射
hbase.baseline.generation.type.suffix=baseline_type
hbase.baseline.zero.replace.value.suffix=default_value
#数据情况
#读取历史N天数据最小值为3天需要判断周期性
read.historical.days=3
#历史数据汇聚粒度为10分钟
historical.grad=10
# 数据库Time格式
time.format=yyyy-MM-dd HH:mm:ss
##########################################
############ Baseline生成参数 #############
##########################################
baseline.range.days=1
baseline.function=KalmanFilter
baseline.period.correlative.threshold=0.5
baseline.historical.frequency.thread=0.2
baseline.exception.percentile=0.99
baseline.exception.fill.percentile=0.99
baseline.rational.percentile=0.95
#Kalman Filter
baseline.kalman.q=0.1
baseline.kalman.r=0.1
baseline.kalman.p=8
baseline.kalman.m=2
monitor.frequency.bin.num=100
##########################################
################ 并发参数 #################
##########################################
#druid.read.batch.time.grad.hour=4
thread.pool.num=20
#druid分区字段partition_num的最大值为9999
druid.partition.num.max=10000
druid.connection.retry.time.max=10
druid.connection.retry.sleep.time=1000