2016-05-31 7 views
1

Ich versuche, mit Hilfe von Hystrix einen Service-Proxy zur Implementierung des Schutzschaltermusters zu implementieren. Ich habe die Hystrix-Befehle implementiert und auch das Hystrix-Servlet verpackt, um den Hystrix-Stream bereitzustellen. Um die Dienste zu überwachen, verwende ich das Hystrix Dashboard 1.5.0. Alles funktioniert auf einem lokalen Tomcat-Server. Ich kann die Metrikdiagramme sehenNicht in der Lage, die Metrik-Charts mit dem Hystrix-Dashboard in Bluemix anzuzeigen

Wenn ich jedoch das gleiche auf Bluemix bereitstellen, zeigt das Dashboard die Diagramme nicht. Stattdessen heißt es "Verbindung zum Command Metric Stream nicht möglich". Ich habe den Stream auch mit dem Chrome-Browser überprüft. Ich bin in der Lage, die Nachrichten, wie unten zu sehen:

ping: 

data: 
{ 
    "type":"HystrixCommand", 
    "name":"GetAllContactsCommand", 
    "group":"GetAllContactsService", 
    "currentTime":1464714539673, 
    "isCircuitBreakerOpen":false, 
    "errorPercentage":0, 
    "errorCount":0, 
    "requestCount":0, 
    "rollingCountBadRequests":0, 
    "rollingCountCollapsedRequests":0, 
    "rollingCountEmit":0, 
    "rollingCountExceptionsThrown":0, 
    "rollingCountFailure":0, 
    "rollingCountEmit":0, 
    "rollingCountFallbackFailure":0, 
    "rollingCountFallbackRejection":0, 
    "rollingCountFallbackSuccess":0, 
    "rollingCountResponsesFromCache":0, 
    "rollingCountSemaphoreRejected":0, 
    "rollingCountShortCircuited":0, 
    "rollingCountSuccess":0, 
    "rollingCountThreadPoolRejected":0, 
    "rollingCountTimeout":0, 
    "currentConcurrentExecutionCount":0, 
    "rollingMaxConcurrentExecutionCount":0, 
    "latencyExecute_mean":0, 
    "latencyExecute":{"0":0, 
    "25":0, 
    "50":0, 
    "75":0, 
    "90":0, 
    "95":0, 
    "99":0, 
    "99.5":0, 
    "100":0 
}, 
"latencyTotal_mean":0, 
"latencyTotal": 
{ "0":0, 
    "25":0, 
    "50":0, 
    "75":0, 
    "90":0, 
    "95":0, 
    "99":0, 
    "99.5":0, 
"100":0 
}, 
"propertyValue_circuitBreakerRequestVolumeThreshold":20, 
"propertyValue_circuitBreakerSleepWindowInMilliseconds":5000, 
"propertyValue_circuitBreakerErrorThresholdPercentage":50, 
"propertyValue_circuitBreakerForceOpen":false, 
"propertyValue_circuitBreakerForceClosed":false, 
"propertyValue_circuitBreakerEnabled":true, 
"propertyValue_executionIsolationStrategy":"THREAD", 
"propertyValue_executionIsolationThreadTimeoutInMilliseconds":1000, 
"propertyValue_executionTimeoutInMilliseconds":1000, 
"propertyValue_executionIsolationThreadInterruptOnTimeout":true, 
"propertyValue_executionIsolationThreadPoolKeyOverride":null, 
"propertyValue_executionIsolationSemaphoreMaxConcurrentRequests":10, 
"propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests":10, 
"propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000, 
"propertyValue_requestCacheEnabled":true, 
"propertyValue_requestLogEnabled":true, 
"reportingHosts":1 
} 

data: 
{ 
    "type":"HystrixThreadPool", 
    "name":"GetAllContactsService", 
    "currentTime":1464714539673, 
    "currentActiveCount":0, 
    "currentCompletedTaskCount":3, 
    "currentCorePoolSize":10, 
    "currentLargestPoolSize":3, 
    "currentMaximumPoolSize":10, 
    "currentPoolSize":3, 
    "currentQueueSize":0, 
    "currentTaskCount":3, 
    "rollingCountThreadsExecuted":0, 
    "rollingMaxActiveThreads":0, 
    "rollingCountCommandRejections":0, 
    "propertyValue_queueSizeRejectionThreshold":5, 
    "propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000, 
    "reportingHosts":1 
} 

Jede Idee, warum das Armaturenbrett nicht in der Lage ist, zu verbinden, wenn auf Bluemix eingesetzt zu streamen. Jede Hilfe wird geschätzt.

Grüße, Umasuthan.

Antwort

0

Ich habe das gleiche genaue Problem versucht, auf Bluemix zu laufen. Ich arbeite auch lokal mit der Spring Tools Suite. Gab es eine Lösung für dieses Problem?

Meine Situation: Ich habe die Spring Initialzr verwendet, um eine Spring Cloud-Anwendung (Eureka, Hystrix, REST-Controller) zu erstellen. Ich habe dies bei Bluemix (Cloud Foundry) eingesetzt. Alles funktioniert gut außer dem Hystrix-Dashboard. Ich bekomme "Keine Verbindung zum Command Metric Stream". auf dem Armaturenbrett.

Ich kann die Stream-URL curlen - es dauert eine sehr lange Zeit, aber die Daten kommen wieder.