2013-07-19 06:34:05 +04:00
|
|
|
Vitess
|
|
|
|
======
|
|
|
|
|
|
|
|
Vitess is a set of servers and tools to facilitate scaling of MySQL
|
|
|
|
databases for the web. It serves all of YouTube's MySQL traffic.
|
|
|
|
|
|
|
|
Development
|
|
|
|
-----------
|
|
|
|
|
|
|
|
[Install Go](http://golang.org/doc/install).
|
|
|
|
|
|
|
|
``` sh
|
|
|
|
cd $WORKSPACE
|
2013-07-30 03:39:27 +04:00
|
|
|
sudo apt-get install automake libtool flex bison memcached python-mysqldb # to compile MySQL
|
2013-07-19 06:34:05 +04:00
|
|
|
git clone git@github.com:youtube/vitess.git src/github.com/youtube/vitess
|
|
|
|
cd src/github.com/youtube/vitess
|
|
|
|
./bootstrap.sh
|
|
|
|
. ./dev.env
|
|
|
|
```
|
|
|
|
|
|
|
|
Optionally:
|
|
|
|
|
|
|
|
``` sh
|
|
|
|
VTDATAROOT=... # $VTROOT/vt if not set
|
|
|
|
VTPORTSTART=15000
|
|
|
|
```
|
|
|
|
|
|
|
|
To run the tests:
|
|
|
|
|
|
|
|
``` sh
|
|
|
|
make # run the tests
|
|
|
|
```
|
|
|
|
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
Unless otherwise noted, the vitess source files are distributed
|
|
|
|
under the BSD-style license found in the LICENSE file.
|