Vitess is a database clustering system for horizontal scaling of MySQL.
Перейти к файлу
Anthony Yeh 86071decf6 Ignore third_party and Godeps in git precommit hooks. 2015-01-28 15:42:47 -08:00
config Travis: Fix flaky tests 2014-12-22 14:39:01 -08:00
data Merge pull request #283 from youtube/vtgate 2015-01-05 19:55:45 -08:00
doc add doc about the life of a query 2015-01-20 11:11:53 -08:00
docker Create Vitess-friendly Dockerfile for etcd. 2014-12-18 23:21:53 -08:00
examples Log to stderr so it gets picked up by Kubernetes logsaver. 2015-01-27 16:05:48 -08:00
go Finish force_close before calling mysql_close. 2015-01-27 17:53:59 -08:00
java Java client: Update session prior to throwing DatabaseException 2015-01-22 16:51:39 -08:00
misc Ignore third_party and Godeps in git precommit hooks. 2015-01-28 15:42:47 -08:00
php Add a minimal VTGateConnection class for PHP. 2015-01-20 01:02:53 -08:00
py Removed the dependency of topology from vtgate client. 2015-01-27 11:41:32 -08:00
test Reverted a previous change to include topology again. 2015-01-27 14:54:03 -08:00
third_party Fix "invalid heap pointer" crash when built with Go 1.4. 2015-01-12 23:42:26 -08:00
travis Travis: Do not hardcode version in mariadb dependencies 2015-01-28 12:34:30 -08:00
.gitignore git should ignore intellij files 2015-01-20 17:17:58 -08:00
.travis.yml Travis: Upgrade to Go1.4 2015-01-20 12:07:07 -08:00
CONTRIBUTING.md Simplify instructions for contributing and deprecate createcl. 2014-10-17 19:56:20 -07:00
Dockerfile Pin our docker image on wheezy. 2014-10-17 22:11:48 -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 Force a known locale when generating build time. 2015-01-21 13:10:23 -08:00
README.md let travis build status ref master branch only 2014-12-18 11:12:57 -08:00
bootstrap.sh Clarify 'source dev.env' line at end of bootstrap. 2015-01-27 23:48:29 -08:00
dev.env Remove unused go-etags setup in dev.env. 2014-09-27 19:16:12 -07:00

README.md

Vitess

Build Status Coverage Status

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.

There are a couple of videos from sougou that you can watch: a short intro prepared for Google I/O 2014 and a more detailed presentation from @Scale '14.

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!).

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.