Innehållsförteckning |
---|
Ladda ner
Ladda ner mule-probe-[version].zip från http://central.maven.org/maven2/se/skltp/components/mule-probe/
...
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
Kodblock |
---|
curl -iv http://localhost:8081/mule-probe/services/probeservice/inbound |
OK svar (HTTP 200, samt att probeFile.txt innehåller texten OK i detta exemplet)
Kodblock |
---|
HTTP/1.1 200 OK Date: Tue, 18 Mar 2014 03:36:14 CET probe |
OK svar
Kodblock |
---|
< 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):
Kodblock |
---|
< 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.
Kodblock |
---|
< 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": text/plain;charset=UTF-8 X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACRhODNjMTU1NS1hZWFhLTExZTMtYTgxNS1kZGQ2MjQ2ZGNmOTdwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAXQAGHNvaXRvb2xraXRfY29ycmVsYXRpb25JZHQAJGE4M2MzYzY3LWFlYWEtMTFlMy1hODE1LWRkZDYyNDZkY2Y5N3hxAH4ACXh4 X-MULE_ENCODING: UTF-8 Content-Length: 3 Connection: close OK |
...
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:
Kodblock |
---|
curl -v http://localhost:8081/mule-probe/probe?verbose=true |
Exempel på svar:
Kodblock |
---|
< 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
Kodblock |
---|
curl -i http://localhost:8081/rest/probe/status |
OK svar
Kodblock |
---|
HTTP/1.1 500200 InternalOK Server Error Date: TueMon, 1825 MarAug 2014 0308:5655:1909 CETCEST Server: Mule Core/3.3.1 Content-Type: text/plain;charset=UTF-8application/json http.status: 200 X-MULE_SESSION: 500rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACRjMTE4ZjM1YS0yYzI0LTExZTQtOWVjZC1jMTk3M2EwYWEwZjBwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4 X-MULE_ENCODING: UTF-8 ContentTransfer-LengthEncoding: 45chunked Connection: close ERROR OCCURED IN MULE LB PROBE SERVICE ON XYZ[{"url":null,"serviceAvailable":true,"connecttimeout":null,"responsetimeout":null,"name":"muleprobe","message":"Probefile signals: OK\n"}]% |
Probe är konfigurerad till DOWN
Kodblock |
---|
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"}]% |