Last active
June 17, 2016 12:02
-
-
Save copa2/68f357573975f98bd1177d876ead05e6 to your computer and use it in GitHub Desktop.
Communicatoin between Eureka Client (Angel.SR6) with Eureka Server (Brixton.SR1 Patched) with metataMap.instanceId
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> GET /eureka/apps/ HTTP/1.1 | |
< 200 OK | |
< {"applications":{"versions__delta":"1","apps__hashcode":"","application":[]}} | |
------ 30 seconds later ------ | |
> GET /eureka/apps/ HTTP/1.1 | |
< 200 OK | |
< {"applications":{"versions__delta":"1","apps__hashcode":"","application":[]}} | |
> PUT /eureka/apps/XXX-EUREKA-CLIENT-ANGEL/fgt:xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff?status=UP&lastDirtyTimestamp=1466155674703 HTTP/1.1 | |
< 404 Not Found | |
> POST /eureka/apps/XXX-EUREKA-CLIENT-ANGEL HTTP/1.1 | |
> {"instance":{"hostName":"fgt","app":"XXX-EUREKA-CLIENT-ANGEL","ipAddr":"192.168.1.104","status":"UP","overriddenstatus":"UNKNOWN","port":{"@enabled":"true","$":"51821"},"securePort":{"@enabled":"false","$":"443"},"countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":0,"lastRenewalTimestamp":0,"evictionTimestamp":0,"serviceUpTimestamp":0},"metadata":{"instanceId":"xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff"},"homePageUrl":"http:\/\/fgt:51821\/","statusPageUrl":"http:\/\/fgt:51821\/info","healthCheckUrl":"http:\/\/fgt:51821\/health","vipAddress":"xxx-eureka-client-angel","isCoordinatingDiscoveryServer":false,"lastUpdatedTimestamp":1466155673449,"lastDirtyTimestamp":1466155674703}} | |
< 204 No Content | |
------ 10 seconds later (this is another thread also doing the POST) ------ | |
> POST /eureka/apps/XXX-EUREKA-CLIENT-ANGEL HTTP/1.1 | |
> {"instance":{"hostName":"fgt","app":"XXX-EUREKA-CLIENT-ANGEL","ipAddr":"192.168.1.104","status":"UP","overriddenstatus":"UNKNOWN","port":{"@enabled":"true","$":"51821"},"securePort":{"@enabled":"false","$":"443"},"countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":0,"lastRenewalTimestamp":0,"evictionTimestamp":0,"serviceUpTimestamp":0},"metadata":{"instanceId":"xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff"},"homePageUrl":"http:\/\/fgt:51821\/","statusPageUrl":"http:\/\/fgt:51821\/info","healthCheckUrl":"http:\/\/fgt:51821\/health","vipAddress":"xxx-eureka-client-angel","isCoordinatingDiscoveryServer":false,"lastUpdatedTimestamp":1466155673449,"lastDirtyTimestamp":1466155674703}} | |
< 204 No Content | |
------ 20 seconds later ------ | |
> GET /eureka/apps/ HTTP/1.1 | |
< 200 OK | |
< {"applications":{"versions__delta":"1","apps__hashcode":"UP_1_","application":[{"name":"XXX-EUREKA-CLIENT-ANGEL","instance":[{"instanceId":"fgt:xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff","hostName":"fgt","app":"XXX-EUREKA-CLIENT-ANGEL","ipAddr":"192.168.1.104","status":"UP","overriddenstatus":"UNKNOWN","port":{"$":51821,"@enabled":"true"},"securePort":{"$":443,"@enabled":"false"},"countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":1466155704893,"lastRenewalTimestamp":1466155704893,"evictionTimestamp":0,"serviceUpTimestamp":1466155704893},"metadata":{"instanceId":"xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff"},"homePageUrl":"http://fgt:51821/","statusPageUrl":"http://fgt:51821/info","healthCheckUrl":"http://fgt:51821/health","vipAddress":"xxx-eureka-client-angel","isCoordinatingDiscoveryServer":"false","lastUpdatedTimestamp":"1466155704893","lastDirtyTimestamp":"1466155674703","actionType":"ADDED"}]}]}} | |
> PUT /eureka/apps/XXX-EUREKA-CLIENT-ANGEL/fgt:xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff?status=UP&lastDirtyTimestamp=1466155714732 HTTP/1.1 | |
< 404 Not Found | |
> POST /eureka/apps/XXX-EUREKA-CLIENT-ANGEL HTTP/1.1 | |
> {"instance":{"hostName":"fgt","app":"XXX-EUREKA-CLIENT-ANGEL","ipAddr":"192.168.1.104","status":"UP","overriddenstatus":"UNKNOWN","port":{"@enabled":"true","$":"51821"},"securePort":{"@enabled":"false","$":"443"},"countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":0,"lastRenewalTimestamp":0,"evictionTimestamp":0,"serviceUpTimestamp":0},"metadata":{"instanceId":"xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff"},"homePageUrl":"http:\/\/fgt:51821\/","statusPageUrl":"http:\/\/fgt:51821\/info","healthCheckUrl":"http:\/\/fgt:51821\/health","vipAddress":"xxx-eureka-client-angel","isCoordinatingDiscoveryServer":false,"lastUpdatedTimestamp":1466155673449,"lastDirtyTimestamp":1466155714732}} | |
< 204 No Content | |
------ 30 seconds later ------ | |
> GET /eureka/apps/delta HTTP/1.1 | |
< 200 OK | |
< {"applications":{"versions__delta":"1","apps__hashcode":"UP_1_","application":[{"name":"XXX-EUREKA-CLIENT-ANGEL","instance":[{"instanceId":"fgt:xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff","hostName":"fgt","app":"XXX-EUREKA-CLIENT-ANGEL","ipAddr":"192.168.1.104","status":"UP","overriddenstatus":"UNKNOWN","port":{"$":51821,"@enabled":"true"},"securePort":{"$":443,"@enabled":"false"},"countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":1466155734966,"lastRenewalTimestamp":1466155734966,"evictionTimestamp":0,"serviceUpTimestamp":1466155704893},"metadata":{"instanceId":"xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff"},"homePageUrl":"http://fgt:51821/","statusPageUrl":"http://fgt:51821/info","healthCheckUrl":"http://fgt:51821/health","vipAddress":"xxx-eureka-client-angel","isCoordinatingDiscoveryServer":"false","lastUpdatedTimestamp":"1466155734966","lastDirtyTimestamp":"1466155714732","actionType":"ADDED"}]}]}} | |
> PUT /eureka/apps/XXX-EUREKA-CLIENT-ANGEL/fgt:xxx-eureka-client-angel:2fde559da915653f55b920dffcb7dfff?status=UP&lastDirtyTimestamp=1466155714732 HTTP/1.1 | |
< 200 OK | |
------ 30 seconds later ------ | |
From here on it is settled down and the above delta and puts are executed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment