APACHE COTTON
MySQL on Mesos
Yan Xu xujyan
1
APACHE COTTON MySQL on Mesos Yan Xu xujyan 1 SHORT HISTORY - - PowerPoint PPT Presentation
APACHE COTTON MySQL on Mesos Yan Xu xujyan 1 SHORT HISTORY Mesos: cornerstone of Twitters compute platform. MySQL: backbone of Twitters data platform. Mysos: started as a hackweek project @twitter. Apache Cotton:
MySQL on Mesos
Yan Xu xujyan
1
2
administration to self- service.
manage themselves.
3
their lifecycles.
4
5
Services
mesos-slaves mesos-master
S S S S” S” S” S’ S’ S’
frameworks
6
Services
mesos-slaves mesos-master
S S S S” S” S” S’ S’ S’
frameworks cotton-scheduler
6
Services
mesos-slaves mesos-master
S S S S” S” S” S’ S’ S’
frameworks cotton-executor cotton-scheduler
6
Services
mesos-slaves mesos-master
S S S S” S” S” S’ S’ S’
frameworks cotton-executor
6
Services
mesos-slaves mesos-master
S S S S” S” S” S’ S’ S’
frameworks cotton-executor
6
Mesos cluster Cotton cluster MySQL cluster MySQL cluster Cotton cluster MySQL cluster
7
8
mesos-slaves mesos-master CREATE CLUSTER ‘cluster0’: nodes=3, size=SMALL, user, passwd, backup_id Cotton Scheduler Offers
9
mesos-slaves mesos-master Cotton Scheduler A B C LAUNCH TASK LAUNCH TASK LAUNCH TASK LAUNCH 3 TASKs
10
mesos-slaves mesos-master 3 TASKs RUNNING Cotton Scheduler A B C RUNNING RUNNING RUNNING
11
mesos-slaves mesos-master GTID_EXECUTED? Cotton Scheduler A B C
12
mesos-slaves mesos-master Master = Slave(MAX(GTIDs)) Cotton Scheduler A B C GTIDs
13
mesos-slaves mesos-master ELECT A Cotton Scheduler A B C A elected
14
mesos-slaves mesos-master Cotton Scheduler A B C REPARENT PROMOTE REPARENT Master: A Slaves: B, C zk://
15
mesos-slaves mesos-master ELECT B Cotton Scheduler A B C
Instance A unhealthy
Host C down
16
mesos-slaves mesos-master LAUNCH TASKS D,E Cotton Scheduler A B C
17
18
19
20
21
22
23
24
25
26
27
directory managed by Mesos and not GCed).
possible.
28
29
30
31