iT邦幫忙

0

AWS ELB Health Check Fail 的問題

我有建一個 Instance (Ubuntu) For ELB 的測試,內網是 10.100.251.X,
Health check target 是 HTTPS:8443/health.jsp,
轉 8443 是用 nginx 做的,而我用此 Instance 的 Public IP ( 34.112.XXX.XX ) 用 curl 指令確認 HTTP Access Code 驗証此 Target 是否正常,經驗証後有回 200 OK。
curl -I -k https://34.211.XXX.XX:8443/health.jsp
HTTP/1.1 200 OK
Server: nginx/1.12.1
Date: Sat, 13 Oct 2018 17:51:04 GMT
Content-Type: application/octet-stream
Content-Length: 11
Last-Modified: Tue, 22 Aug 2017 10:51:37 GMT
Connection: keep-alive
ETag: "599c0cb9-b"
Accept-Ranges: bytes

但 ELB (Classtic) 建起來 Health Check 一直 Out of Service 導致此ELB建立失敗,想請問 pubic ip 已經可以正常 Get 到此網頁,但 ELB 檢查就是會 Fail,請各位高高手幫忙,因擾小女好幾天。。
Load Balancer Protocol
Load Balancer Port
Instance Protocol
Instance Port
Cipher
SSL Certificate
HTTPS 443 HTTPS 8443 Change

Ping Target
HTTPS:8443/health.jsp
Timeout 60 seconds
Interval 300 seconds
Unhealthy threshold 5
Healthy threshold 5

Port Configuration
Port Configuration:
443 (HTTPS, ACM Certificate: 6ff9d866-ec87-4809-8c9a-7014a2844186) forwarding to 8443 (HTTPS)
Backend Authentication: Disabled
Stickiness: Disabled

Type: Classic (Migrate Now)
Scheme: internet-facing
Availability Zones: us-west-2a
Creation time: October 12, 2018 at 10:39:50 AM UTC+8

wolfwang iT邦研究生 4 級 ‧ 2018-10-15 10:38:42 檢舉
Access logs 有設定嗎? 有的話要不要從裡面開來看看有沒有什麼錯誤的訊息可以進一步分析
wolfwang iT邦研究生 4 級 ‧ 2018-10-15 12:42:22 檢舉
子網段這方向也可以試試: https://starkandwayne.com/blog/chu-li-aws-elb-zhong-goroutershi-li-shi-xiao-out-of-service/
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
archangelwu
iT邦新手 5 級 ‧ 2018-10-15 10:49:27

您好:

ELB 剛推出時我設定過,不知道跟現在有沒有出入,您要建立 ELB,我想 ELB 應該會提供一組對外 IP,您要進入 ELB 裡頭,指定內部兩台 EC2,也就是要把你想要做 Load balance 的 EC2 給掛上去!

連接的 IP 是 ELB 所提供的,這樣就可以了!

https://aws.amazon.com/tw/elasticloadbalancing/

tanyatan iT邦新手 5 級 ‧ 2018-10-15 10:54:13 檢舉

Instance 我已經指定了,但就是一直顯示 Out of Service,ELB 因為 Health Check 沒有過,所以 Public ip 即使有指派也有沒辦法使用,仍然看不到網頁

我要發表回答

立即登入回答