2015-03-02 12:02:15 +00:00
|
|
|
|
# Machi
|
|
|
|
|
|
2015-10-16 08:17:28 +00:00
|
|
|
|
[Travis-CI](http://travis-ci.org/basho/machi) :: ![Travis-CI](https://secure.travis-ci.org/basho/machi.png)
|
|
|
|
|
|
2015-05-07 11:59:27 +00:00
|
|
|
|
Our goal is a robust & reliable, distributed, highly available(*),
|
|
|
|
|
large file store based upon write-once registers, append-only files,
|
|
|
|
|
Chain Replication, and client-server style architecture. All members
|
|
|
|
|
of the cluster store all of the files. Distributed load
|
|
|
|
|
balancing/sharding of files is __outside__ of the scope of this
|
|
|
|
|
system. However, it is a high priority that this system be able to
|
|
|
|
|
integrate easily into systems that do provide distributed load
|
|
|
|
|
balancing, e.g., Riak Core. Although strong consistency is a major
|
|
|
|
|
feature of Chain Replication, first use cases will focus mainly on
|
|
|
|
|
eventual consistency features --- strong consistency design will be
|
|
|
|
|
discussed in a separate design document (read more below).
|
2015-03-02 12:02:15 +00:00
|
|
|
|
|
2015-05-07 11:59:27 +00:00
|
|
|
|
The ability for Machi to maintain strong consistency will make it
|
|
|
|
|
attractive as a toolkit for building things like CORFU and Tango as
|
|
|
|
|
well as better-known open source software such as Kafka's file
|
|
|
|
|
replication. (See the bibliography of the [Machi high level design
|
|
|
|
|
doc](./doc/high-level-machi.pdf) for further references.)
|
2015-03-02 12:02:15 +00:00
|
|
|
|
|
2015-10-20 05:50:54 +00:00
|
|
|
|
(*) When operating in strong consistency mode (supporting
|
|
|
|
|
sequential or linearizable semantics), the availability of the
|
|
|
|
|
system is restricted to quorum majority availability. When in
|
|
|
|
|
eventual consistency mode, service can be provided by any
|
|
|
|
|
available server.
|
|
|
|
|
|
|
|
|
|
## Status: mid-October 2015: work is underway
|
|
|
|
|
|
2015-11-02 15:22:43 +00:00
|
|
|
|
* The chain manager is ready for both eventual consistency use ("available
|
|
|
|
|
mode") and strong consistency use ("consistent mode"). Both modes use a new
|
2015-10-20 05:50:54 +00:00
|
|
|
|
consensus technique, Humming Consensus.
|
|
|
|
|
* Scott will be
|
2015-10-21 01:44:52 +00:00
|
|
|
|
[speaking about Humming Consensus](http://ricon.io/agenda/#managing-chain-replication-metadata-with-humming-consensus)
|
|
|
|
|
at the [Ricon 2015 conference] (http://ricon.io) in San Francisco,
|
2015-10-20 05:50:54 +00:00
|
|
|
|
CA, USA on Thursday, November 5th, 2015.
|
2015-11-02 15:22:43 +00:00
|
|
|
|
* If you would like to run the network partition simulator
|
|
|
|
|
mentioned in that Ricon presentation, please see the
|
|
|
|
|
[partition simulator convergence test doc.](./doc/machi_chain_manager1_converge_demo.md)
|
2015-10-20 05:50:54 +00:00
|
|
|
|
* Implementation of the file repair process for strong consistency
|
|
|
|
|
is still in progress.
|
2015-05-07 11:59:27 +00:00
|
|
|
|
|
2015-06-30 10:04:23 +00:00
|
|
|
|
* All Machi client/server protocols are based on
|
|
|
|
|
[Protocol Buffers](https://developers.google.com/protocol-buffers/docs/overview).
|
|
|
|
|
* The current specification for Machi's protocols can be found at
|
|
|
|
|
[https://github.com/basho/machi/blob/master/src/machi.proto](https://github.com/basho/machi/blob/master/src/machi.proto).
|
|
|
|
|
* The Machi PB protocol is not yet stable. Expect change!
|
|
|
|
|
* The Erlang language client implementation of the high-level
|
2015-10-20 05:50:54 +00:00
|
|
|
|
protocol flavor is brittle (e.g., little error handling yet).
|
2015-06-30 10:04:23 +00:00
|
|
|
|
|
|
|
|
|
If you'd like to work on a protocol such as Thrift, UBF,
|
|
|
|
|
msgpack over UDP, or some other protocol, let us know by
|
2015-10-20 05:50:54 +00:00
|
|
|
|
[opening an issue to discuss it](./issues/new).
|
|
|
|
|
|
|
|
|
|
The two major design documents for Machi are now mostly stable.
|
|
|
|
|
Please see the [doc](./doc) directory's [README](./doc) for details.
|
2015-05-07 11:59:27 +00:00
|
|
|
|
|
|
|
|
|
## Contributing to Machi: source code, documentation, etc.
|
|
|
|
|
|
|
|
|
|
Basho Technologies, Inc. as committed to licensing all work for Machi
|
|
|
|
|
under the
|
|
|
|
|
[Apache Public License version 2](./LICENSE). All authors of source code
|
|
|
|
|
and documentation who agree with these licensing terms are welcome to
|
|
|
|
|
contribute their ideas in any form: suggested design or features,
|
|
|
|
|
documentation, and source code.
|
|
|
|
|
|
|
|
|
|
Machi is still a very young project within Basho, with a small team of
|
|
|
|
|
developers; please bear with us as we grow out of "toddler" stage into
|
|
|
|
|
a more mature open source software project.
|
|
|
|
|
We invite all contributors to review the
|
|
|
|
|
[CONTRIBUTING.md](./CONTRIBUTING.md) document for guidelines for
|
|
|
|
|
working with the Basho development team.
|
|
|
|
|
|
|
|
|
|
## A brief survey of this directories in this repository
|
|
|
|
|
|
2015-06-21 15:09:35 +00:00
|
|
|
|
* A list of Frequently Asked Questions, a.k.a.
|
|
|
|
|
[the Machi FAQ](./FAQ.md).
|
|
|
|
|
|
2015-05-07 11:59:27 +00:00
|
|
|
|
* The [doc](./doc/) directory: home for major documents about Machi:
|
|
|
|
|
high level design documents as well as exploration of features still
|
|
|
|
|
under design & review within Basho.
|
|
|
|
|
|
|
|
|
|
* The `ebin` directory: used for compiled application code
|
|
|
|
|
|
|
|
|
|
* The `include`, `src`, and `test` directories: contain the header
|
|
|
|
|
files, source files, and test code for Machi, respectively.
|
|
|
|
|
|
|
|
|
|
* The [prototype](./prototype/) directory: contains proof of concept
|
|
|
|
|
code, scaffolding libraries, and other exploratory code. Curious
|
|
|
|
|
readers should see the [prototype/README.md](./prototype/README.md)
|
|
|
|
|
file for more explanation of the small sub-projects found here.
|
|
|
|
|
|
|
|
|
|
## Development environment requirements
|
|
|
|
|
|
|
|
|
|
All development to date has been done with Erlang/OTP version 17 on OS
|
|
|
|
|
X. The only known limitations for using R16 are minor type
|
|
|
|
|
specification difference between R16 and 17, but we strongly suggest
|
|
|
|
|
continuing development using version 17.
|
|
|
|
|
|
|
|
|
|
We also assume that you have the standard UNIX/Linux developers
|
|
|
|
|
tool chain for C and C++ applications. Specifically, we assume `make`
|
|
|
|
|
is available. The utility used to compile the Machi source code,
|
|
|
|
|
`rebar`, is pre-compiled and included in the repo.
|
|
|
|
|
|
|
|
|
|
There are no known OS limits at this time: any platform that supports
|
|
|
|
|
Erlang/OTP should be sufficient for Machi. This may change over time
|
|
|
|
|
(e.g., adding NIFs which can make full portability to Windows OTP
|
|
|
|
|
environments difficult), but it hasn't happened yet.
|
|
|
|
|
|
|
|
|
|
## Contributions
|
|
|
|
|
|
|
|
|
|
Basho encourages contributions to Riak from the community. Here’s how
|
|
|
|
|
to get started.
|
|
|
|
|
|
|
|
|
|
* Fork the appropriate sub-projects that are affected by your change.
|
|
|
|
|
* Create a topic branch for your change and checkout that branch.
|
|
|
|
|
git checkout -b some-topic-branch
|
|
|
|
|
* Make your changes and run the test suite if one is provided. (see below)
|
|
|
|
|
* Commit your changes and push them to your fork.
|
|
|
|
|
* Open pull-requests for the appropriate projects.
|
|
|
|
|
* Contributors will review your pull request, suggest changes, and merge it when it’s ready and/or offer feedback.
|
|
|
|
|
* To report a bug or issue, please open a new issue against this repository.
|
|
|
|
|
|
|
|
|
|
-The Machi team at Basho,
|
|
|
|
|
[Scott Lystig Fritchie](mailto:scott@basho.com), technical lead, and
|
|
|
|
|
[Matt Brender](mailto:mbrender@basho.com), your developer advocate.
|
2015-03-03 02:52:45 +00:00
|
|
|
|
|