Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
6443477
Return TabletManager.GetPermissions results in a consistent order
dweitzman Feb 27, 2019
1cf413f
Add `-topo_zk_auth_file` flag
adsr Mar 18, 2019
50081c3
update docs
xichengliudui Mar 18, 2019
a44eaf6
Fix hyperlink formatting error
xichengliudui Mar 18, 2019
001961e
Fix 404 not found
xichengliudui Mar 19, 2019
1cc8d0a
Add doc comments back in
adsr Mar 21, 2019
8548f90
avoid taking locks if there's no work to do
demmer Mar 22, 2019
095cd67
Removes debugging purpose code
Mar 25, 2019
933307f
Merge pull request #4753 from tinyspeck/cleanup-test-code
rafael Mar 25, 2019
c15d629
Make zookeeper version adjustable (ZK_VERSION env)
adsr Mar 25, 2019
f771a8b
Add vtexplain Dockerfile
vitalii-stoian Mar 27, 2019
ab6108e
Merge pull request #4750 from xichengliudui/Fix-residual-hyperlink
deepthi Mar 27, 2019
c02446b
Merge pull request #4749 from xichengliudui/update-doc-190325
deepthi Mar 27, 2019
75403bd
Merge pull request #4748 from xichengliudui/update-docs
deepthi Mar 27, 2019
ae7b400
Merge pull request #4755 from vitalii-stoian/vtexplain-dockerfile
dkhenry Mar 27, 2019
da8d0f6
tableacls: remove deprecated -legacy-table-acl option from vttablet
dweitzman Mar 28, 2019
40ea06b
Surface consistent snapshot option in the UI for vertical splits
tirsen Mar 7, 2019
96fb03b
Cleanup logs, comments and fix issue with rebuild keyspace in init_ta…
Mar 28, 2019
30a609d
Fix potential nil pointer error
Mar 28, 2019
ebcca2e
improve error message with more information
deepthi Mar 28, 2019
06acf3f
Merge pull request #4761 from tinyspeck/fix-nil-error
rafael Mar 28, 2019
c5cbfbf
Add flag for extending the transaction timeout in vttestserver
tirsen Mar 29, 2019
c91eff9
Merge pull request #4757 from planetscale/ds-log-error
deepthi Mar 29, 2019
6b5e7f1
Merge pull request #4763 from tirsen/jontirsen/2019-03-29/vttest-tran…
deepthi Mar 29, 2019
2b9a55a
Add annotations value to EtcdCluster in helm chart to make etcd clust…
ch3rub1m Mar 29, 2019
ee7bbef
Add some comments for cluster wide etcd operator
ch3rub1m Mar 29, 2019
8ae7c0b
Update tests
Mar 29, 2019
02a7f13
Updating bootstrap containers for automated builds
Mar 29, 2019
1506d22
Update docker/bootstrap/Dockerfile.mariadb103
Mar 29, 2019
d7d1f86
Merge pull request #4766 from planetscale/dk-update-bootstrap-containers
deepthi Mar 30, 2019
f487e21
Merge pull request #4764 from ch3rub1m/feature-cluster-wide-etcd-oper…
derekperkins Mar 30, 2019
58ba47c
Merge pull request #4760 from tinyspeck/improvements-topo-refactor
sougou Mar 31, 2019
01de527
Merge pull request #4759 from systay/vertical-split
sougou Mar 31, 2019
3ece871
Merge pull request #4745 from tinyspeck/messager-avoid-needless-locks
sougou Mar 31, 2019
7c23d08
Merge pull request #4734 from adsr/patch-zk-version
sougou Mar 31, 2019
836c72c
Merge pull request #4733 from adsr/patch-zk-auth
sougou Mar 31, 2019
cb2c60c
Merge pull request #4694 from dweitzman/perms
sougou Mar 31, 2019
8d0c1a9
Merge pull request #4756 from dweitzman/legacy_table_acl
sougou Mar 31, 2019
9b79c76
correct the error parameter in the local example script
dcadevil Apr 1, 2019
b6cebb0
change the base for vtexplain image
vitalii-stoian Apr 1, 2019
eca098c
Bump default Zookeper version to 3.4.14
Apr 2, 2019
35c8588
Merge pull request #4770 from dcadevil/master
deepthi Apr 2, 2019
6351eba
Refactor region to aliases
Mar 28, 2019
5021e65
Adds tests and fixes typo in vtctl command
Apr 2, 2019
78a6102
Merge pull request #4778 from guidoiaquinti/master
rafael Apr 2, 2019
d082714
Merge branch 'upstream-master' into slack-vitess-2019-04-02.r0
Apr 2, 2019
1ac3986
Merge pull request #4774 from planetscale/vitalii-vtexplain
dkhenry Apr 2, 2019
fb6816f
Changing paths in bootstrap file
Apr 2, 2019
c1fb1ec
Adding proper gpg packages for bootstrap build
Apr 2, 2019
f24c04c
Merge pull request #4781 from planetscale/dk-fix-ant-build
dkhenry Apr 2, 2019
f6b9ff4
Merge branch 'upstream-master' into slack-vitess-2019-04-02.r0
Apr 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,16 @@ function install_zookeeper() {
local dist="$2"

zk="zookeeper-$version"
wget "http://apache.org/dist/zookeeper/$zk/$zk.tar.gz"
wget "https://apache.org/dist/zookeeper/$zk/$zk.tar.gz"
tar -xzf "$zk.tar.gz"
ant -f "$zk/build.xml" package
ant -f "$zk/zookeeper-contrib/zookeeper-contrib-fatjar/build.xml" jar
mkdir -p lib
cp "$zk/contrib/fatjar/$zk-fatjar.jar" lib
# TODO(sougou): when version changes, see if we can drop the 'zip -d' hack to get the fatjars working.
# If yes, also delete "zip" from the Dockerfile files and the manual build instructions again.
# 3.4.13 workaround: Delete META-INF files which should not be in there.
zip -d "lib/$zk-fatjar.jar" 'META-INF/*.SF' 'META-INF/*.RSA' 'META-INF/*SF'
cp "$zk/build/zookeeper-contrib/zookeeper-contrib-fatjar/zookeeper-dev-fatjar.jar" "lib/$zk-fatjar.jar"
zip -d "lib/$zk-fatjar.jar" 'META-INF/*.SF' 'META-INF/*.RSA' 'META-INF/*SF' || true # needed for >=3.4.10 <3.5
rm -rf "$zk" "$zk.tar.gz"
}
zk_ver=3.4.13
zk_ver=${ZK_VERSION:-3.4.14}
install_dep "Zookeeper" "$zk_ver" "$VTROOT/dist/vt-zookeeper-$zk_ver" install_zookeeper


Expand Down Expand Up @@ -332,7 +331,7 @@ if [ "$BUILD_TESTS" == 1 ] ; then
echo "Found MySQL 5.6+ installation in $VT_MYSQL_ROOT."
;;

"MariaDB")
"MariaDB" | "MariaDB103" )
myversion="$("$VT_MYSQL_ROOT/bin/mysql" --version)"
[[ "$myversion" =~ MariaDB ]] || fail "Couldn't find MariaDB in $VT_MYSQL_ROOT. Set VT_MYSQL_ROOT to override search location."
echo "Found MariaDB installation in $VT_MYSQL_ROOT."
Expand Down Expand Up @@ -364,7 +363,7 @@ if [ "$BUILD_TESTS" == 1 ] ; then
echo "bootstrap finished - run 'source dev.env' in your shell before building."
else
echo
echo "bootstrap finished - run 'source build.env' in your shell before building."
echo "bootstrap finished - run 'source build.env' in your shell before building."
fi


2 changes: 1 addition & 1 deletion doc/APIScope.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The conventions Vitess follow is:

## Execute API

The main entry point of a Vitess cluster is the 'Execute' call (or StreamExecute
The main entry point of a Vitess cluster is the `Execute` call (or StreamExecute
for streaming queries). It takes a keyspace, a tablet type, and a query. The
VSchema helps Vitess route the query to the right shard and tablet type. This is
the most transparent way of accessing Vitess. Keyspace is the database, and
Expand Down
2 changes: 1 addition & 1 deletion doc/AdvancedFeaturesIndex.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Advanced Features

The pages below this navigation entry "Advanced Features" can be understood as an addition to the "User Guide". Here we describe advanced Vitess features which you may want to enable or tune in a production setup.
The pages below this navigation entry `Advanced Features` can be understood as an addition to the `User Guide`. Here we describe advanced Vitess features which you may want to enable or tune in a production setup.

As of October 2017, many of these features are not documented yet. We plan to add pages for them later.

Expand Down
2 changes: 1 addition & 1 deletion doc/CodeReviews.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ We usually check these kinds of things while skimming through `git diff --cached
* Look for files that shouldn't be checked in (temporary/generated files).
* Googlers only: Remove Google confidential info (e.g. internal URLs).
* Look for temporary code/comments you added while debugging.
* Example: fmt.Println("AAAAAAAAAAAAAAAAAA")
* Example: fmt.Println(`AAAAAAAAAAAAAAAAAA`)
* Look for inconsistencies in indentation.
* Use 2 spaces in everything except Go.
* In Go, just use goimports.
Expand Down
2 changes: 1 addition & 1 deletion doc/Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To make sure you're writing idiomatic Go code, please read the following documen

* Go Readability slides: https://talks.golang.org/2014/readability.slide
* Talk about Go readability with many specific examples.
* "Effective Go": https://golang.org/doc/effective_go.html
* `Effective Go`: https://golang.org/doc/effective_go.html
* Recommendations for writing good Go code.
* Go Code Review Comments: https://github.com/golang/go/wiki/CodeReviewComments
* The closest thing to a style guide.
Expand Down
2 changes: 1 addition & 1 deletion doc/DesignDocs.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The pages below this navigation entry "Design Docs" represent the design considerations
The pages below this navigation entry `Design Docs` represent the design considerations
that went behind some of the features implemented. They may not be necessarily up-to-date.

Also, some of the ideas here may just be experimental proposals, and it's possible
Expand Down
5 changes: 2 additions & 3 deletions doc/DockerBuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Another alternative is to customize our Docker images and build them yourselves.
This is described below and involves building the `base` image first.
Then you can run our build script for the `lite` image which extracts the Vitess binaries from the built `base` image.

1. Install [Docker](https://www.docker.com/) on your workstation.
1. Install [Docker](https://docs.docker.com/v17.12/install/) on your workstation.

Our scripts also assume you can run the `docker` command without `sudo`,
which you can do by [setting up a docker group](https://docs.docker.com/engine/installation/linux/ubuntulinux/#create-a-docker-group).
Expand All @@ -22,8 +22,7 @@ Then you can run our build script for the `lite` image which extracts the Vitess

1. Go to your `src/vitess.io/vitess` directory.

1. Usually, you won't need to [build your own bootstrap image]
(https://github.com/vitessio/vitess/blob/master/docker/bootstrap/README.md)
1. Usually, you won't need to [build your own bootstrap image](https://github.com/vitessio/vitess/blob/master/docker/bootstrap/README.md)
unless you edit [bootstrap.sh](https://github.com/vitessio/vitess/blob/master/bootstrap.sh)
or [vendor.json](https://github.com/vitessio/vitess/blob/master/vendor/vendor.json),
for example to add new dependencies. If you do need it then build the
Expand Down
63 changes: 30 additions & 33 deletions doc/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ If you run into issues or have questions, please post on our

## Docker Build

To run Vitess in Docker, you can either use our pre-built images on [Docker Hub]
(https://hub.docker.com/u/vitess/), or build them yourself.
To run Vitess in Docker, you can either use our pre-built images on [Docker Hub](https://hub.docker.com/u/vitess/), or build them yourself.

### Docker Hub Images

Expand Down Expand Up @@ -79,7 +78,7 @@ In addition, Vitess requires the software and libraries listed below.
[MySQL 5.6](https://dev.mysql.com/downloads/mysql). You can use any
installation method (src/bin/rpm/deb), but be sure to include the client
development headers (`libmariadbclient-dev` or `libmysqlclient-dev`).

The Vitess development team currently tests against MariaDB 10.0.21
and MySQL 5.6.27.

Expand Down Expand Up @@ -117,7 +116,7 @@ In addition, Vitess requires the software and libraries listed below.
4. Select a lock service from the options listed below. It is technically
possible to use another lock server, but plugins currently exist only
for ZooKeeper, etcd and consul.
- ZooKeeper 3.4.13 is included by default.
- ZooKeeper 3.4.14 is included by default.
- [Install etcd v3.0+](https://github.com/coreos/etcd/releases).
If you use etcd, remember to include the `etcd` command
on your path.
Expand Down Expand Up @@ -152,28 +151,28 @@ In addition, Vitess requires the software and libraries listed below.
``` sh
$ sudo apt-get install openjdk-7-jre
```

#### OS X

1. [Install Homebrew](https://brew.sh/). If your /usr/local directory is not empty and you never used Homebrew before,
it will be
[mandatory](https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md)
it will be
[mandatory](https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md)
to run the following command:

``` sh
sudo chown -R $(whoami):admin /usr/local
```

2. On OS X, MySQL 5.6 has to be used, MariaDB doesn't work for some reason yet. It should be installed from Homebrew
(install steps are below).
3. If Xcode is installed (with Console tools, which should be bundled automatically since the 7.1 version), all
(`install steps are below`).

3. If Xcode is installed (with Console tools, which should be bundled automatically since the 7.1 version), all
the dev dependencies should be satisfied in this step. If no Xcode is present, it is necessary to install pkg-config.

``` sh
brew install pkg-config
```

4. ZooKeeper is used as lock service.

5. Run the following commands:
Expand All @@ -186,23 +185,23 @@ In addition, Vitess requires the software and libraries listed below.
pip install tox

```

6. The Vitess bootstrap script makes some checks for the go runtime, so it is recommended to have the following
commands in your ~/.profile or ~/.bashrc or ~/.zshrc or ~/.bash_profile:

``` sh
export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"
export PATH=/usr/local/go/bin:$PATH
export GOROOT=/usr/local/go
```

7. For the Vitess hostname resolving functions to work correctly, a new entry has to be added into the /etc/hosts file
with the current LAN IP address of the computer (preferably IPv4) and the current hostname, which you get by
typing the 'hostname' command in the terminal.
It is also a good idea to put the following line to [force the Go DNS resolver](https://golang.org/doc/go1.5#net)

It is also a good idea to put the following line to [force the Go DNS resolver](https://golang.org/doc/go1.5#net)
in your ~/.profile or ~/.bashrc or ~/.zshrc:

```
export GODEBUG=netdns=go
```
Expand All @@ -211,7 +210,7 @@ In addition, Vitess requires the software and libraries listed below.

1. Navigate to the directory where you want to download the Vitess
source code and clone the Vitess Github repo. After doing so,
navigate to the `src/vitess.io/vitess` directory. For go to work
navigate to the `src/vitess.io/vitess` directory. For go to work
correctly, you should create a symbolic link to this inide your ${HOME}/go/src

``` sh
Expand All @@ -238,7 +237,7 @@ In addition, Vitess requires the software and libraries listed below.

``` sh
# export VT_MYSQL_ROOT=/usr/local/mysql

# on OS X, this is the correct value:
export VT_MYSQL_ROOT=/usr/local/opt/mysql@5.6
```
Expand All @@ -255,7 +254,7 @@ In addition, Vitess requires the software and libraries listed below.
If your machine requires a proxy to access the Internet, you will need
to set the usual environment variables (e.g. `http_proxy`,
`https_proxy`, `no_proxy`).

Run the boostrap.sh script:

``` sh
Expand Down Expand Up @@ -361,7 +360,7 @@ lock service. ZooKeeper is included in the Vitess distribution.

Some Linux distributions ship with default file descriptor limits
that are too low for database servers. This issue could show up
as the database crashing with the message "too many open files".
as the database crashing with the message `too many open files`.

Check the system-wide `file-max` setting as well as user-specific
`ulimit` values. We recommend setting them above 100K to be safe.
Expand Down Expand Up @@ -415,7 +414,7 @@ lock service. ZooKeeper is included in the Vitess distribution.
turn is configured to point to the local instance. In our sample scripts,
they are both hosted in the same ZooKeeper service.

If you want to use Etcd as a distributed lock service, The following script
If you want to use Etcd as a distributed lock service, The following script
creates a Etcd instance:

``` sh
Expand All @@ -425,7 +424,7 @@ lock service. ZooKeeper is included in the Vitess distribution.
### example output:
# enter etcd2 env
# etcdmain: etcd Version: 3.X.X
# ...
# ...
# etcd start done...
```

Expand Down Expand Up @@ -463,9 +462,8 @@ lock service. ZooKeeper is included in the Vitess distribution.
1. **Start vttablets**

The `vttablet-up.sh` script brings up three vttablets, and assigns them to
a [keyspace]({% link overview/concepts.md %}#keyspace) and [shard]
({% link overview/concepts.md %}#shard) according to the variables
set at the top of the script file.
a [keyspace]({% link overview/concepts.md %}#keyspace) and [shard]({% link overview/concepts.md %}#shard)
according to the variables set at the top of the script file.

``` sh
vitess/examples/local$ ./vttablet-up.sh
Expand All @@ -485,9 +483,8 @@ lock service. ZooKeeper is included in the Vitess distribution.
see a keyspace named `test_keyspace` with a single shard named `0`.
This is what an unsharded keyspace looks like.

If you click on the shard box, you'll see a list of [tablets]
({% link overview/concepts.md %}#tablet) in that shard.
Note that it's normal for the tablets to be unhealthy at this point, since
If you click on the shard box, you'll see a list of [tablets]({% link overview/concepts.md %}#tablet)
in that shard. Note that it's normal for the tablets to be unhealthy at this point, since
you haven't initialized them yet.

You can also click the **STATUS** link on each tablet to be taken to its
Expand Down Expand Up @@ -586,11 +583,11 @@ lock service. ZooKeeper is included in the Vitess distribution.
In the examples, we are just using a single database with no specific
configuration. So we just need to make that (empty) configuration visible
for serving. This is done by running the following command:

``` sh
vitess/examples/local$ ./lvtctl.sh RebuildVSchemaGraph
```

(As it works, this command will not display any output.)

1. **Start vtgate**
Expand Down
Loading