高性能的代理服务-Envoy

Envoy最初建于Lyft,是一个高性能的代理服务,为服务网格提供了基础。 它与应用程序并行运行,通过以平台无关的方式提供通用功能来抽象网络。 当基础架构中的所有服务流量都通过Envoy网格时,通过一致的可观测性,很容易地查看问题区域,调整整体性能并在一个位置添加特殊。

官网:https://www.envoyproxy.io

docker 安装

$ docker pull envoyproxy/envoy:latest
latest: Pulling from envoyproxy/envoy
b234f539f7a1: Pull complete 
55172d420b43: Pull complete 
5ba5bbeb6b91: Pull complete 
43ae2841ad7a: Pull complete 
f6c9c6de4190: Pull complete 
332ac9c3e424: Pull complete 
de19b7c7b473: Pull complete 
12a2b3ebc603: Pull complete 
6f472521a27e: Pull complete 
5d86eddb3779: Pull complete 
Digest: sha256:e3f5527816b396f007d250e92f0a7ade63b42c653cdca32d142b96ef53804361
Status: Downloaded newer image for envoyproxy/envoy:latest
www@TinywanAliYun:~$ docker run --rm -d -p 10000:10000 envoyproxy/envoy:latest
94f8cc5678b034a8086823bbf2dd60e7c24ff795eb52016e4ae03c46e893960a
www@TinywanAliYun:~$ curl -v localhost:10000
* Rebuilt URL to: localhost:10000/
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 10000 (#0)
> GET / HTTP/1.1
> Host: localhost:10000
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 503 Service Unavailable
< content-length: 57
< content-type: text/plain
< date: Fri, 29 Jun 2018 01:29:11 GMT
< server: envoy
< 
* Connection #0 to host localhost left intact
upstream connect error or disconnect/reset before headerswww@TinywanAliYun:~$ ping www.tinywan.com
PING www.tinywan.com (139.224.239.21) 56(84) bytes of data.
64 bytes from 139.224.239.21: icmp_seq=1 ttl=64 time=0.239 ms
^C
--- www.tinywan.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.239/0.239/0.239/0.000 ms

 

参考:

1、他们将生产环境从nginx迁移到envoy,原因竟然是

 

posted @ 2018-06-29 09:09  Tinywan  阅读(1315)  评论(0编辑  收藏  举报