画像&预警&心跳服务
配置文件hm_test_pnhbserver.properties,此服务融合了心跳服务、画像与预警服务、AppHub管理服务于一体,适合规模较小的测试环境部署。
日志配置
log.level=INFO
日志级别,含INFO, ERR, WARNING, DEBUG, FINE, FINER, ALL
log.debug=false
是否开启debug日志
log.fsize=10
日志单次输出块大小
log.collectEnable=false
是否收集日志
log.collectMatch=
收集指定日志的正则匹配
meta.datacenterid=1
meta.nodetype=\u5FC3\u8DF3\u670D\u52A1
节点名称,UTF8编码
基础feature配置
message producer 消息生产者
resource.messageproducer.class=org.uavstack.resources.common.messaging.MessageProducerResourceComponent
消息生产者组件主类
resource.messageproducer.properties=
feature属性配置,for example: key1=value1,key2=value2,...
resource.messageproducer.messagingnameserver=127.0.0.1:9876;127.0.0.1:9876;127.0.0.1:9876
消息中间件服务(RocketMQ)地址,多个以分号隔开
resource.messageproducer.messagingthreshold=30
消息压缩阈值,超过则压缩发送,单位kb
System Http Invoker http调用客户端
resource.httpinvoke.class=org.uavstack.resources.common.invoker.HttpInvokerResourceComponent
http调用组件类
resource.httpinvoke.properties=
feature属性配置,for example:key1=value1,key2=value2,...
resource.httpinvoke.http.client.maxperroute=20
客户端单路由最大连接数
resource.httpinvoke.http.client.maxtotal=100
客户端最大连接数
resource.httpinvoke.http.client.sotimeout=10000
客户端socket连接超时时间,单位ms
resource.httpinvoke.http.client.conntimeout=10000
客户端连接超时时间,单位ms
resource.httpinvoke.http.client.reqtimeout=10000
客户端请求超时时间,单位ms
nodeoperagent 节点控制feature
feature.nodeoperagent.loader=com.creditease.uav.agent.heartbeat.jar
节点控制feature主jar,用于classloader隔离
feature.nodeoperagent.enable=true
启用节点控制feature
feature.nodeoperagent.components=com.creditease.agent.feature.NodeOperAgent
节点控制feature主类
feature.nodeoperagent.http.port=10110
节点控制服务端口
notifyagent 报警feature
feature.notifyagent.loader=com.creditease.uav.notifymanager.jar
报警feature主jar,用于classloader隔离
feature.notifyagent.enable=true
启用报警feature
feature.notifyagent.components=com.creditease.agent.feature.GlobalNotificationAgent
报警feature主类
feature.notifyagent.properties=
报警feature属性配置,for example: key1=value1,key2=value2,...
feature.notifyagent.notifyhandlers=com.creditease.agent.feature.globalnotify.handlers.NotificationEventPublishHandler
报警feature主类
feature.notifyagent.expireTime=14400
报警事件过期时间,单位s
feature.notifyagent.frozenTime=300
报警事件压制时间,单位s
heartbeatclientagent 心跳客户端feature
feature.hbclientagent.loader=com.creditease.uav.agent.heartbeat.jar
心跳客户端feature主jar,用于classloader隔离
feature.hbclientagent.enable=true
启用心跳客户端feature
feature.hbclientagent.components=com.creditease.agent.feature.HeartBeatClientAgent
心跳客户端feature主类
feature.hbclientagent.properties=
心跳客户端feature属性配置,for example: key1=value1,key2=value2,...
feature.hbclientagent.hbhandlers=com.creditease.agent.feature.hbagent.handlers.HBClientDefaultHandler
心跳发送处理类
feature.hbclientagent.hbservers=127.0.0.1:8010
心跳服务器地址,此处发送给自己
feature.hbclientagent.interval=15000
心跳发送间隔,单位ms
功能feature配置
apphubmanager AppHub管理服务feature
feature.apphubmanager.loader=com.creditease.uav.healthmanager-1.0.jar
AppHub管理服务feature主jar,用于classloader隔离
feature.apphubmanager.enable=true
启用AppHub管理服务服务feature
feature.apphubmanager.components=com.creditease.uav.feature.AppHubManager
AppHub管理服务服务feature主类
feature.apphubmanager.appHubManagerHandlers=com.creditease.uav.feature.apphubmanager.http.handlers.AHDataStoreAppHandler,com.creditease.uav.feature.apphubmanager.http.handlers.AHDataStoreGroupHandler,com.creditease.uav.feature.apphubmanager.http.handlers.AHDataStoreFeedbackHandler
AppHub管理服务服务处理类
feature.apphubmanager.http.port=8031
AppHub管理服务服务端口
feature.apphubmanager.http.backlog=10
AppHub管理服务服务连接队列长度
feature.apphubmanager.http.core=20
AppHub管理服务服务核心线程数
feature.apphubmanager.http.max=100
AppHub管理服务服务最大线程数
feature.apphubmanager.http.bqsize=20
AppHub管理服务服务队列长度
feature.apphubmanager.ds.enable=true
启用AppHub管理服务服务数据源
feature.apphubmanager.ds.servers=127.0.0.1:27017
AppHub管理服务服务数据源(mongo)地址
feature.apphubmanager.ds.db=apphubDataStore
AppHub管理服务服务数据库名称
feature.apphubmanager.ds.power=apphubDataStore
AppHub管理服务服务数据库用户角色
feature.apphubmanager.ds.usr=
AppHub管理服务服务数据库用户名
feature.apphubmanager.ds.pwd=
AppHub管理服务服务数据库密码
notifycenter 预警中心feature
feature.notifycenter.loader=com.creditease.uav.notifycenter.jar
预警服务feature主jar,用于classloader隔离
feature.notifycenter.enable=true
是否启用预警服务feature
feature.notifycenter.components=com.creditease.agent.feature.NotificationCenter
预警服务feature主类
feature.notifycenter.properties=
feature属性配置,for example: key1=value1,key2=value2,...
feature.notifycenter.notifycenterhandlers=com.creditease.agent.feature.notifycenter.handlers.NCJudgementHandler
预警服务处理类
feature.notifycenter.inqw.coreSize=10
预警服务线程池核心线程数
feature.notifycenter.inqw.maxSize=50
预警服务线程池最大线程数
feature.notifycenter.inqw.bQueueSize=5
预警服务线程池队列长度
feature.notifycenter.inqw.keepAliveTimeout=30000
预警服务线程池空闲线程存活时长,单位:ms
feature.notifycenter.nc.notify.mail.provider=JavaMail
预警动作邮件发送方式
feature.notifycenter.nc.notify.mail.msgurl=http://127.0.0.1:8080/apphub/uavapp_godeye/notifymgr/desc.html
预警邮件中预警事件关联地址
feature.notifycenter.nc.notify.mail.uavurl=http://127.0.0.1:8080/apphub/
预警邮件中apphub关联地址
feature.notifycenter.nc.notify.mail.cemail.username=
cemail方式下邮件用户名
feature.notifycenter.nc.notify.mail.cemail.password=
cemail方式下邮件密码
feature.notifycenter.nc.notify.mail.cemail.brokerurl=tcp://127.0.0.1:61616
cemail方式下activemq队列的brokerurl
feature.notifycenter.nc.notify.mail.cemail.activeid=ACTIVE-20160623-00001
cemail方式下邮件发送的ACTIVEID
feature.notifycenter.nc.notify.mail.cemail.systemsign=1
cemail方式下邮件发送的systemsign
feature.notifycenter.nc.notify.mail.javamail.smtphost=
javaMail方式下smtp主机
feature.notifycenter.nc.notify.mail.javamail.smtpport=25
javaMail方式下smtp端口
feature.notifycenter.nc.notify.mail.javamail.smtpauth=true
javaMail方式下是否开启身份认证
feature.notifycenter.nc.notify.mail.javamail.username=
javaMail方式下邮件用户名
feature.notifycenter.nc.notify.mail.javamail.password=
javaMail方式下邮件密码
feature.notifycenter.nc.notify.sms.baseurl=http://127.0.0.1:8080/smsgateway/services/MessageService3.0/sms/
短信发送网关
feature.notifycenter.nc.notify.retry=3
报警动作触发次数
feature.notifycenter.nc.notify.ttl=4
报警事件TTL,单位hour
feature.notifycenter.nc.notify.frozenTime=3600
产生报警事件时间间隔,单位s
feature.notifycenter.nc.cache.addr=127.0.0.1:6379
报警事件存储(redis)地址
feature.notifycenter.nc.cache.concurrent.min=30
redis客户端线程池最小线程数
feature.notifycenter.nc.cache.concurrent.max=100
redis客户端线程池最大线程数
feature.notifycenter.nc.cache.concurrent.bqsize=5
redis客户端线程池队列长度
feature.notifycenter.nc.cache.concurrent.pwd=
redis密码
feature.notifycenter.nchttpHandler=com.creditease.agent.feature.notifycenter.handlers.NCHttpHandler
预警服务信息处理类
feature.notifycenter.http.port=9011
预警数据服务http端口
feature.notifycenter.http.backlog=10
预警数据服务连接队列长度
feature.notifycenter.http.core=30
预警数据查询服务核心线程数
feature.notifycenter.http.max=150
预警数据查询服务最大线程数
feature.notifycenter.http.bqsize=5
预警数据服务队列长度
feature.notifycenter.push.services=
报警推送服务名
HealthManager HM服务feature
feature.healthmanager.loader=com.creditease.uav.healthmanager-1.0.jar
HM服务feature主jar,用于classloader隔离
feature.healthmanager.enable=true
启用HM服务feature
feature.healthmanager.components=com.creditease.uav.feature.HealthManager
HM服务feature主类
feature.healthmanager.properties=
HM服务属性配置,for example: key1=value1,key2=value2,...
feature.healthmanager.messagingnameserver=127.0.0.1:9876;127.0.0.1:9876;127.0.0.1:9876
HM信息消息队列MQ地址,可多个,用','隔开
feature.healthmanager.MT_Monitor.consumethreadmax=10
实时数据消费最大线程数
feature.healthmanager.MT_Notify.consumethreadmax=10
预警数据消费最大线程数
feature.healthmanager.MT_Profile.consumethreadmax=10
画像数据消费最大线程数
feature.healthmanager.MT_Node.consumethreadmax=10
应用容数据消费最大线程数
feature.healthmanager.MT_Monitor.consumestopinterval=0
实时数据消费间隔时间,单位ms
feature.healthmanager.MT_Notify.consumestopinterval=0
预警数据消费间隔时间,单位ms
feature.healthmanager.MT_Profile.consumestopinterval=0
画像数据消费间隔时间,单位ms
feature.healthmanager.MT_Node.consumestopinterval=0
应用容器数据消费间隔时间,单位ms
feature.healthmanager.MT_Monitor.enable=false
是否消费实时数据
feature.healthmanager.MT_Notify.enable=false
是否消费预警数据
feature.healthmanager.MT_Profile.enable=false
是否消费画像数据
feature.healthmanager.MT_Node.enable=false
是否消费应用容器数据
feature.healthmanager.healthMangerHandlers=com.creditease.uav.feature.healthmanager.http.handlers.HMDataStoreQueryHandler,com.creditease.uav.feature.healthmanager.http.handlers.HMCacheQueryHandler
HM数据处理类
feature.healthmanager.http.port=8041
HM数据查询端口
feature.healthmanager.http.backlog=20
HM数据查询服务连接队列长度
feature.healthmanager.http.core=20
HM数据查询服务核心线程数
feature.healthmanager.http.max=200
HM数据查询服务最大线程数
feature.healthmanager.http.bqsize=5
HM数据查询服务队列长度
feature.healthmanager.lifekeeper.enable=false
是否开启心跳判活
feature.healthmanager.lifekeeper.interval=60000
心跳判活间隔时间,单位ms
feature.healthmanager.store.addr=127.0.0.1:6379
HM数据信息存储(redis)地址
feature.healthmanager.store.concurrent.min=30
redis客户端线程池最小线程数
feature.healthmanager.store.concurrent.max=300
redis客户端线程池最大线程数
feature.healthmanager.store.concurrent.bqsize=5
redis客户端线程池队列长度
feature.healthmanager.store.concurrent.pwd=
redis密码
feature.DBSource.MongoDB4Profile
feature.healthmanager.MT_Profile.ds.enable=true
是否启用存储画像数据的数据源(mongo)
feature.healthmanager.MT_Profile.ds.servers=127.0.0.1:27017
画像数据的数据源(mongo)地址
feature.healthmanager.MT_Profile.ds.db=profileDataStore
画像数据的数据库名称
feature.healthmanager.MT_Profile.ds.power=profileDataStore
画像数据的数据库用户角色
feature.healthmanager.MT_Profile.ds.usr=
画像数据的数据库用户名
feature.healthmanager.MT_Profile.ds.pwd=
画像数据的数据库密码
feature.DBSource.MongoDB4Notification
feature.healthmanager.MT_Notify.ds.enable=true
是否启用存储预警数据的数据源(mongo)
feature.healthmanager.MT_Notify.ds.servers=127.0.0.1:27017
预警数据的数据源(mongo)地址
feature.healthmanager.MT_Notify.ds.db=notifyDataStore
预警数据的数据库名称
feature.healthmanager.MT_Notify.ds.power=notifyDataStore
预警数据的数据库用户角色
feature.healthmanager.MT_Notify.ds.usr=
预警数据的数据库用户名
feature.healthmanager.MT_Notify.ds.pwd=
预警数据的数据库密码
feature.DBSource.OpenTSDB4Monitor
feature.healthmanager.MT_Monitor.ds.enable=true
是否启用存储实时数据的数据源(opentsdb)
feature.healthmanager.MT_Monitor.ds.servers=127.0.0.1:4243,127.0.0.1:4243
实时数据的数据源(opentsdb)地址
feature.healthmanager.MT_Monitor.ds.db=monitorDataStore
实时数据的数据库名称
feature.healthmanager.MT_Monitor.ds.maxPerRoute=50
实时数据的数据库客户端单路由最大连接数
feature.healthmanager.MT_Monitor.ds.maxRoute=50
实时数据的数据库客户端最大连接数
feature.healthmanager.MT_Monitor.ds.soTimeout=10000
实时数据的数据库客户端socket连接超时时间,单位ms
feature.healthmanager.MT_Monitor.ds.connTimeout=5000
实时数据的数据库客户端连接超时时间,单位ms
feature.healthmanager.MT_Monitor.ds.reqTimeout=5000
实时数据的数据库客户端请求超时时间,单位ms
feature.healthmanager.MT_Monitor.ds.batchsize=50
实时数据的数据库批量提交阈值
feature.healthmanager.MT_Monitor.ds.retry=3
实时数据的数据库提交重试次数
feature.healthmanager.MT_Monitor.ds.expire=30000
实时数据的数据库提交超时时间,单位ms
feature.healthmanager.MT_Monitor.ds.cachetime=5
实时数据缓存时间,单位min
feature.DBSource.OpenTSDB4Node
feature.healthmanager.MT_Node.ds.enable=true
是否启用存储应用容器数据的数据源(opentsdb)
feature.healthmanager.MT_Node.ds.servers=127.0.0.1:4243,127.0.0.1:4243
应用容器数据的数据源(opentsdb)地址
feature.healthmanager.MT_Node.ds.db=nodeDataStore
应用容器数据的数据库名称
feature.healthmanager.MT_Node.ds.maxPerRoute=10
应用容器数据的数据库客户端单路由最大连接数
feature.healthmanager.MT_Node.ds.maxRoute=50
应用容器数据的数据库客户端最大连接数
feature.healthmanager.MT_Node.ds.soTimeout=10000
应用容器数据的数据库客户端socket连接超时时间,单位ms
feature.healthmanager.MT_Node.ds.connTimeout=5000
应用容器数据的数据库客户端连接超时时间,单位ms
feature.healthmanager.MT_Node.ds.reqTimeout=3000
应用容器数据的数据库客户端请求超时时间,单位ms
feature.healthmanager.MT_Node.ds.retry=3
应用容器数据的数据库提交重试次数
feature.healthmanager.MT_Node.ds.batchsize=50
应用容器数据的数据库批量提交阈值
feature.healthmanager.MT_Node.ds.expire=30000
应用容器数据的数据库提交超时时间,单位ms
heartbeatserveragent 心跳服务feature
feature.hbserveragent.loader=com.creditease.uav.agent.heartbeat.jar
心跳客户端feature主jar,用于classloader隔离
feature.hbserveragent.enable=true
启用心跳服务feature
feature.hbserveragent.components=com.creditease.agent.feature.HeartBeatServerAgent
心跳服务feature主类
feature.hbserveragent.properties=
心跳客户端feature属性配置,for example: key1=value1,key2=value2,...
feature.hbserveragent.hbhandlers=com.creditease.agent.feature.hbagent.handlers.HBServerDefaultHandler
心跳服务数据处理类
feature.hbserveragent.http.port=8010
心跳服务数据接收端口
feature.hbserveragent.hbqueryhandlers=com.creditease.agent.feature.hbagent.handlers.HBQueryHandler
心跳查询服务处理类
feature.hbserveragent.http.qport=8020
心跳数据查询端口
feature.hbserveragent.http.backlog=10
心跳http服务连接队列长度
feature.hbserveragent.http.core=10
心跳http服务核心线程数
feature.hbserveragent.http.max=50
心跳http服务最大线程数
feature.hbserveragent.http.bqsize=10
心跳http服务队列长度
feature.hbserveragent.store.addr=127.0.0.1:6379
心跳信息存储(redis)地址
feature.hbserveragent.store.concurrent.min=10
redis客户端线程池最小线程数
feature.hbserveragent.store.concurrent.max=20
redis客户端线程池最大线程数
feature.hbserveragent.store.concurrent.bqsize=10
redis客户端线程池队列长度
feature.hbserveragent.store.concurrent.pwd=
redis密码
feature.hbserveragent.ismaster=true
是否是心跳服务master节点,false则为级联节点,只负责传递信息,不做处理。
feature.hbserveragent.lifekeeper.enable=true
是否开启心跳判活
feature.hbserveragent.lifekeeper.interval=15000
心跳判活间隔时间,单位ms
feature.hbserveragent.lifekeeper.locktimeout=60000
心跳判活服务分布式锁过期时间
feature.hbserveragent.lifekeeper.nodetimeout=20000
心跳判活服务节点信息过期时间
feature.hbserveragent.ntp.enable=false
是否开启ntp时间同步
runtimenotify 实时预警feature
feature.runtimenotify.loader=com.creditease.uav.healthmanager-1.0.jar
实时预警feature主jar,用于classloader隔离
feature.runtimenotify.enable=true
启用实时预警feature
feature.runtimenotify.components=com.creditease.uav.feature.RuntimeNotifyCatcher
实时预警feature主类
feature.runtimenotify.rnhandlers=com.creditease.uav.feature.runtimenotify.RuntimeNotifyDataHandler
实时预警信息处理类
feature.runtimenotify.messagingnameserver=127.0.0.1:9876;127.0.0.1:9876;127.0.0.1:9876
预警信息消息队列MQ地址,可多个,用';'隔开
feature.runtimenotify.MT_Runtime.consumethreadmax=30
消费最大线程数
feature.runtimenotify.MT_Runtime.consumestopinterval=0
消费间隔时间,单位ms
feature.runtimenotify.MT_Runtime.enable=false
是否消费主题为MT_Runtime的信息
feature.runtimenotify.cm.server=127.0.0.1:6379
预警缓存(redis)地址
feature.runtimenotify.cm.minsize=5
redis线程池最小线程数
feature.runtimenotify.cm.maxsize=10
redis线程池最大线程数
feature.runtimenotify.cm.qsize=20
redis线程池队列长度
feature.runtimenotify.storecm.server=127.0.0.1:6379
预警分片数据缓存(redis)地址
feature.runtimenotify.storecm.minsize=30
redis线程池最小线程数
feature.runtimenotify.storecm.maxsize=60
redis线程池最大线程数
feature.runtimenotify.storecm.qsize=20
redis线程池队列长度
feature.runtimenotify.qworker.coresize=10
预警处理线程池核心线程数
feature.runtimenotify.qworker.maxsize=30
预警处理线程池最大线程数
feature.runtimenotify.qworker.bqsize=50
预警处理线程池队列长度
feature.runtimenotify.qworker.keepalivetimeout=60000
预警进程死亡判断过期时间,单位ms
feature.runtimenotify.nodeinfoprocess.exchange=false
节点心跳数据是否exchange到实时预警模块
feature.runtimenotify.nodeinfotimer.period=15000
节点心跳数据接收频率
feature.runtimenotify.rnswhandlers=com.creditease.uav.feature.runtimenotify.http.RuntimeNotifyServerHandler
实时预警http服务处理类
feature.runtimenotify.http.port=9001
实时预警http服务端口
feature.runtimenotify.http.backlog=10
实时预警http服务连接队列长度
feature.runtimenotify.http.core=20
实时预警http服务核心线程数
feature.runtimenotify.http.max=100
实时预警http服务最大线程数
feature.runtimenotify.http.bqsize=5
实时预警http服务队列长度
feature.runtimenotify.crash.timeout=300000
预警进程死亡判断过期时间,单位ms
feature.runtimenotify.strategy.interval=60000
预警策略更新频率,单位ms
feature.runtimenotify.slice.config={"N":{"timerange":"600000","expire":"60000"},"M":{"timerange":"600000","expire":"60000"},"L":{"timerange":"600000","expire":"0"}}
预警信息分片数据保存时间长度以及过期时间