Configuration
There are local environment configuration, test environment configuration (with "test") and productions environment configuration (with "pro") for HM, AppHub and MA. The port information of the congifuration files in the same environment is consistent. Modify the ports of MA and AppHub accordingly if the port of HM is changed during employment.
HM Configuration
The configuration file of HM is under the directory uavhm/config. Each feature/resource is with independent configuration snippet.
Common Configuration Items
meta.nodetype
Name of service node
resource.*.class
Component class of resources (please refer to agent.properties)
feature.*.loader
jar packages to be loaded by the feature class loader. Fill in the the names of the jar packages to be loaded and separate multiple names with "," (please refer to agent.properties). Fill in “Default” to use the default class loader.
feature.*.enable
Enable this feature or not
feature.*.components
Component classes that compose a feature
*.http.enable
Enable this Http server or not
*.XXXHandlers
Handler class of Http requests. Separate multiple classes with ‘,’
*.http.port
Port of Http server
*.min(core)/max/bqsize
Core thread count, maximum thread count and size of the buffer queue in the thread pool
Basic Feature/Resource
messageproducer
Support the message queue producer
resource.messageproducer.messagingnameserver
Address of RocketMQ Nameserver. Separate multiple addresses with “;”
resource.messageproducer.messagingthreshold
Compression threshold, in kb. Compress messages before delivery if the message size is above the threshold
httpinvoke
Support service discovery and invocation
resource.httpinvoke.http.client.maxperroute
Maximum connection of Http invocation per route
resource.httpinvoke.http.client.maxtotal
Maximum connection of Http invocation
resource.httpinvoke.http.client.sotimeout
Socket connection timeout
resource.httpinvoke.http.client.conntimeout
Http connection timeout
resource.httpinvoke.http.client.reqtimeout
Http request timeout
nodeoperagent
Support node control
feature.nodeoperagent.http.port=10140
Receiving port of node control messages
notifyagent
Support notification
feature.notifyagent.notifyhandlers
Handler class of notifications
feature.notifyagent.expireTime
Expiration time of the notification event, in s
feature.notifyagent.frozenTime
Frozen time (in s) of notification messages, indicating that the same notification shall not be repeatedly dealt with within the frozen time
hbclientagent
Support delivery of the node hearbeat information
feature.hbclientagent.hbhandlers
Handler class of the heartbeat information
feature.hbclientagent.hbservers`
Address of the heartbeat server. Separate multiple addresses with ‘,’
feature.hbclientagent.interval
Heartbeat delivery interval, in ms
Functional Feature
healthmanager
Support to receive and process the monitoring data and the profile data, to store the heartbeat data, and to receive and forward the notification data
feature.*.consumethreadmax
Maximum thread count consumed by messages
feature.*.consumestopinterval
Message consumption interval
feature.*.enable
Consume this topic message or not
feature.healthmanager.*.ds.enable
Store this type of messages or not
feature.healthmanager.*.ds.servers`
Message storage address. Store the monitoring data (MT_Monitor) and the node data (MT_Node) in OpenTSDB; store the profile data (MT_Profile) and the notification data(MT_Notify) in MongoDB
feature.healthmanager.*.ds.db/usr/pwd
Database name/Username/Password (if any).
feature.healthmanager.*.ds.retry
Number of retries of the OpenTSDB insert request
feature.healthmanager.lifekeeper.interval
Expiration time of the profile data cache
feature.healthmanager.store.addr
Address of the profile data cache (Redis)
notifycenter
Support notification information processing and delivering
feature.notifycenter.nc.notify.ttl
Expiration time of the first notification, in hour
feature.notifycenter.nc.notify.frozenTime
Delivery interval of the same notification, in s
feature.notifycenter.nc.cache.addr
Address of the notification cache (Redis)
feature.notifycenter.push.services
Http server address for notification push (optional)
feature.notifycenter.nc.notify.mail.provider
Mail delivery mode (CEMail within CreditEase. JavaMail for others)
feature.notifycenter.nc.notify.mail.msgurl
Access address of notification details (AppHub access address /uavapp_godeye/notifymgr/desc.html)
feature.notifycenter.nc.notify.mail.uavurl
AppHub access address (such as http://127.0.0.1:8080/apphub)
feature.notifycenter.nc.notify.mail.javamail.smtphost
SMTP server address (such as mail.163.com/)
feature.notifycenter.nc.notify.mail.javamail.smtpport
Port of the SMTP server
feature.notifycenter.nc.notify.mail.javamail.smtpauth
Validation or not: true
feature.notifycenter.nc.notify.mail.javamail.username
Outbox address (such as XXX@163.com)
feature.notifycenter.nc.notify.mail.javamail.password
Outbox password
hbserveragent
Support heartbeat data processing
feature.hbserveragent.http.port
Port for heartbeat data receiving
feature.hbserveragent.http.qport
Port for heartbeat data query
feature.hbserveragent.store.addr
Address of the heartbeat data cache (Redis)
feature.hbserveragent.ismaster
Heartbeat endpoint not. If yes, process the heartbeat data; if no, send to the next heartbeat
feature.hbserveragent.lifekeeper.interval
Heartbeat interval, in ms
feature.hbserveragent.lifekeeper.locktimeout
Expiration time of the heartbeat data cache lock, in ms
feature.hbserveragent.lifekeeper.nodetimeout
Expiration time of heartbeat, in ms. A node shall be assumed as probably having stopped working if no heartbeat data of it has been received before the expiration time and as having stopped working if no data has been received five times late than the expiration time. The node shall be removed if no data has been received ten times late than the expiration time.
apphubmanager
Support data interaction with AppHub
feature.apphubmanager.ds.servers
Storage address of AppHub management data (Mongo)
runtimenotify
Support runtime notification decision-making
feature.runtimenotify.MT_Runtime.enable
Consume the source data of runtime notifications or not
feature.runtimenotify.storecm.server
Address (Redis) of the sliced cache of the runtime notification source data
feature.runtimenotify.nodeinfotimer.enable
Capture the heartbeat data information or not
feature.runtimenotify.nodeinfotimer.period
Capture interval of the heartbeat data
feature.runtimenotify.nodeinfoprocess.sendmq
Send the heartbeat data to the message queue or not
feature.runtimenotify.nodeinfoprocess.exchange
Directly use the heartbeat data for notification decision-making or not
feature.runtimenotify.crash.timeout
Expiration time of process information, in ms. Determine that the process has stopped if no process information is detected before the expiration time
feature.runtimenotify.strategy.interval
Update interval of notification strategies, in ms
newlogservice
Support log data processing
feature.newlogservice.to.runtimentf
Send logs to the runtime notification server or not
feature.newlogservice.messagingnameserver
Message queue address of log data source
feature.newlogservice.MT_Log.consumethreadmax
Maximum thread count consumed by messages
feature.newlogservice.MT_Log.consumestopinterval
Message consumption interval
feature.newlogservice.MT_Log.enable
Consume log messages or not
feature.newlogservice.es.addr
Storage address (Elasticsearch) of log data
feature.newlogservice.es.clustername
Cluster name of Elasticsearch
feature.newlogservice.es.query.timeout
Timeout of log data query, in ms
collectserver
Suppport to receive the APM data (invocation chains and thread analysis data)
feature.*.messagingnameserver
Message queue address of data sources
feature.collectserver.topics
Topics of subscribed messages. Separate multiple addresses with ','
feature.newlogservice.consumethreadmax
Maximum thread count consumed by messages
feature.newlogservice.consumestopinterval
Message consumption interval
feature.newlogservice.enable
Consume this topic message or not
invokechainserver\threadanalysisserver
Support invocation chain data/thread analysis data processing
feature.*.es.addr
Data storage address (Elasticsearch)
feature.*.es.clustername
Cluster name of Elasticsearch
feature.*.es.query.timeout
Timeout of Elasticsearch query, in ms