私はDC/OS 1.7 with marathon-lbを実行しています。marathon-lbすべてのspray.ioコンテナでヘルスチェックが失敗する
spray.io 1.3.3はすべてのマラソン-1b/HAProxyヒースチェックコールに戻りますrequest has a relative URI and is missing a Host header
marathon-lbは決してサービスへのリクエストをルーティングしません。
マラソンJSONでヘルスチェックは次のとおりです。
"healthChecks": [
{
"path": "/health",
"protocol": "HTTP",
"portIndex": 0,
"gracePeriodSeconds": 10,
"intervalSeconds": 2,
"timeoutSeconds": 10,
"maxConsecutiveFailures": 10,
"ignoreHttp1xx": false
} ],
とドッキングウィンドウコンテナ内spray.ioによってロギングは次のとおりです。
[WARN] [08/19/2016 23:53:42.534] [asp-service-akka.actor.default-dispatcher-5] [akka://asp-service/user/IO-HTTP/listener-0/4] Illegal request, responding with status '400 Bad Request': Illegal request: Cannot establish effective request URI of HttpRequest(GET,/health,List(),Empty,HTTP/1.0), request has a relative URI and is missing a
Host
header
/health
エンドポイントはmesosに対してカールから正常に動作します管理されたIP:ポート。
私はマラソンポンドより寛容または抑制spray.ioの400
私はこれを数日前から探してきました!どうもありがとう。私は鉄のフレームワークでサビに書かれたサーバーを使用していますが。 – zaynetro