SKLTP probe komponent - installation

Ladda ner

Ladda ner mule-probe-[version].zip från http://central.maven.org/maven2/se/skltp/components/mule-probe/

Installera

Se nedan generella instruktion för att installera mule applikationer.

Installation av tjänster/applikationer i Mule

OBS! Vi startar applikationer i en fix startordning, här är det viktigt att vi startar Probe sist! Se Installationsmanual Mule för mer information.

Konfigurera

SKLTP probe komponent - konfiguration

Verifiera - version 3.x, 4.x

Curl anrop till tjänsten, säkerställ att port och adress stämmer överens med vad som står i mule-probe-config[-override].properties,  PROBESERVICE_INBOUND_URL

curl -v http://localhost:8081/mule-probe/probe

OK svar

< HTTP/1.1 200 OK
< Date: Mon, 25 Jan 2016 14:16:40 +0000
< Server: Mule Core/3.7.0
< Content-Type: application/json
< Content-Length: 2
< http.status: 200
< Connection: close
<
* Closing connection 0
OK

Probe är konfigurerad till DOWN

Konfigureras i probe-filen, se SKLTP probe komponent - konfiguration):

< HTTP/1.1 503 Service Unavailable
< Date: Mon, 25 Jan 2016 15:17:53 +0000
< Server: Mule Core/3.7.0
< Content-Type: application/json
< Content-Length: 880
< http.status: 503
< Connection: close
<
* Closing connection 0
[{"name":"engagemangsindex","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"Muleprobe probeFile signals DOWN, no check against producers will be performed","serviceAvailable":false},{"name":"fkadapter","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"Muleprobe probeFile signals DOWN, no check against producers will be performed","serviceAvailable":false},{"name":"vp","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"Muleprobe probeFile signals DOWN, no check against producers will be performed","serviceAvailable":false}]

Probens probe-fil är borttagen

Se SKLTP probe komponent - konfiguration för konfiguration av probe-filen.

< HTTP/1.1 503 Service Unavailable
< Date: Wed, 24 Feb 2016 09:00:11 CET
< Server: Mule Core/3.3.1
< Content-Type: application/json
< http.status: 503
< Transfer-Encoding: chunked
< Connection: close
<
* Closing connection 0
{"serviceAvailable":false,"probeAvailable":false,"probeMessage":"Configured probeFile target/probeService/probeFile.txt does not exist, muleprobe signals unavailable when file is missing"}

Felsöka eller inspektera konfiguration

Med verbose=true flaggan på returneras probens konfiguration för de konfigurerade tjänsterna:

curl -v http://localhost:8081/mule-probe/probe?verbose=true

Exempel på svar:

< HTTP/1.1 200 OK
< Date: Mon, 25 Jan 2016 15:14:26 +0000
< Server: Mule Core/3.7.0
< Content-Type: application/json
< Content-Length: 2230
< http.status: 200
< Connection: close
<
* Closing connection 0
[{"name":"engagemangsindex","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":true,"probeMessage":"Muleprobe probeFile signals OK","serviceAvailable":true,"serviceMessage":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><PingForConfigurationResponse xmlns:ns2=\"urn:riv:itintegration:registry:1\" xmlns=\"urn:riv:itintegration:monitoring:PingForConfigurationResponder:1\"><version>1.0</version><pingDateTime>20160125041426</pingDateTime><configuration><name>Applikation</name><value>VP</value></configuration></PingForConfigurationResponse></soap:Body></soap:Envelope>","connecttimeout":"1000","responsetimeout":"2000"},{"name":"fkadapter","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":true,"probeMessage":"Muleprobe probeFile signals OK","serviceAvailable":true,"serviceMessage":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><PingForConfigurationResponse xmlns:ns2=\"urn:riv:itintegration:registry:1\" xmlns=\"urn:riv:itintegration:monitoring:PingForConfigurationResponder:1\"><version>1.0</version><pingDateTime>20160125041426</pingDateTime><configuration><name>Applikation</name><value>VP</value></configuration></PingForConfigurationResponse></soap:Body></soap:Envelope>","connecttimeout":"1000","responsetimeout":"2000"},{"name":"vp","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":true,"probeMessage":"Muleprobe probeFile signals OK","serviceAvailable":true,"serviceMessage":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><PingForConfigurationResponse xmlns:ns2=\"urn:riv:itintegration:registry:1\" xmlns=\"urn:riv:itintegration:monitoring:PingForConfigurationResponder:1\"><version>1.0</version><pingDateTime>20160125041426</pingDateTime><configuration><name>Applikation</name><value>VP</value></configuration></PingForConfigurationResponse></soap:Body></soap:Envelope>","connecttimeout":"3000","responsetimeout":"2000"}]

Verifiera - före version 3.x

Curl anrop till tjänsten, säkerställ att port och adress stämmer överens med vad som står i mule-probe-config[-override].properties,  PROBESERVICE_INBOUND_URL

curl -i http://localhost:8081/rest/probe/status

 

OK svar

HTTP/1.1 200 OK
Date: Mon, 25 Aug 2014 08:55:09 CEST
Server: Mule Core/3.3.1
Content-Type: application/json
http.status: 200
X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACRjMTE4ZjM1YS0yYzI0LTExZTQtOWVjZC1jMTk3M2EwYWEwZjBwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4
X-MULE_ENCODING: UTF-8
Transfer-Encoding: chunked
Connection: close
[{"url":null,"serviceAvailable":true,"connecttimeout":null,"responsetimeout":null,"name":"muleprobe","message":"Probefile signals: OK\n"}]%

 

Probe är konfigurerad till DOWN

HTTP/1.1 503 Service Unavailable
Date: Mon, 25 Aug 2014 08:59:14 CEST
Server: Mule Core/3.3.1
Content-Type: application/json
http.status: 503
X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACQ1MzA4OTFlMy0yYzI1LTExZTQtOWVjZC1jMTk3M2EwYWEwZjBwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4
X-MULE_ENCODING: UTF-8
Transfer-Encoding: chunked
Connection: close
[{"url":null,"serviceAvailable":false,"connecttimeout":null,"responsetimeout":null,"name":"muleprobe","message":"Probefile signals: DOWN\n"}]%

 

Â