简体   繁体   中英

Mesos & persistent storage using MySQL

This is going to be a generic question.

We are a young startup faced with the inevitable problem of scaling and during our research, Apache Mesos seemed like a good fit for our architecture, which is –

  • Core Scala based microservices, each responsible for dealing with a part of our database, which is mainly MySQL
  • Middleware microservices, to deal with some other persistent data-storage systems like MongoDB, Elasticsearch etc.

Which basically means that we can containerise all of our services and ship them to a single datacenter which can then deploy these containers in a topographically agnostic way.

What we are currently stumped by is –

  • Mesos doesn't seem to have any native support for MySQL
  • Container based persistence seems awfully tricky and hard to manage/maintain.

We'd like to continue using MySQL/MongoDB/ElasticSearch because migrating to Cassandra etc. at this stage (we are a small team) is too much of an overhead and hence not an option. What are the best strategies for this problem?

Mesos provide Persistent resources support for storage-like services .

If you want to use MySQL on mesos, please consider try https://github.com/apache/incubator-cotton

After some research we decided not to try Cotton but we're still sticking to deploying our services across a Mesos cluster.

Instead of hosting our own MySQL database, we decided to outsource it to Amazon RDS. But we're now faced with problems like doing something for our other databases like MongoDB.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM