eclipse / microprofile-service-mesh-service-b

microprofile-service-mesh-service-b
Apache License 2.0
1 stars 12 forks source link

Make code reply the server kind #10

Open pilhuhn opened 6 years ago

pilhuhn commented 6 years ago

Currently the situation is as follows:

snert:istio hrupp$ curl  http://istio-ingressgateway-istio-system.192.168.64.19.nip.io/mp-servicemesh-sample/serviceA
Hello from serviceA (org.eclipse.microprofile.servicemesh.servicea.ServiceAEndpoint$Proxy$_$$_WeldSubclass@5b82d4b3)
Calling service at: http://serviceb-service:8080/mp-servicemesh-sample/serviceB (ServiceA call count: 19, tries: 1)
Hello from serviceB (org.eclipse.microprofile.servicemesh.serviceb.ServiceBEndpoint$Proxy$_$$_WeldSubclass@2a067b42) at Fri Jul 27 13:53:47 UTC 2018 on serviceb-deployment-5b684b7bb8-kmgng (ServiceB call count: 18, failFrequency: 10)

snert:istio hrupp$ curl  http://istio-ingressgateway-istio-system.192.168.64.19.nip.io/mp-servicemesh-sample/serviceA
Hello from serviceA (org.eclipse.microprofile.servicemesh.servicea.ServiceAEndpoint$Proxy$_$$_WeldSubclass@2f475f5a)
Calling service at: http://serviceb-service:8080/mp-servicemesh-sample/serviceB (ServiceA call count: 20, tries: 1)
Hello from serviceB @ Fri Jul 27 13:53:50 UTC 2018 org.eclipse.microprofile.servicemesh.serviceb.ServiceB@ab6b99e6 on serviceb-liberty-deployment-564c7588fd-6zr26, failProbablibity: 0.0snert:istio hrupp$

We should try to expose the server kind (Thorntail, Liberty, ... ), while e.g. hostname is in my opinion less interesting. Here for liberty it luckily includes the string "liberty", but that is arbitrary because I tagged the image with that name

tevans78 commented 6 years ago

We would probably have to set a variable in the platform profile section of the pom.xml?