Vitess is a database clustering system for horizontal scaling of MySQL.
Перейти к файлу
Anthony Yeh fb4a75378b Add Kubernetes config for vtctld. 2014-10-14 10:46:05 -07:00
config Make new DB data dir and config file for MariaDB. 2014-08-20 21:11:49 -07:00
data planbuilder: compute table name first. 2014-10-12 10:32:07 -07:00
doc No more vtaction. 2014-09-29 16:16:42 -07:00
docker Add Dockerfile for vitess/root image. 2014-10-14 10:46:04 -07:00
examples Add Kubernetes config for vtctld. 2014-10-14 10:46:05 -07:00
go tabletserver: refactor transaction pool 2014-10-13 01:06:52 -07:00
java Vitess MR: Multiple splits per shard in InputFormat 2014-10-06 09:47:05 -07:00
misc Add "go vet" as a presubmit and use goimports instead of gofmt. 2014-08-06 12:07:50 -07:00
py Fix vtrouting.py 2014-10-13 14:43:34 -07:00
test Disable the problematic testcase in vtgate test 2014-10-13 16:02:48 -07:00
third_party Port fix for stdin support in mysqlbinlog from MariaDB to Google MySQL. 2014-08-01 16:50:56 -07:00
.gitignore Adding some java-specific rules. 2014-06-18 11:33:29 -07:00
Dockerfile First pass at Docker support. 2014-10-03 21:27:26 -07:00
LICENSE Change the license notice to be shorter and refer to the license file. 2012-06-07 11:55:06 -07:00
Makefile removed vtgate_test from Makefile. 2014-10-01 11:15:43 -07:00
README.markdown Update docs for MariaDB support. 2014-09-05 12:58:17 -07:00
bootstrap.sh Use pre-installed MariaDB instead of downloading it. 2014-08-28 14:35:51 -07:00
dev.env Remove unused go-etags setup in dev.env. 2014-09-27 19:16:12 -07:00

README.markdown

Vitess

Vitess is a set of servers and tools meant to facilitate scaling of MySQL databases for the web. It's been developed since 2011, and is currently used as a fundamental component of YouTube's MySQL infrastructure, serving thousands of QPS (per server). If you want to find out whether Vitess is a good fit for your project, please read our helicopter overview.

Overview

Overview

Vitess consists of a number servers, command line utilities, and a consistent metadata store. Taken together, they allow you to serve more database traffic, and add features like sharding, which normally you would have to implement in your application.

vttablet is a server that sits in front of a MySQL database, making it more robust and available in the face of high traffic. Among other things, it adds a connection pool, has a row based cache, and it rewrites SQL queries to be safer and nicer to the underlying database.

vtgate is a very light proxy that routes database traffic from your app to the right vttablet, basing on the sharding scheme, latency required, and health of the vttablets. This allows the client to be very simple, as all it needs to be concerned about is finding the closest vtgate.

The topology is a metadata store that contains information about running servers, the sharding scheme, and replication graph. It is backed by a consistent data store, like Apache ZooKeeper. The topology backends are plugin based, allowing you to write your own if ZooKeeper doesn't fit your needs. You can explore the topology through vtctld, a webserver (not shown in the diagram).

vtctl is a command line utility that allows a human or a script to easily interact with the system.

All components communicate using a lightweight RPC system based on BSON. The RPC system is plugin based, so you can easily write your own backend (at Google we use a Protocol Buffers based protocol). We provide a client implementation for three languages: Python, Go, and Java. Writing a client for your language should not be difficult, as it's a matter of implementing only a few API calls (please send us a pull request if you do!).

To learn more, please click on the documentation links below. You can also watch a 9 minute introduction to Vitess sougou prepared for Google I/O 2014. There's also a longer presentation from the Fosdem '14 go devroom (slides, video).

Trying it out

Vitess is not entirely ready for unsupervised use yet. Some functionality is still under development, APIs may change, and parts of the code are undocumented. However, if you feel adventurous, you're more than welcome to try it. We know that there are some rough edges, so please don't hesitate to reach out to us through our mailing list if you run into any issues. Warnings aside, please take a look at our Getting Started guide.

Documentation

Intro

Using Vitess

Reference

License

Unless otherwise noted, the vitess source files are distributed under the BSD-style license found in the LICENSE file.