All Projects → apache → incubator-retired-cotton

apache / incubator-retired-cotton

Licence: Apache-2.0 license
Mirror of Apache Cotton

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
HTML
75241 projects

Labels

Projects that are alternatives of or similar to incubator-retired-cotton

jQueryFileUpload.Net
[Out of Date] .Net handler for http://aquantum-demo.appspot.com/file-upload
Stars: ✭ 68 (-25.27%)
Mutual labels:  retired
launchpad
A django based system that provides a stable URL for every item in the library's catalog. Various discovery services will link to these URLs. The page for each item will in turn link out to various other resources that provide methods for accessing the content of the items.
Stars: ✭ 15 (-83.52%)
Mutual labels:  retired
incubator-retired-blur
Mirror of Apache Blur
Stars: ✭ 33 (-63.74%)
Mutual labels:  retired
incubator-retired-horn
Mirror of Apache Horn (Incubating) ** This project has been retired **
Stars: ✭ 30 (-67.03%)
Mutual labels:  retired
incubator-retired-corinthia
Mirror of Apache Corinthia (Incubating)
Stars: ✭ 15 (-83.52%)
Mutual labels:  retired
incubator-retired-iota
Mirror of Apache Iota (Incubating)
Stars: ✭ 32 (-64.84%)
Mutual labels:  retired
opensextant
Deprecated Module: See Xponents or OpenSextantToolbox as active code base.
Stars: ✭ 31 (-65.93%)
Mutual labels:  retired

Apache Cotton

Apache Cotton (previously named Mysos) is an Apache Mesos framework for running MySQL instances. It dramatically simplifies the management of a MySQL cluster and is designed to offer:

  • Efficient hardware utilization through multi-tenancy (in performance-isolated containers)
  • High reliability through preserving the MySQL state during failure and automatic backing up to/restoring from HDFS
  • An automated self-service option for bringing up new MySQL clusters
  • High availability through automatic MySQL master failover
  • An elastic solution that allows users to easily scale up and down a MySQL cluster by changing the number of slave instances

Cotton has been accepted into the Apache Incubator.

Documentation

A user guide is available. Documentation improvements are always welcome, so please send patches our way.

Getting Involved

Please check out the source code from Apache's git repostory:

git clone https://git-wip-us.apache.org/repos/asf/incubator-cotton.git

or if you prefer GitHub, use the GitHub mirror:

git clone https://github.com/apache/incubator-cotton.git

The Cotton community maintains the following project supporting services:

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Requirements

  • Python 2.7
  • Mesos Python bindings

Building

Build status on Travis CI

Building/Downloading Mesos Python Bindings

Cotton uses Mesos Python bindings which consist of two Python packages. mesos.interface is on PyPI and gets automatically installed but mesos.native is platform dependent. You need to either build the package on your machine (instructions) or download a compiled one for your platform (e.g. Mesosphere hosts the eggs for some Linux platforms).

Since pip doesn't support eggs, you need to convert eggs into wheels using wheel convert, then drop them into the 3rdparty folder. See the README file for more information.

Building Cotton

Cotton mainly consists of two components that are built and deployed separately.

  • mysos_scheduler: The scheduler that connects to Mesos master and manages the MySQL clusters.
  • mysos_executor: The executor that is launched by Mesos slave (upon mysos_scheduler's request) to carry out MySQL tasks.

One way to package these components and their dependencies into a self-contained executable is to use PEX. This allow Cotton components to be launched quickly and reliably. See End-to-end test using PEX for an example of packaging and deploying the executor using PEX.

Testing

Unit Tests

Make sure tox is installed and just run:

tox

The unit tests don't require the mesos.native package to be available in 3rdparty. Tox also builds the Cotton source package and drops it in .tox/dist.

End-to-end Test on a Local Mesos Cluster and PEX

Build/download the mesos.native package and put it in 3rdparty and then run:

tox -e pex

This test demonstrates how to package a PEX executor and use it to launch a fake MySQL cluster on a local Mesos cluster.

End-to-end Test on a Real Mesos Cluster in a Vagrant VM

The Vagrant test uses the sdist Cotton package in .tox/dist so be sure to run tox first. Then:

vagrant up

# Wait for the VM and Cotton API endpoint to come up (http://192.168.33.17:55001 becomes available).

tox -e vagrant

test.sh verifies that Cotton successfully creates a MySQL cluster and then deletes it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].