SKLTP - LB probe komponent
Dokumentation
Release notes mule-probe
4.1.1
Release datum: 2018-09-18
Ändringar:
- SKLTP-1149Skaffar detaljer kring ärendet ... STATUS
Ladda ner: Ineras Nexus SKLTP-Releases
4.0 (RC2)
Release datum 2016-02-25
3.1
Release datum 2016-02-25
2.0.1 (RC3)
Release datum: 2014-08-25
Stöd för anrop till flera bakomliggande producenter av tjänstekontraktet PingForConfiguration.
Exempel på anrop till VP och svar HTTP 200 OK:
─$ curl -i http://33.33.33.33:9090/rest/probe/status/vp 7 ↵ HTTP/1.1 200 OK Date: Wed, 20 Aug 2014 06:09:16 UTC Server: Mule Core/3.3.1 Content-Type: application/json http.status: 200 X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACQxOGJhMmQyZC0yODk1LTExZTQtODM5Zi1hM2IwNmFjYjJmOGJwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4 X-MULE_ENCODING: UTF-8 Transfer-Encoding: chunked Connection: close {"url":"http://localhost:8070/vp/itintegration/monitoring/PingForConfiguration/1/rivtabp21","serviceAvailable":true,"connecttimeout":"1000","responsetimeout":"2000","name":"vp","message":"<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>2.2.8</version><pingDateTime>20140820060916</pingDateTime><configuration><name>Applikation</name><value>VP</value></configuration><configuration><name>Anropsbehörigheter</name><value>20</value></configuration><configuration><name>Logiska-adresser</name><value>20</value></configuration></PingForConfigurationResponse></soap:Body></soap:Envelope>"}%
Exempel på svar som ger HTTP 503 Service Unavailable, när en tjänst inte är tillgänglig:
─$ curl -i http://33.33.33.33:9090/rest/probe/status/eibackend HTTP/1.1 503 Service Unavailable Date: Wed, 20 Aug 2014 06:11:11 UTC Server: Mule Core/3.3.1 Content-Type: application/json http.status: 503 X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACQ1ZDY1Mzc5Zi0yODk1LTExZTQtODM5Zi1hM2IwNmFjYjJmOGJwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4 X-MULE_ENCODING: UTF-8 Transfer-Encoding: chunked Connection: close {"url":"http://localhost:8082/skltp-ei/backend/itintegration/monitoring/PingForConfiguration/1/rivtabp21","serviceAvailable":false,"connecttimeout":"1000","responsetimeout":"2000","name":"eibackend","message":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Error occured trying to use ei-backend database, see application logs for details</faultstring></soap:Fault></soap:Body></soap:Envelope>"}%
Förändrad konfiguration
Parameter | Defaultvärde | Kommentar |
---|---|---|
PROBESERVICE_INBOUND_URL | http://localhost:8081/rest | Tidigare defautvärde http://localhost:8081/mule-probe/services/probeservice/inbound För att få status på alla tjänster bakom en probe: curl -i http://localhost:8091/rest/probe/status |
2.0.0
Release datum: 2014-05-06
Ladda ner: http://central.maven.org/maven2/se/skltp/components/mule-probe/
Stöd för anrop till bakomliggande producenter av tjänstekontraktet PingForConfiguration.
Notera att i 2.0.0 finns endast stöd för anrop till EN bakomliggande producent.
Exempel på anrop till och svar från komponeten, se dokumentation för mer detaljer.
curl -i http://localhost:8081/lb-probe/status HTTP/1.1 200 OK Date: Tue, 18 Mar 2014 03:36:14 CET Server: Mule Core/3.3.1 Content-Type: text/plain;charset=UTF-8 X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACRhODNjMTU1NS1hZWFhLTExZTMtYTgxNS1kZGQ2MjQ2ZGNmOTdwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAXQAGHNvaXRvb2xraXRfY29ycmVsYXRpb25JZHQAJGE4M2MzYzY3LWFlYWEtMTFlMy1hODE1LWRkZDYyNDZkY2Y5N3hxAH4ACXh4 X-MULE_ENCODING: UTF-8 Content-Length: 3 Connection: close OK
1.0.0
Release datum: 2014-03-25
Ladda ner: http://central.maven.org/maven2/se/skltp/components/mule-probe/
En första version av en mule komponent för att möjliggöra att en lastdelare skall kunna avgöra om en Mule server skall ta trafik eller inte. Intressant konfiguration för tex driftspersonal är att:
- Det går att konfigurera vilket svar mule-probe skall returnera
- Det går att konfigurera vilken adress ändpunkten för mule-probe skall använda
Exempel på anrop till och svar från komponeten, se dokumentation för mer detaljer.
curl -i http://localhost:8081/mule-probe/services/probeservice/inbound HTTP/1.1 200 OK Date: Tue, 18 Mar 2014 03:36:14 CET Server: Mule Core/3.3.1 Content-Type: text/plain;charset=UTF-8 X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACRhODNjMTU1NS1hZWFhLTExZTMtYTgxNS1kZGQ2MjQ2ZGNmOTdwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAXQAGHNvaXRvb2xraXRfY29ycmVsYXRpb25JZHQAJGE4M2MzYzY3LWFlYWEtMTFlMy1hODE1LWRkZDYyNDZkY2Y5N3hxAH4ACXh4 X-MULE_ENCODING: UTF-8 Content-Length: 3 Connection: close OK