Profile, Notification and Heartbeat Server
Configuration file hm_test_pnhbserver.properties. This server integrates the heartbeat server, the profile and notification server, and the AppHub Manager, thus can be applied into the deployment of the small-scale test environment.
Log Configuration
log.level=INFO
INFO, ERR, WARNING, DEBUG, FINE, FINER and ALL
log.debug=false
Enable debug logging or not
log.fsize=10
Size of single output block of logs
log.collectEnable=false
Collect logs or not
log.collectMatch=
Regex match to collect specified logs
meta.datacenterid=1
meta.nodetype=\u5FC3\u8DF3\u670D\u52A1
Node name and UTF8 code
Basic Feature Configuration
messageproducer: Message Producer
resource.messageproducer.class=org.uavstack.resources.common.messaging.MessageProducerResourceComponent
Main component class of message producer
resource.messageproducer.properties=
Property configuration, for example: key1=value1,key2=value2,...
resource.messageproducer.messagingnameserver=127.0.0.1:9876;127.0.0.1:9876;127.0.0.1:9876
Address of the message middleware server RocketMQ. Separate multiple addresses with “;”
resource.messageproducer.messagingthreshold=30
Threshold value for message compression. Send compressed messages when the message size (in kb) exceeds the threshold value
System Http invoker: Http Client Invocation
resource.httpinvoke.class=org.uavstack.resources.common.invoker.HttpInvokerResourceComponent
Component class of Http invocation
resource.httpinvoke.properties=
Property configuration, for example: key1=value1,key2=value2,...
resource.httpinvoke.http.client.maxperroute=20
Maximum client connection per route
resource.httpinvoke.http.client.maxtotal=100
Maximum client connection
resource.httpinvoke.http.client.sotimeout=10000
Timeout period of the client socket connection, in ms
resource.httpinvoke.http.client.conntimeout=10000
Timeout period of the client connection, in ms
resource.httpinvoke.http.client.reqtimeout=10000
Timeout period of the client request, in ms
nodeoperagent: Node Control Feature
feature.nodeoperagent.loader=com.creditease.uav.agent.heartbeat.jar
Main jar of the node control feature for classloader isolation
feature.nodeoperagent.enable=true
Enable the node control feature
feature.nodeoperagent.components=com.creditease.agent.feature.NodeOperAgent
Main class of the node control feature
feature.nodeoperagent.http.port=10110
Port of node control server
notifyagent: Notification Feature
feature.notifyagent.loader=com.creditease.uav.notifymanager.jar
Main jar of the node notification feature for classloader isolation
feature.notifyagent.enable=true
Enable the notification feature
feature.notifyagent.components=com.creditease.agent.feature.GlobalNotificationAgent
Main class of the notification feature
feature.notifyagent.properties=
Property configuration, for example: key1=value1,key2=value2,...
feature.notifyagent.notifyhandlers=com.creditease.agent.feature.globalnotify.handlers.NotificationEventPublishHandler
Main class of the notification feature
feature.notifyagent.expireTime=14400
Expiration time of the notification event, in s
feature.notifyagent.frozenTime=300
Frozen time of the notification event, in s
heartbeatclientagent: Heartbeat Client Feature
feature.hbclientagent.loader=com.creditease.uav.agent.heartbeat.jar
Main jar of the heartbeat client feature for classloader isolation
feature.hbclientagent.enable=true
Enable the heartbeat client feature
feature.hbclientagent.components=com.creditease.agent.feature.HeartBeatClientAgent
Main class of the heartbeat client feature
feature.hbclientagent.properties=
Property configuration, for example: key1=value1,key2=value2,...
feature.hbclientagent.hbhandlers=com.creditease.agent.feature.hbagent.handlers.HBClientDefaultHandler
Handler class of heartbeat delivery
feature.hbclientagent.hbservers=127.0.0.1:8010
Heartbeat server address
feature.hbclientagent.interval=15000
Heartbeat delivery interval, in ms
Functional Feature Configuration
apphubmanager: AppHub Manager Feature
feature.apphubmanager.loader=com.creditease.uav.healthmanager-1.0.jar
Main jar of the AppHub Manager feature for classloader isolation
feature.apphubmanager.enable=true
Enable the AppHub Manager feature
feature.apphubmanager.components=com.creditease.uav.feature.AppHubManager
Main class of the AppHub Manager 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
Handler class of the AppHub Manager
feature.apphubmanager.http.port=8031
Handler class of the AppHub Manager
feature.apphubmanager.http.backlog=10
Length of the connection queue of the AppHub Manager
feature.apphubmanager.http.core=20
Core thread count of the AppHub Manager
feature.apphubmanager.http.max=100
Maximum thread count of the AppHub Manager
feature.apphubmanager.http.bqsize=20
Queue length of the AppHub Manager
feature.apphubmanager.ds.enable=true
Enable the data source of AppHub Manager
feature.apphubmanager.ds.servers=127.0.0.1:27017
Address of the data source (Mongo) of AppHub Manager
feature.apphubmanager.ds.db=apphubDataStore
Name of the database of AppHub Manager
feature.apphubmanager.ds.power=apphubDataStore
Role of users of the database of AppHub Manager
feature.apphubmanager.ds.usr=
Username of the database of AppHub Manager
feature.apphubmanager.ds.pwd=
Password of the database of AppHub Manager
notifycenter: Notification Center Feature
feature.notifycenter.loader=com.creditease.uav.notifycenter.jar
Main jar of the notification center feature for classloader isolation
feature.notifycenter.enable=true
Enable the notification center feature or not
feature.notifycenter.components=com.creditease.agent.feature.NotificationCenter
Main class of the notification center feature
feature.notifycenter.properties=
Property configuration, for example: key1=value1,key2=value2,...
feature.notifycenter.notifycenterhandlers=com.creditease.agent.feature.notifycenter.handlers.NCJudgementHandler
Handler class of the notification center
feature.notifycenter.inqw.coreSize=10
Core thread count in the thread pool of the notification center
feature.notifycenter.inqw.maxSize=50
Maximum thread count in the thread pool of the notification center
feature.notifycenter.inqw.bQueueSize=5
Queue length in the thread pool of the notification center
feature.notifycenter.inqw.keepAliveTimeout=30000
Survival time of the idle thread in the thread pool of the notification center, in ms
feature.notifycenter.nc.notify.mail.provider=JavaMail
Mail delivery mode of notification action
feature.notifycenter.nc.notify.mail.msgurl=http://127.0.0.1:8080/apphub/uavapp_godeye/notifymgr/desc.html
Address associated with the notification event in the notification mail
feature.notifycenter.nc.notify.mail.uavurl=http://127.0.0.1:8080/apphub/
Address associated with AppHub in the notification mail
feature.notifycenter.nc.notify.mail.cemail.username=
Username of the mail under the cemail mode
feature.notifycenter.nc.notify.mail.cemail.password=
Password of the mail under the cemail mode
feature.notifycenter.nc.notify.mail.cemail.brokerurl=tcp://127.0.0.1:61616
Brokerurl of the activemq queue under the cemail mode
feature.notifycenter.nc.notify.mail.cemail.activeid=ACTIVE-20160623-00001
ACTIVEID sent by mail under the cemail mode
feature.notifycenter.nc.notify.mail.cemail.systemsign=1
Systemsign sent by mail under the cemail mode
feature.notifycenter.nc.notify.mail.javamail.smtphost=
SMTP host under the javaMail mode
feature.notifycenter.nc.notify.mail.javamail.smtpport=25
SMTP port under the javaMail mode
feature.notifycenter.nc.notify.mail.javamail.smtpauth=true
Enable identity authentication or not under the javaMail mode
feature.notifycenter.nc.notify.mail.javamail.username=
Username of the mail under the javaMail mode
feature.notifycenter.nc.notify.mail.javamail.password=
Password of the mail under the javaMail mode
feature.notifycenter.nc.notify.sms.baseurl=http://127.0.0.1:8080/smsgateway/services/MessageService3.0/sms/
SMS delivery gateway
feature.notifycenter.nc.notify.retry=3
Frequency that notification actions are triggered
feature.notifycenter.nc.notify.ttl=4
TTL of notification events, in hour
feature.notifycenter.nc.notify.frozenTime=3600
Frozen time of the notification event, in s
feature.notifycenter.nc.cache.addr=127.0.0.1:6379
Storage address (Redis) of the notification event
feature.notifycenter.nc.cache.concurrent.min=30
Minimum thread count in the thread pool of the Redis client
feature.notifycenter.nc.cache.concurrent.max=100
Maximum thread count in the thread pool of the Redis client
feature.notifycenter.nc.cache.concurrent.bqsize=5
Queue length in the thread pool of the Redis client
feature.notifycenter.nc.cache.concurrent.pwd=
Redis password
feature.notifycenter.nchttpHandler=com.creditease.agent.feature.notifycenter.handlers.NCHttpHandler
Handler class of the notification server
feature.notifycenter.http.port=9011
Http port of the notification data server
feature.notifycenter.http.backlog=10
Length of the connection queue of the notification data server
feature.notifycenter.http.core=30
Core thread count of notification data query server
feature.notifycenter.http.max=150
Maximum thread count of notification data query server
feature.notifycenter.http.bqsize=5
Queue length of the notification data query server
feature.notifycenter.push.services=
Name of the notification push server
HealthManager: Health Manager Feature
feature.healthmanager.loader=com.creditease.uav.healthmanager-1.0.jar
Main jar of the HM feature for classloader isolation
feature.healthmanager.enable=true
Enable the Health Manager feature
feature.healthmanager.components=com.creditease.uav.feature.HealthManager
Main class of the Health Manager feature
feature.healthmanager.properties=
Property configuration, for example: key1=value1,key2=value2,...
feature.healthmanager.messagingnameserver=127.0.0.1:9876;127.0.0.1:9876;127.0.0.1:9876
Address of the HM message queue. Separate multiple addresses with “,”
feature.healthmanager.MT_Monitor.consumethreadmax=10
Maximum thread count consumed by the monitoring data
feature.healthmanager.MT_Notify.consumethreadmax=10
Maximum thread count consumed by the notification data
feature.healthmanager.MT_Profile.consumethreadmax=10
Maximum thread count consumed by the profile data
feature.healthmanager.MT_Node.consumethreadmax=10
Maximum thread count consumed by the application container data
feature.healthmanager.MT_Monitor.consumestopinterval=0
Consumption interval of the monitoring data, in ms
feature.healthmanager.MT_Notify.consumestopinterval=0
Consumption interval of the notification data, in ms
feature.healthmanager.MT_Profile.consumestopinterval=0
Consumption interval of the profile data, in ms
feature.healthmanager.MT_Node.consumestopinterval=0
Consumption interval of the application container data, in ms
feature.healthmanager.MT_Monitor.enable=false
Consume the monitoring data or not
feature.healthmanager.MT_Notify.enable=false
Consume the notification data or not
feature.healthmanager.MT_Profile.enable=false
Consume the profile data or not
feature.healthmanager.MT_Node.enable=false
Consume the application container data or not
feature.healthmanager.healthMangerHandlers=com.creditease.uav.feature.healthmanager.http.handlers.HMDataStoreQueryHandler,com.creditease.uav.feature.healthmanager.http.handlers.HMCacheQueryHandler
Handler class of HM data
feature.healthmanager.http.port=8041
Port for HM data query
feature.healthmanager.http.backlog=20
Length of the connection queue of the HM data query server
feature.healthmanager.http.core=20
Core thread count of the HM data query server
feature.healthmanager.http.max=200
Maximum thread count of the HM data query server
feature.healthmanager.http.bqsize=5
Queue length of the HM data query server
feature.healthmanager.lifekeeper.enable=false
Enable the heartbeat lifekeeper or not
feature.healthmanager.lifekeeper.interval=60000
Time interval of heartbeat lifekeeper, in ms
feature.healthmanager.store.addr=127.0.0.1:6379
Storage address (Redis) of HM information
feature.healthmanager.store.concurrent.min=30
Minimum thread count in the thread pool of the Redis client
feature.healthmanager.store.concurrent.max=300
Maximum thread count in the thread pool of the Redis client
feature.healthmanager.store.concurrent.bqsize=5
Queue length in the thread pool of the Redis client
feature.healthmanager.store.concurrent.pwd=
Redis password
feature.DBSource.MongoDB4Profile
feature.healthmanager.MT_Profile.ds.enable=true
Enable the data source (Mongo) that stores the profile data or not
feature.healthmanager.MT_Profile.ds.servers=127.0.0.1:27017
Address of the data source (Mongo) that stores the profile data
feature.healthmanager.MT_Profile.ds.db=profileDataStore
Name of the database (Mongo) that stores the profile data
feature.healthmanager.MT_Profile.ds.power=profileDataStore
Role of users of the database that stores the profile data
feature.healthmanager.MT_Profile.ds.usr=
Username of the database that stores the profile data
feature.healthmanager.MT_Profile.ds.pwd=
Password of the database that stores the profile data
feature.DBSource.MongoDB4Notification
feature.healthmanager.MT_Notify.ds.enable=true
Enable the data source (Mongo) that stores the notification data or not
feature.healthmanager.MT_Notify.ds.servers=127.0.0.1:27017
Address of the data source (Mongo) that stores the notification data
feature.healthmanager.MT_Notify.ds.db=notifyDataStore
Name of the database that stores the notification data
feature.healthmanager.MT_Notify.ds.power=notifyDataStore
Role of users of the database that stores the notification data
feature.healthmanager.MT_Notify.ds.usr=
Username of the database that stores the notification data
feature.healthmanager.MT_Notify.ds.pwd=
Password of the database that stores the notification data
feature.DBSource.OpenTSDB4Monitor
feature.healthmanager.MT_Monitor.ds.enable=true
Enable the data source (OpenTSDB) that stores the monitoring data or not
feature.healthmanager.MT_Monitor.ds.servers=127.0.0.1:4243,127.0.0.1:4243
Address of the data source (OpenTSDB) that stores the monitoring data
feature.healthmanager.MT_Monitor.ds.db=monitorDataStore
Name of the database that stores the monitoring data
feature.healthmanager.MT_Monitor.ds.maxPerRoute=50
Maximum client connection per route of the database that stores the monitoring data
feature.healthmanager.MT_Monitor.ds.maxRoute=50
Maximum client connection of the database that stores the monitoring data
feature.healthmanager.MT_Monitor.ds.soTimeout=10000
Timeout period of the client socket connection of the database that stores the monitoring data, in ms
feature.healthmanager.MT_Monitor.ds.connTimeout=5000
Timeout period of the client connection of the database that stores the monitoring data, in ms
feature.healthmanager.MT_Monitor.ds.reqTimeout=5000
Timeout period of the client request of the database that stores the monitoring data, in ms
feature.healthmanager.MT_Monitor.ds.batchsize=50
Threshold value for batch submission of the database that stores the monitoring data
feature.healthmanager.MT_Monitor.ds.retry=3
Number of submission retries of the database that stores the monitoring data
feature.healthmanager.MT_Monitor.ds.expire=30000
Timeout period of submission of the database that stores the monitoring data, in ms
feature.healthmanager.MT_Monitor.ds.cachetime=5
Caching time of the monitoring data, in ms
feature.DBSource.OpenTSDB4Node
feature.healthmanager.MT_Node.ds.enable=true
Enable the data source (OpenTSDB) that stores the application container data or not
feature.healthmanager.MT_Node.ds.servers=127.0.0.1:4243,127.0.0.1:4243
Address of the data source (OpenTSDB) that stores the node data
feature.healthmanager.MT_Node.ds.db=nodeDataStore
Name of the database that stores the node data
feature.healthmanager.MT_Node.ds.maxPerRoute=10
Maximum client connection per route of the database that stores the node data
feature.healthmanager.MT_Node.ds.maxRoute=50
Maximum client connection of the database that stores the node data
feature.healthmanager.MT_Node.ds.soTimeout=10000
Timeout period of the client socket connection of the database that stores the node data, in ms
feature.healthmanager.MT_Node.ds.connTimeout=5000
Timeout period of the client connection of the database that stores the node data, in ms
feature.healthmanager.MT_Node.ds.reqTimeout=3000
Timeout period of the client request of the database that stores the node data, in ms
feature.healthmanager.MT_Node.ds.retry=3
Number of submission retries of the database that stores the node data
feature.healthmanager.MT_Node.ds.batchsize=50
Threshold value for batch submission of the database that stores the node data
feature.healthmanager.MT_Node.ds.expire=30000
Timeout period of submission of the database that stores the node data, in ms
heartbeatserveragent: Heartbeat Server Feature
feature.hbserveragent.loader=com.creditease.uav.agent.heartbeat.jar
Main jar of the heartbeat client feature for classloader isolation
feature.hbserveragent.enable=true
Enable the heartbeat server feature
feature.hbserveragent.components=com.creditease.agent.feature.HeartBeatServerAgent
Main class of the heartbeat server feature
feature.hbserveragent.properties=
Property configuration, for example: key1=value1,key2=value2,...
feature.hbserveragent.hbhandlers=com.creditease.agent.feature.hbagent.handlers.HBServerDefaultHandler
Handler class of the heartbeat server data
feature.hbserveragent.http.port=8010
Port that receives the heartbeat server data
feature.hbserveragent.hbqueryhandlers=com.creditease.agent.feature.hbagent.handlers.HBQueryHandler
Handler class of the heartbeat query server
feature.hbserveragent.http.qport=8020
Port for heartbeat data query
feature.hbserveragent.http.backlog=10
Length of the connection queue of the heartbeat Http service
feature.hbserveragent.http.core=10
Core thread count of heartbeat Http server
feature.hbserveragent.http.max=50
Maximum thread count of heartbeat Http server
feature.hbserveragent.http.bqsize=10
Length of the server queue of the heartbeat Http server
feature.hbserveragent.store.addr=127.0.0.1:6379
Storage address (Redis) of the heartbeat information
feature.hbserveragent.store.concurrent.min=10
Minimum thread count in the thread pool of the Redis client
feature.hbserveragent.store.concurrent.max=20
Maximum thread count in the thread pool of the Redis client
feature.hbserveragent.store.concurrent.bqsize=10
Queue length in the thread pool of the Redis client
feature.hbserveragent.store.concurrent.pwd=
Redis password
feature.hbserveragent.ismaster=true
Master node of the heartbeast server or not. If false, then the cascading node is only responsible for information transmission.
feature.hbserveragent.lifekeeper.enable=true
Enable the heartbeat lifekeeper or not
feature.hbserveragent.lifekeeper.interval=15000
Time interval of heartbeat lifekeeper, in ms
feature.hbserveragent.lifekeeper.locktimeout=60000
Expiration time of the distributed lock of the heartbeat lifekeeper
feature.hbserveragent.lifekeeper.nodetimeout=20000
Expiration time of the node information of the heartbeat lifekeeper
feature.hbserveragent.ntp.enable=false
Enable NTP time synchronization or not
runtimenotify: Runtime Notification Feature
feature.runtimenotify.loader=com.creditease.uav.healthmanager-1.0.jar
Main jar of the runtime notification feature for classloader isolation
feature.runtimenotify.enable=true
Enable the runtime notification feature
feature.runtimenotify.components=com.creditease.uav.feature.RuntimeNotifyCatcher
Main class of the runtime notification feature
feature.runtimenotify.rnhandlers=com.creditease.uav.feature.runtimenotify.RuntimeNotifyDataHandler
Handler class of the runtime notification server
feature.runtimenotify.messagingnameserver=127.0.0.1:9876;127.0.0.1:9876;127.0.0.1:9876
Address of the message queue of the notification information. Separate multiple addresses with “;”
feature.runtimenotify.MT_Runtime.consumethreadmax=30
Maximum thread count consumed
feature.runtimenotify.MT_Runtime.consumestopinterval=0
Consumption interval, in ms
feature.runtimenotify.MT_Runtime.enable=false
Consume MT_Runtime information or not
feature.runtimenotify.cm.server=127.0.0.1:6379
Address of the notification cache (Redis)
feature.runtimenotify.cm.minsize=5
Minimum thread count in the thread pool of the Redis client
feature.runtimenotify.cm.maxsize=10
Maximum thread count in the thread pool of the Redis client
feature.runtimenotify.cm.qsize=20
Queue length in the thread pool of the Redis client
feature.runtimenotify.storecm.server=127.0.0.1:6379
Address of the sliced notification cache (Redis)
feature.runtimenotify.storecm.minsize=30
Minimum thread count in the thread pool of the Redis client
feature.runtimenotify.storecm.maxsize=60
Maximum thread count in the thread pool of the Redis client
feature.runtimenotify.storecm.qsize=20
Queue length in the thread pool of the Redis client
feature.runtimenotify.qworker.coresize=10
Core thread count processed in the notification thread pool
feature.runtimenotify.qworker.maxsize=30
Maximum thread count processed in the notification thread pool
feature.runtimenotify.qworker.bqsize=50
Queue length processed in the notification thread pool
feature.runtimenotify.qworker.keepalivetimeout=60000
Expiration time of the lifekeeper of the notification process, in ms
feature.runtimenotify.nodeinfoprocess.exchange=false
Exchange the node heartbeat data into the runtime notification module or not
feature.runtimenotify.nodeinfotimer.period=15000
Receiving frequency of the node heartbeat data
feature.runtimenotify.rnswhandlers=com.creditease.uav.feature.runtimenotify.http.RuntimeNotifyServerHandler
Handler class of the Http server of the runtime notification
feature.runtimenotify.http.port=9001
Port of the Http server of the runtime notification
feature.runtimenotify.http.backlog=10
Length of the connection queue of the Http server of the runtime notification
feature.runtimenotify.http.core=20
Core thread count of the Http server of the runtime notification
feature.runtimenotify.http.max=100
Maximum thread count of the Http server of the runtime notification
feature.runtimenotify.http.bqsize=5
Queue length of the Http server of the runtime notification
feature.runtimenotify.crash.timeout=300000
Expiration time of the process death notification, in ms
feature.runtimenotify.strategy.interval=60000
Upgrade frequency of the notification strategy, in ms
feature.runtimenotify.slice.config={"N": {"timerange":" 600000","expire":" 60000"},"M": {"timerange":" 600000","expire":" 60000"},"L": {"timerange":" 600000","expire":" 0 "}}
Storage period and expiration time of sliced notification data