Stateful Services on Mesos
Ankan Mukherjee (ankan@moz.com) Arunabha Ghosh (agh@moz.com)
Stateful Services on Mesos Ankan Mukherjee (ankan@moz.com) Arunabha - - PowerPoint PPT Presentation
Stateful Services on Mesos Ankan Mukherjee (ankan@moz.com) Arunabha Ghosh (agh@moz.com) A deployment diagram Source: wikipedia Presentation Business Data Presentation Business Data Why run on Mesos? Services are decoupled from the
Ankan Mukherjee (ankan@moz.com) Arunabha Ghosh (agh@moz.com)
Presentation Business Data
Presentation Business Data
Examples:
databases (mysql, postgres)
?
○ Manually bring the node up ○ Rely on existing process
backup
backup restore
○ Restore last known good state to local storage ○ Proceed as usual backup restore
○ Let Mesos start new instance on any available node
○ Added network between the process and the storage
Master Master Master Master Master Master Master Master Master
Node disconnects from master
Master Master Master Master Master Master Master Master Master Master Master Master
Node disconnects and reconnects
Master Master Master Master Master Master
scaleTo = 2
Task is scaled to >1
Master Master Master Master Master Master Master Master Master
Node disconnects from FS
○ Node disconnects from master but is connected to FS ○ Node disconnects from network & then connects back ○ Somehow the task is “scaled” to >1 instances
○ Node is connected to master but disconnects from FS
Master Master Master
zookeeper zookeeper
Master Master Master zookeeper lock node
○ start only if it has acquired the zk lock (exit otherwise) ○ exit at any point it loses the zk lock
zookeeper lock node
○ Node disconnects from master but is connected to FS ○ Node disconnects from network & then connects back ○ Somehow the task is “scaled” to >1 instances
○ Node is connected to master but disconnects from FS
○ Let Mesos start new instance on any available node
○ Repair & mount device to new node ○ Proceed as usual
*24 10k SAS disks in RAID 10