Konfiguration (2.0.1 RC1)
Applikationens konfigurationsfil
# Standard properties for an external ActiveMQ broker, see soitoolkit-mule-jms-connector-activemq-external.xml. SOITOOLKIT_MULE_AMQ_BROKER_URL=failover:(tcp://localhost:61616) SOITOOLKIT_MULE_AMQ_MAX_REDELIVERIES=3 SOITOOLKIT_MULE_AMQ_REDELIVERY_DELAY=10000 SOITOOLKIT_MULE_AMQ_NO_OF_CONSUMERS=2 # Default queue names for info end error log-events SOITOOLKIT_LOG_INFO_QUEUE=SOITOOLKIT.LOG.INFO SOITOOLKIT_LOG_ERROR_QUEUE=SOITOOLKIT.LOG.ERROR # Set the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the # timeout for waiting for data. A timeout value of zero is interpreted as an infinite # timeout. SO_TIMEOUT_MS=2000 # Set the default timeout in milliseconds until a connection is etablished. A value of zero # means the timeout is not used. CONNECTION_TIMEOUT_MS=1000 # Inbound endpoint for load balancers to use when probing PROBESERVICE_INBOUND_URL=http://localhost:8081/rest # Path to file where mule probe has access to read file PROBESERVICE_FILE=src/main/resources/probeFile.txt # What value in PROBESERVICE_FILE that should respond http 500 service unavailable to load balancer PROBE_DOWN_CRITERIA=DOWN ############################################################## # Configuration of PingForConfiguration producers to be probed # # probe.ping.<name>=<name>;<URL to roducer of PingForConfiguration> # probe.ping.<name>.connecttimeout=<value in milliseconds> # probe.ping.<name>.responsetimeout=<value in milliseconds> # # Status on selected resource will then be available through http://localhost:8081/rest/probe/status/<name> # # Status on all resources will then be available through http://localhost:8081/rest/probe/status ############################################################## # probe.ping.vp=vp;http://localhost:8080/vp/services/PingForConfiguration/1/rivtabp21 # probe.ping.vp.connecttimeout=500 # probe.ping.vp.responsetimeout=1000
Applikationens probe file
Applikationens probe file pekas ut via property PROBESERVICE_FILE, se ovan.
PROBESERVICE_FILE=sökväg där probe file ligger
PROBE_DOWN_CRITERIA=värdet i probe file som kommer att göra att probe signalerar "ej tillgänglig"
{code | name=probeFile.txt}
DOWN
{code}