几天前我正在阅读有关 DNS 的内容,并了解了请求是如何处理的。如果您浏览 www.example.com,那么请求将转到根名称服务器以查看谁拥有该 .com 地址,然后另一个请求将转到另一个更本地的 DNS 服务器以查看谁拥有 example.com地址等。
从技术上讲,13 个根名称服务器如何能够同时处理地球上数十亿互联网用户所做的所有请求而不会受到 ddos:ed 的干扰?
我正在尝试在我的 CoreOS 节点中启动 etcd2。
我的云配置中有这个:
coreos:
etcd2:
discovery: https://discovery.etcd.io/new?size=1
advertise-client-urls: http://127.0.0.1:2379,http://127.0.0.1:4001
initial-advertise-peer-urls: http://127.0.0.1:2380
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
listen-peer-urls: http://127.0.0.1:2380
Run Code Online (Sandbox Code Playgroud)
安装后,当我启动系统时出现错误(根据日志):
etcdmain:顶级值后的无效字符“p”
并且 etcd2 无法启动。
这意味着什么?我遵循了https://coreos.com/os/docs/latest/cloud-config.html和https://coreos.com/os/docs/latest/cluster-discovery.html上的指南。
编辑
节点 1
coreos:
etcd2:
name: coreos1
discovery: https://discovery.etcd.io/2d585793b364cf8985ca7a983d6c52e3
advertise-client-urls: http://127.0.0.1:2379,http://127.0.0.1:4001
initial-advertise-peer-urls: http://127.0.0.1:2380
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
listen-peer-urls: http://127.0.0.1:2380
Run Code Online (Sandbox Code Playgroud)
节点 2
coreos:
etcd2:
name: coreos2
discovery: https://discovery.etcd.io/2d585793b364cf8985ca7a983d6c52e3
advertise-client-urls: http://127.0.0.1:2379,http://127.0.0.1:4001
initial-advertise-peer-urls: http://127.0.0.1:2380
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
listen-peer-urls: http://127.0.0.1:2380
Run Code Online (Sandbox Code Playgroud)
coreos1> journalctl -u etcd2:
Sep 21 20:10:31 coreos1 etcd2[671]: 2015/09/21 20:10:31 discovery: found self e276d5b4c276a19d in the cluster
Sep 21 …
Run Code Online (Sandbox Code Playgroud)