2016-05-31 6 views
1

サーキットブレーカパターンを実装するためにHystrixを使用してサービスプロキシを実装しようとしています。私はHystrixコマンドを実装し、Hystrixストリームを提供するためにHystrixサーブレットをパッケージ化しました。サービスを監視するために、私はHystrix Dashboard 1.5.0を使用しています。すべてのTomcatサーバー上で正常に動作します。メトリックチャートを見ることができますBluemixでHystrixダッシュボードを使用してメトリックチャートを表示することができません

しかし、Bluemixにデプロイすると、ダッシュボードにグラフが表示されません。代わりに 'Command Metric Streamに接続できません'と表示されます。また、Chromeブラウザを使用してストリームを確認しました。私は以下のようにメッセージを表示することができています:

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 
} 

ダッシュボードがBluemix上に展開する際ストリームに接続することができない理由を任意のアイデア、。どんな助けもありがとうございます。

よろしく、 Umasuthan。

答えて

0

Bluemixでも同じ問題が発生しています。私はSpring Tools Suiteを使ってローカルでもうまく動作します。この問題に解決策がありましたか?

私の状況: 私はSpring Initialzrを使ってSpring Cloudアプリケーション(Eureka、Hystrix、RESTコントローラ)を作成しました。私はこれをBluemix(Cloud Foundry)に導入しました。 Hystrixのダッシュボード以外はすべて正常に動作します。 「Command Metric Streamに接続できません」というメッセージが表示されます。ダッシュボードで

私はストリームのURLをカールすることができます - それは本当に時間がかかりますが、データが戻ってきます。

関連する問題