Vitess is a database clustering system for horizontal scaling of MySQL.
Перейти к файлу
Mike Solomon 65674504b7 Keep normal output quiet, but make failures more verbose to aid debugging.
Codify some assumptions on external environment variables.
2014-04-17 10:33:33 -07:00
config First pass at MariaDB support. 2014-04-02 14:52:07 -07:00
data Merge branch 'master' into replication 2014-04-11 15:30:54 -07:00
doc Update GettingStarted.markdown 2014-04-02 13:33:24 -07:00
go Merge pull request #42 from msolo/zk-name-service 2014-04-17 09:22:42 -07:00
misc Abbreviated commit. 2013-08-20 11:53:22 -07:00
py gorpc: Change ssl timeout to be different from normal 2014-04-06 21:59:38 -07:00
test Keep normal output quiet, but make failures more verbose to aid debugging. 2014-04-17 10:33:33 -07:00
third_party remove custom vt_mysqlbinlog from mysql 2013-11-27 11:16:02 -08:00
.gitignore .DS_Store -> .gitignore 2013-12-24 15:27:39 -08:00
LICENSE Change the license notice to be shorter and refer to the license file. 2012-06-07 11:55:06 -07:00
Makefile Keep normal output quiet, but make failures more verbose to aid debugging. 2014-04-17 10:33:33 -07:00
README.markdown Update README.markdown 2014-02-25 09:20:38 -08:00
bootstrap.sh Fixing bootstrap.sh to create the hook link. 2014-04-04 11:33:57 -07:00
dev.env Keep normal output quiet, but make failures more verbose to aid debugging. 2014-04-17 10:33:33 -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 currently used as a fundamental component of YouTube's MySQL infrastructure.

sougou presented Vitess at Fosdem '14 in the go devroom. Here are the slides, and here is the video.

Vitess is currently not ready for unsupervised use yet. There's good deal of documentation missing. Also, some functionality is under development and some APIs are still changing. But if you feel adventurous, you're welcome to try it. If you run into issues, please subscribe and post to our mailing list. We'll do our best to help you.

vttablet

TODO: Move this content to its own markdown.

Smart middleware sitting in front of MySQL and serving clients requests.

  • Connection pooling.
  • SQL parser: Although very close, the vtocc SQL parser is not SQL-92 compliant. It has left out constructs that are deemed uncommon or OLTP-unfriendly. It should, however, allow most queries used by a well-behaved web application.
  • Query rewrite and sanitation (adding limits, avoiding non-deterministic updates).
  • Query consolidation: reuse the results of an in-flight query to any subsequent requests that were received while the query was still executing.
  • Rowcache: the mysql buffer cache is optimized for range scans over indices and tables. Unfortunately, its not good for random access by primary key. The rowcache will instead maintain a row based cache (using memcached as its backend) and keep it consistent by fielding all DMLs that could potentially affect them.
  • Update stream: A server that streams the list of rows that are changing in the database, which can be used as a mechanism to continuously export the data to another data store.
  • Integrated query killer for queries that take too long to return data.
  • Discard idle backend connections to avoid offline db errors.
  • Transaction management: Ability to limit the number of concurrent transactions and manage deadlines.

License

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