nginx - 如何在 CoreOS 中负载均衡服务?

标签 nginx docker haproxy coreos

  • 我有一个运行 3 个 Web 容器的 coreos 集群,每个容器运行同一个 Web 应用程序。
  • 如何使用 haproxy 和 nginx 对这些正在运行的容器的请求进行负载平衡。
  • 请提出建议。

最佳答案

我建议你仔细看看 vulcand,它是一个在 coreos 上运行的反向代理,旨在对运行在 coreos 上的容器之间的 http 请求进行负载平衡:

Vulcand is a reverse proxy for HTTP API management and microservices. It is inspired by Hystrix.

It uses Etcd as a configuration backend, so changes to configuration take effect immediately without restarting the service.

https://coreos.com/blog/zero-downtime-frontend-deploys-vulcand/

http://vulcand.github.io/

一篇不错的博文,其中包括使用 vulcand 跨 docker 容器进行负载平衡:

http://www.recorditblog.com/post/how-to-create-a-web-scale-infrastructure-based-on-docker-coreos-vulcand-and-mesos-and-why-object-storage-becomes-the-de-facto-data-repository/

这个 github repo 有一些用于设置 coreos、docker 和 vulcand 的示例源代码:

https://github.com/bradgignac/intro-to-coreos

关于nginx - 如何在 CoreOS 中负载均衡服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28317546/

相关文章:

nginx - 使用nginx模拟慢响应时间以进行测试

django - 限制访问 Django/Nginx 中的静态文件

node.js - 清除 SSL 后响应 404 的 nginx 上的 URL

python-3.x - python3 tkinter ubuntu trusty 在虚拟环境下不起作用

docker - 尝试使用virtualbox启动minikube时出现问题?

linux - 无法使用 HAProxy 将客户端 IP 转发到服务器

nginx - 如何使用 nginx 为 root 和代理其他所有内容提供静态 html?

Meteor Up Docker 和 Graphicsmagick

mysql - HAProxy 带有 mysql-check 选项,不起作用

load-balancing - HaProxy ProxyProtocol 和 Varnish 没有响应