如何在生产中缩放Docker容器 [英] How to scale Docker containers in production
问题描述
所以我最近发现了这个很棒的工具,它说
So I recently discovered this awesome tool, and it says
Docker是一个开源项目,可轻松创建轻量级的
便携式,自给自足的容器从任何应用程序。开发人员在笔记本电脑上构建和测试的相同的
容器可以以
的规模生产,在虚拟机,裸机,OpenStack集群,public
云等上运行。
Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.
假设我有一个运行Nginx的Docker映像,一个网站连接到外部数据库。
Let's say I have a docker image which runs Nginx and a website connects to external database. How do I scale the container in production?
推荐答案
简而言之,你必须自己写逻辑来做这个。
The short answer is that you'd have to write your own logic to do this.
我希望这样的功能可以从建立在Docker之上的以下项目中脱颖而出,旨在支持生产中的应用程序:
I would expect this kind of feature to emerge from the following projects, built on top of docker, and designed to support applications in production:
- flynn
- deis
- coreos
- Mesos
我最近发现的另一个相关项目:
Another related project I recently discovered:
- maestro
最新版本的Openstack包含对Docker容器管理的支持:
The latest release Openstack contains support for managing Docker containers:
- Docker Openstack
- OpenStack中的Paas区域
- Docker Openstack
- Paas zone within OpenStack
管理Docker实例的系统
System for managing Docker instances
- Shipyard
还有一个关于如何使用 Packer ,Docker和 Serf 提供不可变的服务器基础设施模式
And a presentation on how to use tools like Packer, Docker and Serf to deliver an immutable server infrastructure pattern
- FutureOps with Immutable Infrastructure
- Slides
一篇关于如何使用serf :
-
分散Docker:如何使用Docker的serf
- Decentralizing Docker: How to use serf with Docker
在 Mesos 使用 Marathon 框架
在 Tsuru 上运行Docker,因为它支持 docker-cluster 和分离的调度器部署
Run Docker on Tsuru as it supports docker-cluster and segregated scheduler deploy
- http://blog.tsuru.io/2014/04/04/running-tsuru-in-production-scaling-and-segregating-做cker-containers /
- http://blog.tsuru.io/2014/04/04/running-tsuru-in-production-scaling-and-segregating-docker-containers/
Docker-基于环境的编排
Docker-based environments orchestration
Google kubernetes
Redhat已经重构了他们的openhift PAAS来整合Docker
Redhat have refactored their openshift PAAS to integrate Docker
- Project Atomic
- Geard
Docker NodeJS包装Docker命令行,并从json文件中进行管理。
A Docker NodeJS lib wrapping the Docker command line and managing it from a json file.
- docker-cmd
亚马逊新的容器服务可以在集群中进行扩展。
Amazon's new container service enables scaling in the cluster.
严格来说, Flocker 不会扩展应用程序,而是设计用于在多个Docker主机之间移植的状态容器(运行数据库服务)的相关功能:
Strictly speaking Flocker does not "scale" applications, but it is designed to fufil a related function of making stateful containers (running databases services?) portable across multiple docker hosts:
创建描述Docker应用程序的便携式模板的项目:
A project to create portable templates that describe Docker applications:
Docker项目现在正在协调编排(见公告)
The Docker project is now addressing orchestration natively (See announcement)
- Docker machine
- Docker swarm
- Docker compose
另请参阅:
- https://blog.docker.com/tag/helios/
Openstack项目现在有一个名为Magnum的新的容器即服务项目:
The Openstack project now has a new "container as a service" project called Magnum:
- https://wiki.openstack.org/wiki/Magnum
显示了很多允许容易地设置Docker编排框架,如Kubernetes和Docker群。
Shows a lot of promise, enables the easy setup of Docker orchestration frameworks like Kubernetes and Docker swarm.
一个正在快速成熟的项目
Rancher is a project that is maturing rapidly
Nice UI和强调Hyrbrid Docker基础设施
Nice UI and strong focus on hyrbrid Docker infrastructures
莱迪思项目是用于管理容器集群的Cloud Foundry的分支。
The Lattice project is an offshoot of Cloud Foundry for managing container clusters.
Docker最近购买了Tutum:
Docker recently bought Tutum:
部署在 Kubernetes 上的应用程序的软件包管理器。
Package manager for applications deployed on Kubernetes.
Vamp是一种用于管理(微型)面向服务的体系结构的开源和自主托管平台,依赖于容器技术。
Vamp is an open source and self-hosted platform for managing (micro)service oriented architectures that rely on container technology.
分布式,高可用性,数据中心意识调度程序
A Distributed, Highly Available, Datacenter-Aware Scheduler
- https://www.nomadproject.io/
从给予我们Vagrant和其他强大工具的家伙。
From the guys that gave us Vagrant and other powerful tools.
AWS的容器托管解决方案,开放源代码,并基于 Kubernetes
Container hosting solution for AWS, open source and based on Kubernetes
这篇关于如何在生产中缩放Docker容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!