OpenShift Origin
Openshift Origin是Openshift的开源版本,可以用来创建、部署以及管理云端的app。根据每个app使用到的服务的类型(数据库、语言环境),Oepnshift会为你提供一个文件系统为你创造运行环境(a template file system layout is provided)。同时也负责DNS服务
Beta版的。。。目前Openshift就是用HA proxy来实现负载均衡。GIT部署作为end point for the application(个人理解就是真正部署的工具是GIT)。HA proxy的运作方式也很简单:如果有请求,那么把请求转发到正确的Gear即可。然后部署方式是:用户向HA proxy 的gear push代码。那么HA proxy将代码在分别push到每个运行的Gear上面去
Component:Smallest piece of a software package which provides some functionality. Users don’t see below this level.
Connections:哪两个component需要互相通讯
Group Override:就是将不相关的Cartridge放到一个Gear里面去。In essence, embedding them together. These components will scale together.
Gear:CPU、内存以及disk的配置
一个sample,就不翻译了
[plain] view plaincopyprint?
Name: myapp
Version: 1.0
Requires: php-1.0, mysql, mongodb
Connections:
- php-1.0, mysql
- php-1.0, mongodb
Group override:
- php-1.0, mysql
Name: myapp
Version: 1.0
Requires: php-1.0, mysql, mongodb
Connections:
- php-1.0, mysql
- php-1.0, mongodb
Group override:
- php-1.0, mysql
The descriptor above describes an application named “myapp” which depends on php-1.0, mysql and mongodb. Php,Mysql and Php, Mongodb need to communicate with each other. Php and mysql run embedded on the same set of gears while Mongodb runs on its own set of gears
Controller:is a Rails Engine (plugin) which includes a REST API, business logic and state management for the PaaS platform. It also includes a set of plugin APIs for DNS management, authentication, data/state storage, and broker-node communications.