docker_practice/mesos/architecture.md

84 lines
6.3 KiB
Go
Raw Normal View History

2017-05-02 23:17:58 +08:00
##
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
Mesos Mesos Mesos Mesos Mesos 使
Mesos 使
2015-06-29 18:20:31 +08:00
###
2017-05-02 23:17:58 +08:00
Mesos
![mesos ](_images/mesos-architecture.png)
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
Mesos -master-slave使 zookeeper HA
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
Mesos master Mesos slave
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
Mesos master
2015-06-29 18:20:31 +08:00
###
2017-05-02 23:17:58 +08:00
Mesos masterslaveframework
#### - master
使
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
API
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
#### - slave
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
LXCDocker
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
#### - framework
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
* scheduler
* executor使 Mesos shell Docker
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
HadoopSpark MPI
2015-06-29 18:20:31 +08:00
###
2017-05-02 23:17:58 +08:00
使
Mesos two-layer
####
master frameworkframework Mesos master framework Mesos master
Dominant Resource FairnessDRF
*DRF Dominant Resource Fairness: Fair Allocation of Multiple Resource Types*
####
offer offer `<1 CPU, 2 GB Mem>`
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
* slave master
* master offer framework
* framework offer 使使 master
* master framework slave使 framework executor
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
`<4 CPU, 8 GB Mem>` `<3 CPU, 6 GB Mem>` offer `<slave#1, 4 CPU, 8 GB Mem>` offer `<1 CPU, 2 GB Mem>` `<2 CPU, 4 GB Mem>`
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
offer offer 使 slave offer master offer
2015-06-29 18:20:31 +08:00
####
2017-05-02 23:17:58 +08:00
framework master offer
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
2015-06-29 18:20:31 +08:00
####
2017-05-02 23:17:58 +08:00
Mesos
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
2015-06-29 18:20:31 +08:00
### HA
2017-05-02 23:17:58 +08:00
master 使 ZooKeeper Mesos master
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
Mesos master slave framework
2015-06-29 18:20:31 +08:00
2017-05-02 23:17:58 +08:00
master slave Mesos