我对AWS 与世界。我的问题是在向 AWS 服务器发出请求时。我有一台服务器staging-storage.zazzercode.co
指向以下服务器DNS's
,并配有相应的负载均衡器,
s-storage-us-west-2-483191837.us-west-2.elb.amazonaws.com => s-storage-us-west-2
s-storage-us-east-1-1318227839.us-east-1.elb.amazonaws.com => s-storage-us-east-1
我住在东方世界。
点 0
我将实例大小从 升级t1.micro
到m3.medium
希望这个问题能够得到解决。
要点1
使用主机名向服务器发出请求时'staging-storage.zazzercode.co'
,我在请求中收到以下错误curl
,
curl: (6) Couldn't resolve host 'staging-storage.zazzercode.co'
根据man curl
,6
是,
6 Couldn't resolve host. The given remote host was not resolved.
要点2
它有时会告诉我
HTTP/1.1 100 Continue
HTTP/1.1 504 Gateway Timeout
Content-length:0
此处记录了 -排除 Elastic Load Balancing 故障:错误消息建议
- 负载均衡器容量不足以处理请求。(暂时性问题)
- 实例正在关闭与 ELB 的连接。
要点3
经过几次尝试后,它做出了正确的响应。我的团队中的其他人也面临同样的问题。
要点4
当我 ping 主机名时,它挂了
$ ping staging-storage.zazzercode.co
PING s-storage-us-west-2-483191837.us-west-2.elb.amazonaws.com (54.199.188.111) 56(84) bytes of data.
要点5
我可以正确地处理ssh
这两个例子。
要点6
nslookup
给zazzercode.co
我,
$ nslookup -type=NS zazzercode.co
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
zazzercode.co nameserver = ns-1605.awsdns-08.co.uk.
zazzercode.co nameserver = ns-1302.awsdns-34.org.
zazzercode.co nameserver = ns-510.awsdns-63.com.
zazzercode.co nameserver = ns-692.awsdns-22.net.
Authoritative answers can be found from:
nslookup
给staging-storage.zazzercode.co
我,
$ nslookup -q=NS staging-storage.zazzercode.co
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
staging-storage.zazzercode.co canonical name = s-storage-us-west-2-483191837.us-west-2.elb.amazonaws.com.
Authoritative answers can be found from:
us-west-2.elb.amazonaws.com
origin = ns-332.awsdns-41.com
mail addr = awsdns-hostmaster.amazon.com
serial = 1
refresh = 7200
retry = 900
expire = 1209600
minimum = 60
要点 7
$ dig TXT ns-692.awsdns-22.net _amazonses.zazzercode.co
; <<>> DiG 9.9.2-P1 <<>> TXT ns-692.awsdns-22.net _amazonses.zazzercode.co
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 33984
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;ns-692.awsdns-22.net. IN TXT
;; Query time: 46 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Thu Jul 24 11:54:31 2014
;; MSG SIZE rcvd: 49
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 30277
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;_amazonses.zazzercode.co. IN TXT
;; AUTHORITY SECTION:
zazzercode.co. 900 IN SOA ns-692.awsdns-22.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
;; Query time: 173 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Thu Jul 24 11:54:31 2014
;; MSG SIZE rcvd: 137
我怀疑是负载均衡器问题。有没有办法检查负载均衡器正在断开连接?或者这里可能存在什么问题?
如果需要的话我会提供更多详细信息。
(zazzercode.co
此处为虚构名称,用于隐藏实际名称,soothsayer.co
其他所有名称均保持不变)