#-------------------- # Name: application.properties # Description: This file is used to configure run time properties of the http-request-generator application # Comment properties are defaulted to the values you see. The change remove comment tag and edit # Location: /tango/config/hrg # Used By: http-request-generator.jar # Related Config: None #-------------------- ######Application Configuration###### # Description: For Intelligent Load Balancing; Rate of change to average response time, based on last response # So how much of an affect the last response has on the average response time # Note: Range 0-1 where 0=No Change: last response has no affect on average # 1=Full Change: last response is the new average # e.g. // For examples Avg = 2ms, Last Response = 100ms # rateOfChange = 1, New Avg = 100ms # rateOfChange = .5, New Avg = 51ms # rateOfChange = .1, New Avg = 11.8ms # rateOfChange = .01, New Avg = 2.98ms # rateOfChange = .001, New Avg = 2.098ms # rateOfChange = 0, New Avg = 2ms hrg.loadBalancing.rateOfChange=.001 # Description: Defines period of inactivity in milliseconds after which persistent connections must be re-validated prior to being leased to the consumer. hrg.connection.validateAfterInactivity.ms=5000 # Description: Time to live defines maximum life span of persistent connections regardless of their expiration setting. No persistent connection will be re-used past its TTL value. hrg.connection.timeToLive.seconds=3600 ######Web Server Configuration###### # Description: Port the hrg will listen on for Http messages server.port = 8286 #######Logging####### # Description: Location to write the hrg log file logging.path=/tango/logs/hrg/ # Description: Location to write the hrg stats file, NOTE: stats will be put into a folder 'hrg' at the location configured stats.file.path=/tango/logs/ # Description: Default logging levels logging.level.root=WARN ######Enable to see whats sent/received to the server logging.level.org.apache.http=DEBUG logging.level.org.apache.http.impl.conn.PoolingHttpClientConnectionManager=ERROR logging.level.com.tango.se=ERROR logging.level.com.tango.se.config.RMConfig=WARN logging.level.com.tango.http.request.generator=ERROR logging.level.com.tango.http.request.generator.core.service.impl.MessageServicesManager=WARN logging.level.com.tango.http.request.generator.core.se.impl.HrgRequestMessageProcessorImpl=WARN logging.level.com.tango.http.request.generator.service.impl.ConnectionMonitoringService=WARN logging.level.com.tango.http.request.generator.service.impl.HttpClientPool=WARN logging.level.com.tango.http.request.generator.service.impl.IntelligentLoadBalancingConnectionStrategy=WARN #######Datasource####### spring.datasource.url=jdbc:mysql://localhost/hrgdb spring.datasource.username=hrgjdbc spring.datasource.password= spring.datasource.driverClassName=com.mysql.jdbc.Driver # Description: Interval in ms to check database for changes, these trigger reloading of cache, connections etc.. hrg.database.checking.interval=10000 #######CDRs####### # Description: Profile to use for logging cdrs # Note: Possible values cdrlogging-cdrh, cdrlogging-slf4j spring.profiles.include=cdrlogging-cdrh # Description: CDR logging method # Note: Possible values CDRH, SLF4J cdr.logging.method=CDRH # Description: Host and port where CDH handler listens for se messages from applications cdr.cdrh.host.and.port=localhost:11020 # Description: Source address field sent in CDR se message cdr.cdrh.source.address=localhost/hrg-cdr-logger/0/hrg-cdr-logger/0 # Description: Destination address field sent in CDR se message cdr.cdrh.destination.address=ssrva/cdrh/0/CdrHandler/-1 #######Service Environment config####### # Description: Resource Management: First Resource(HTTP) url provided by this application hrg.provider.resource.url=http://hostname:8286 # Description: Port the HRG will listen on for SE messages hrg.se.receiver.port=16444 # Description: Size(In terms of number of requests) of the ThreadPool setup to receive se requests hrg.se.send.bufferSize=50000 # Description: Size(In terms of number of requests) of the ThreadPool setup to send se requests hrg.se.receive.bufferSize=50000 # Description: Name of this application for Resource management se.app.name=hrg # Description: Instance of this application for Resource management se.app.instance=0 # Description: Resource Management: class name for this application hrg.class.name=hrg # Description: Resource Management: Should this application register itself with the RM as a resource provider hrg.is.resource.provider=true # Description: Resource Management: First Resource(HTTP) name provided by this application hrg.provider.resource.name=hrg # Description: Resource Management: First Resource Priority hrg.provider.resource.priority=0 # Description: Resource Management: Second Resource(SE) name provided by this application hrg.provider.resource1.name=hrgSE # Description: Resource Management: Second Resource Priority hrg.provider.resource1.priority=0 # Description: Resource Management: Interval in ms to request instances of resources this application uses rm.user.request.period=5000 # Description: Resource Management: Interval in ms to provide resources to the RM rm.provider.task.period=5000 # Description: Resource Management: Port of the RM rm.hrm.port.number=10112 # Description: Resource Management: Host of the RM rm.hrm.hostname=localhost ######Monitoring###### # Description: Number of connections to the monitoring service monitor.max.connection=5 # Description: Number of ms to execute a monitoring request monitor.timeout=5000 # Description: Port the monitoring service listens on monitor.port.number=64445 # Description: Only allow access the monitoring for whitelisted hosts monitor.whiteList.enabled = true # Description: Location of file where whitelisted hosts are configured monitor.whiteList.file = /tango/config/hrg/hrg_whiteList.properties ######Alarms###### # Description: Name of this host alarm.node=hostname # Description: Host and port where the Alarms & Events handler is running to send Alarms to alarm.aehc.external.receiver.port=localhost:10181 # Description: AEHC_externalAlarm address on Management Agent alarm.aehc.external.seaddress=localhost/OM_agent/0/AEHC_externalAlarm/0 # Description: Name of this service alarm.service=HRG # Description: Name of this application to appear in the alarm alarm.application=HRG/0 # Description: Name of this cluster to appear in the alarm alarm.cluster=tango