我有建一個 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
您好:
ELB 剛推出時我設定過,不知道跟現在有沒有出入,您要建立 ELB,我想 ELB 應該會提供一組對外 IP,您要進入 ELB 裡頭,指定內部兩台 EC2,也就是要把你想要做 Load balance 的 EC2 給掛上去!
連接的 IP 是 ELB 所提供的,這樣就可以了!