Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

murron logger #107

Open
wants to merge 145 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
8f0bc14
add an error log if creating the app connection fails
demmer Jan 3, 2018
f786a06
add a reusable mysqlproxy module
demmer Jan 8, 2018
5e7254e
add vtqueryserver
demmer Jan 8, 2018
bb33739
resolve upstream conflict
demmer Jan 24, 2018
e1fdd3e
refactor vtqueryserver startup to enable testing
demmer Jan 26, 2018
a75a754
add initial end to end test for vtqueryserver
demmer Jan 26, 2018
45ad926
rework the proxy implementation of autocommit to match mysql
demmer Jan 27, 2018
2b3048f
add accessors to set PassthroughDMLs and AllowUnsafeDMLs
demmer Jan 27, 2018
0ea8013
add vtqueryserver tests for passthrough DMLs
demmer Jan 27, 2018
bc7ffa9
add vtqueryserver flag for allow_unsafe_dmls
demmer Jan 27, 2018
4a44d25
add proxy support for other statements
demmer Jan 29, 2018
d48e84a
Merge branch 'vtqueryserver' into slack-sync-upstream-2018-01-29
demmer Jan 29, 2018
732edb1
Merge pull request #67 from tinyspeck/slack-sync-upstream-2018-01-29
demmer Jan 29, 2018
b6703a7
remove debugging printf
demmer Jan 31, 2018
80d72ac
Merge pull request #68 from tinyspeck/vtqueryserver-remove-stray-comment
rafael Jan 31, 2018
2c103b7
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Feb 5, 2018
edc17cd
Merge pull request #70 from tinyspeck/slack-sync-upstream-2018-02-05
demmer Feb 5, 2018
c45710b
add support for `USING <identifier>` to CREATE TABLE
demmer Feb 6, 2018
30c6a69
Add support for trailing comments in begin/commit/rollback statements
rafael Jan 31, 2018
12124b0
nit - only get trimmed comments when needed
rafael Feb 1, 2018
028ab88
Added comment per code review
rafael Feb 1, 2018
8ad6f9a
nit - improve comment
rafael Feb 1, 2018
5284aee
Rewrote comment to make it clearer
rafael Feb 1, 2018
713273a
Merge pull request #71 from tinyspeck/slack-sync-upstream/2018-02-07
rafael Feb 7, 2018
71d4662
Fix for show vindexes, not picking the correct stat
rafael Feb 3, 2018
0ce5f56
Merge pull request #72 from tinyspeck/slack-sync-upstream/2018-02-07
rafael Feb 7, 2018
1faab99
Revert "Merge pull request #71 from tinyspeck/slack-sync-upstream/201…
demmer Feb 15, 2018
087bf39
Revert "Merge pull request #72 from tinyspeck/slack-sync-upstream/201…
demmer Feb 15, 2018
ac980b0
Revert "Merge pull request #68 from tinyspeck/vtqueryserver-remove-st…
demmer Feb 15, 2018
6a6c28f
Revert "Merge branch 'vtqueryserver' into slack-sync-upstream-2018-01…
demmer Feb 15, 2018
4c9950e
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Feb 15, 2018
406223d
Merge pull request #73 from tinyspeck/slack-sync-upstream-2018-02-14
rafael Feb 15, 2018
a3740e4
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Feb 27, 2018
dbf4e3c
Merge pull request #75 from tinyspeck/slack-sync-upstream-2018-02-27
demmer Feb 27, 2018
56bcfc0
Merge remote-tracking branch 'upstream/master' into HEAD
demmer Feb 28, 2018
2e0839f
Merge pull request #77 from tinyspeck/slack-sync-upstream-2018-02-28
demmer Mar 2, 2018
e444aa9
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
rafael Mar 13, 2018
1e434d5
Merge pull request #80 from tinyspeck/slack-sync-upstream-2018-03-13
rafael Mar 13, 2018
48058d7
Update vendor.json with the `promhttp` package and a newer `prometheus`
zmagg Mar 20, 2018
d2ae8b1
Merge pull request #81 from tinyspeck/zmagg_prom_vendor
demmer Mar 20, 2018
076905a
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Mar 21, 2018
6603271
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Mar 21, 2018
6004768
update bootstrap script to include better diagnostics of versions
demmer Mar 21, 2018
1657d68
use consul version 1.0.6 in bootstrap
demmer Mar 21, 2018
d133945
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Mar 22, 2018
2b031e9
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Mar 22, 2018
cbf4d0a
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Mar 26, 2018
8e8ed6b
Merge pull request #82 from tinyspeck/slack-sync-upstream-2018-03-20
demmer Mar 26, 2018
f0a7ce8
Merge branch 'upstream-master' into slack-vitess-2018.03.26r1
rafael Mar 27, 2018
58dc112
Merge pull request #83 from tinyspeck/slack-vitess-2018.03.26r1
demmer Mar 27, 2018
6388917
Merge remote-tracking branch 'upstream/master' into slack-vitess-2018…
demmer Apr 18, 2018
849ffc3
Merge branch 'query-comment-multi-shard-autocommit' into slack-vitess…
demmer Apr 18, 2018
069b4c4
Merge pull request #84 from tinyspeck/slack-vitess-2018-04-18
demmer Apr 18, 2018
3a56abf
Merge pull request #85 from tinyspeck/slack-vitess-2018-04-23
zmagg Apr 23, 2018
a149d8c
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer May 6, 2018
021b5a1
Merge pull request #89 from tinyspeck/slack-sync-upstream-2018-05-06
demmer May 7, 2018
9d1f5ad
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer May 8, 2018
b5b4f25
Merge pull request #90 from tinyspeck/slack-sync-upstream-2018-05-08
demmer May 8, 2018
5c7c16a
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer May 18, 2018
270e40d
Merge pull request #91 from tinyspeck/slack-sync-upstream-2018.05.18r0
demmer May 18, 2018
a95cf5d
Merge branch 'upstream-master' into slack-sync-upstream-2018.05.18r1
rafael May 18, 2018
c0131dd
Merge pull request #92 from tinyspeck/slack-sync-upstream-2018.05.18r1
demmer May 18, 2018
912b77a
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer May 31, 2018
b37292c
Merge pull request #94 from tinyspeck/slack-sync-upstream-2018.05.31r0
demmer May 31, 2018
a843eca
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Jun 26, 2018
872c810
Merge remote-tracking branch 'upstream/master' into slack-sync-upstre…
demmer Jun 26, 2018
1bfab51
Merge pull request #95 from tinyspeck/slack-sync-upstream-2018.06.25r0
demmer Jun 27, 2018
7c02d4a
drop the "from" clause in "show tables from dbname like 'foo%'"
Jun 14, 2018
4db5146
re-add support for: show full columns from messages from test_keyspac…
Jun 28, 2018
d954c87
make 'columns' not reserved keyword
Jun 29, 2018
9bdf26d
Merge pull request #96 from tinyspeck/slack-sync-upstream-2018.06.25r1
rafael Jul 2, 2018
b6657a6
Merge pull request #98 from tinyspeck/slack-sync-upstream-2018.07.09r0
zmagg Jul 10, 2018
3c6edab
Fix bug found in dev: Orchestrator returns an empty length
zmagg Jul 11, 2018
fc6efa7
Merge pull request #99 from tinyspeck/fix-orc-empty-response-audit-re…
rafael Jul 16, 2018
a2eca07
Merge branch 'upstream-master' into slack-sync-upstream-2018.08.09r1
rafael Aug 9, 2018
ca9a475
Merge pull request #102 from tinyspeck/slack-sync-upstream-2018.08.09r1
rafael Aug 10, 2018
de3d57d
restore the deprecated user-specific "dbname" flags
demmer Aug 6, 2018
1852654
fix typo and use DeprecatedDBName properly
demmer Aug 6, 2018
bb9395b
Set the keepalive server-side enforcement policy min time, so that
zmagg Aug 10, 2018
eb89227
Change the flag name to respond to code review.
zmagg Aug 10, 2018
9b04fe0
Use the new variable name.
zmagg Aug 10, 2018
55fad60
Merge pull request #103 from tinyspeck/slack-sync-upstream-2018.08.09r2
rafael Aug 13, 2018
75f839c
add a callinfo implementation for the mysql server protocol
demmer Aug 23, 2018
01f13d7
rework the grpc callinfo to include the peer remote address
demmer Aug 23, 2018
5a0427e
Merge pull request #104 from tinyspeck/sync-grpc-improvements
demmer Aug 24, 2018
acde621
Flush binlog while doing a PlannedReparent
rafael Aug 28, 2018
977bad0
We want this to make it to the binlogs
rafael Aug 28, 2018
213d7bb
Need to implement interface in vtcombo
rafael Aug 28, 2018
105c0a4
Try backups with buffer io
rafael Aug 29, 2018
fafc339
Merge pull request #105 from tinyspeck/slack-flush-binlogs-reparent-2…
rafael Aug 29, 2018
3532aa5
Revert "Try backups with buffer io"
rafael Aug 29, 2018
29455c5
Merge pull request #106 from tinyspeck/revert-sneak-commit
rafael Aug 29, 2018
919d300
Revert "Need to implement interface in vtcombo"
rafael Sep 6, 2018
cc60d79
Revert "We want this to make it to the binlogs"
rafael Sep 6, 2018
6f4aa06
Revert "Flush binlog while doing a PlannedReparent"
rafael Sep 6, 2018
3aae38a
Merge pull request #108 from tinyspeck/revert-flush-binary-logs
rafael Sep 6, 2018
aa65baf
Merge pull request #109 from tinyspeck/slack-vitess-2018-09-06.r0
zmagg Sep 11, 2018
5a548fd
Initial import of change to parallelize backup compresion
ameetkotian Sep 17, 2018
fa2da1f
Merge pull request #111 from tinyspeck/slack-vitess-2018.10.02.r0
demmer Oct 2, 2018
90d7280
Follow the MySQL handshake protocol and send 10 NULL bytes
arthurnn Oct 12, 2018
21c6a53
Merge pull request #112 from tinyspeck/fix-null-10b-handshake-patch
demmer Oct 18, 2018
327fea1
Fix golint install in bootstrap.sh
Oct 12, 2018
98541a7
Merge pull request #113 from tinyspeck/fix-golint-install
demmer Oct 18, 2018
131fc36
Merge branch 'upstream-master' into slack-vitess-2018-10-29.r0
rafael Oct 29, 2018
47de436
Merge pull request #115 from tinyspeck/slack-vitess-2018-10-29.r0
rafael Oct 29, 2018
c8c34f4
change s3_backup_aws_region flag to `""`
Oct 30, 2018
b8316de
Improve warning so it's not that verbose.
rafael Oct 29, 2018
b865bb0
Merge pull request #116 from tinyspeck/slack-vitess-2018-10-29.r1
rafael Oct 30, 2018
b0bbbdb
Merge pull request #118 from tinyspeck/slack-vitess-2018-12-3.r0
rafael Dec 3, 2018
3dab956
Merge pull request #119 from tinyspeck/slack-vitess-2018-12-3.r1
rafael Dec 5, 2018
55a4edd
Merge remote-tracking branch 'upstream/master' into setassociative-me…
setassociative Dec 14, 2018
06241e2
Merge pull request #120 from tinyspeck/20181214-merge-upstream
setassociative Dec 14, 2018
6e4f991
List all tablets in all cells
rafael Dec 17, 2018
c8023fe
Refactor to not require a new command
rafael Dec 17, 2018
ac8d661
Add region context to aggr stats
rafael Dec 15, 2018
6e95f14
Adds tests for discovery gateway aggregate stats
rafael Dec 15, 2018
0befc7e
Change implementation to have aggregates per region
rafael Dec 16, 2018
a51c547
Refactor test to make it even more generic. Remove extra line in stru…
rafael Dec 16, 2018
4c147f5
Merge pull request #121 from tinyspeck/slack-sync-upstream-2018-12-17.r1
rafael Dec 17, 2018
4ec10eb
Revert "Refactor test to make it even more generic. Remove extra line…
rafael Dec 21, 2018
46d4d28
Revert "Change implementation to have aggregates per region"
rafael Dec 21, 2018
de85143
Revert "Adds tests for discovery gateway aggregate stats"
rafael Dec 21, 2018
49b98be
Revert "Add region context to aggr stats"
rafael Dec 21, 2018
3ca419e
Merge branch 'upstream-master' into slack-sync-upstream-2018-12-21.r1
rafael Dec 21, 2018
1a994d9
Merge pull request #123 from tinyspeck/slack-sync-upstream-2018-12-21.r1
rafael Jan 7, 2019
a74cdc1
Merge branch 'upstream-master' into slack-sync-vreplication-2019-01-29
rafael Jan 30, 2019
4a1cdfc
Merge branch 'upstream-master' into slack-sync-2019-01-30
rafael Jan 31, 2019
a2550c5
Merge pull request #125 from tinyspeck/slack-sync-2019-01-30
rafael Jan 31, 2019
f0d747a
Patch sqltypes.MakeRowTrusted to lean on field count (#126)
setassociative Feb 25, 2019
bf58a28
Merge pull request #127 from tinyspeck/slack-vitess-2019.03.19r0
zmagg Mar 22, 2019
e59cf9d
Fix potential nil pointer error
rafael Mar 28, 2019
191da8d
Merge pull request #128 from tinyspeck/slack-vitess-2019.03.19r1
rafael Mar 28, 2019
6351eba
Refactor region to aliases
rafael Mar 28, 2019
5021e65
Adds tests and fixes typo in vtctl command
rafael Apr 2, 2019
d082714
Merge branch 'upstream-master' into slack-vitess-2019-04-02.r0
rafael Apr 2, 2019
f6b9ff4
Merge branch 'upstream-master' into slack-vitess-2019-04-02.r0
rafael Apr 2, 2019
bf603d5
Merge pull request #129 from tinyspeck/slack-vitess-2019-04-02.r0
rafael Apr 3, 2019
3489b15
Merge upstream 2019-04-25 (#130)
setassociative Apr 26, 2019
1d7a89c
[dbconfigs] revert vitessio/vitess#4814 as it breaks tablet utf8mb4 s…
brirams May 23, 2019
64ce96f
add skeleton plugins for writing query logs to murron
demmer May 23, 2018
7864c0e
consolidate the flags and add stubs for an actual murron logger
demmer May 24, 2018
4cee5c6
add murron vendor dependencies
demmer Aug 28, 2018
546dc4e
fill in the implementation of an actual murron logger
demmer Aug 28, 2018
24f61a3
move murron log type configuration into a command line flag
demmer Sep 4, 2018
b1ee364
update murron to the latest using vendor stuff
demmer Jun 7, 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
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 2017 Google Inc.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -186,7 +186,7 @@ docker_base_mysql56:

docker_base_mysql80:
chmod -R o=g *
docker build -f docker/base/Dockerfile.mysql56 -t vitess/base:mysql80 .
docker build -f docker/base/Dockerfile.mysql80 -t vitess/base:mysql80 .

docker_base_mariadb:
chmod -R o=g *
Expand All @@ -206,7 +206,7 @@ docker_base_percona57:

docker_base_percona80:
chmod -R o=g *
docker build -f docker/base/Dockerfile.percona57 -t vitess/base:percona80 .
docker build -f docker/base/Dockerfile.percona80 -t vitess/base:percona80 .

# Run "make docker_lite PROMPT_NOTICE=false" to avoid that the script
# prompts you to press ENTER and confirm that the vitess/base image is not
Expand Down
32 changes: 23 additions & 9 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,22 @@ function install_etcd() {
local version="$1"
local dist="$2"

case $(uname) in
Linux) local platform=linux; local ext=tar.gz;;
Darwin) local platform=darwin; local ext=zip;;
esac

download_url=https://github.com/coreos/etcd/releases/download
tar_file="etcd-${version}-linux-amd64.tar.gz"
file="etcd-${version}-${platform}-amd64.${ext}"

wget "$download_url/$version/$tar_file"
tar xzf "$tar_file"
rm "$tar_file"
ln -snf "$dist/etcd-${version}-linux-amd64/etcd" "$VTROOT/bin/etcd"
wget "$download_url/$version/$file"
if [ "$ext" = "tar.gz" ]; then
tar xzf "$file"
else
unzip "$file"
fi
rm "$file"
ln -snf "$dist/etcd-${version}-${platform}-amd64/etcd" "$VTROOT/bin/etcd"
}
install_dep "etcd" "v3.3.10" "$VTROOT/dist/etcd" install_etcd

Expand All @@ -211,9 +220,14 @@ function install_consul() {
local version="$1"
local dist="$2"

case $(uname) in
Linux) local platform=linux;;
Darwin) local platform=darwin;;
esac

download_url=https://releases.hashicorp.com/consul
wget "${download_url}/${version}/consul_${version}_linux_amd64.zip"
unzip "consul_${version}_linux_amd64.zip"
wget "${download_url}/${version}/consul_${version}_${platform}_amd64.zip"
unzip "consul_${version}_${platform}_amd64.zip"
ln -snf "$dist/consul" "$VTROOT/bin/consul"
}
install_dep "Consul" "1.4.0" "$VTROOT/dist/consul" install_consul
Expand Down Expand Up @@ -325,13 +339,13 @@ if [ "$BUILD_TESTS" == 1 ] ; then
echo "MYSQL_FLAVOR environment variable not set. Using default: $MYSQL_FLAVOR"
fi
case "$MYSQL_FLAVOR" in
"MySQL56")
"MySQL56" | "MySQL80")
myversion="$("$VT_MYSQL_ROOT/bin/mysql" --version)"
[[ "$myversion" =~ Distrib\ 5\.[67] || "$myversion" =~ Ver\ 8\. ]] || fail "Couldn't find MySQL 5.6+ in $VT_MYSQL_ROOT. Set VT_MYSQL_ROOT to override search location."
echo "Found MySQL 5.6+ installation in $VT_MYSQL_ROOT."
;;

"MariaDB" | "MariaDB103" )
"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
21 changes: 15 additions & 6 deletions config/init_db.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# This file is executed immediately after mysql_install_db,
# to initialize a fresh data directory.

##########################################
###############################################################################
# WARNING: This sql is *NOT* safe for production use,
# as it contains default well-known users and passwords.
# Care should be taken to change these users and passwords
# for production.
###############################################################################

###############################################################################
# Equivalent of mysql_secure_installation
##########################################
###############################################################################

# Changes during the init db should not make it to the binlog.
# They could potentially create errant transactions on replicas.
Expand All @@ -17,9 +24,9 @@ DELETE FROM mysql.user WHERE User = 'root' AND Host != 'localhost';
# Remove test database.
DROP DATABASE IF EXISTS test;

##########################################
###############################################################################
# Vitess defaults
##########################################
###############################################################################

# Vitess-internal database.
CREATE DATABASE IF NOT EXISTS _vt;
Expand All @@ -28,12 +35,14 @@ CREATE DATABASE IF NOT EXISTS _vt;
CREATE TABLE IF NOT EXISTS _vt.local_metadata (
name VARCHAR(255) NOT NULL,
value VARCHAR(255) NOT NULL,
PRIMARY KEY (name)
db_name VARBINARY(255) NOT NULL,
PRIMARY KEY (db_name, name)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS _vt.shard_metadata (
name VARCHAR(255) NOT NULL,
value MEDIUMBLOB NOT NULL,
PRIMARY KEY (name)
db_name VARBINARY(255) NOT NULL,
PRIMARY KEY (db_name, name)
) ENGINE=InnoDB;

# Admin user with all privileges.
Expand Down
2 changes: 1 addition & 1 deletion config/mycnf/default-fast.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
innodb_lock_wait_timeout = 20
innodb_log_buffer_size = 1M
innodb_log_file_size = 1M
innodb_log_file_size = 4M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = {{.InnodbLogGroupHomeDir}}
innodb_max_dirty_pages_pct = 75
Expand Down
38 changes: 38 additions & 0 deletions config/mycnf/master_mysql80.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Options for enabling GTID
# https://dev.mysql.com/doc/refman/5.6/en/replication-gtids-howto.html
gtid_mode = ON
log_bin
log_slave_updates
enforce_gtid_consistency

# Crash-safe replication settings.
master_info_repository = TABLE
relay_log_info_repository = TABLE
relay_log_purge = 1
relay_log_recovery = 1

# Native AIO tends to run into aio-max-nr limit during test startup.
innodb_use_native_aio = 0

# Semi-sync replication is required for automated unplanned failover
# (when the master goes away). Here we just load the plugin so it's
# available if desired, but it's disabled at startup.
#
# If the -enable_semi_sync flag is used, VTTablet will enable semi-sync
# at the proper time when replication is set up, or when masters are
# promoted or demoted.
plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so

# When semi-sync is enabled, don't allow fallback to async
# if you get no ack, or have no slaves. This is necessary to
# prevent alternate futures when doing a failover in response to
# a master that becomes unresponsive.
rpl_semi_sync_master_timeout = 1000000000000000000
rpl_semi_sync_master_wait_no_slave = 1

# disable mysqlx
mysqlx = 0

# 8.0 changes the default auth-plugin to caching_sha2_password
default_authentication_plugin = mysql_native_password
secure_file_priv = NULL
2 changes: 1 addition & 1 deletion doc/ServerConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ VTTablet requires multiple user credentials to perform its tasks. Since it's req

**connection** parameters

* **db\_socket**: The unix socket to connect on. If this is specifed, host and port will not be used.
* **db\_socket**: The unix socket to connect on. If this is specified, host and port will not be used.
* **db\_host**: The host name for the tcp connection.
* **db\_port**: The tcp port to be used with the db\_host.
* **db\_charset**: Character set. Only utf8 or latin1 based character sets are supported.
Expand Down
4 changes: 2 additions & 2 deletions doc/TopologyService.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ all cells to route traffic. Note this is necessary to access the master in
another cell.

After the extension to two cells, the original topo service contains both the
global topology data, and the first cell topology data. The more symetrical
global topology data, and the first cell topology data. The more symmetrical
configuration we're after would be to split that original service into two: a
global one that only contains the global data (spread across both cells), and a
local one to the original cells. To achieve that split:
Expand All @@ -471,7 +471,7 @@ local one to the original cells. To achieve that split:
* Remove all remaining data in the global topology service that are in the old
local server root.

After this split, the configuration is completely symetrical:
After this split, the configuration is completely symmetrical:

* a global topology service, with servers in all cells. Only contains global
topology data about Keyspaces, Shards and VSchema. Typically it has 5 servers
Expand Down
2 changes: 1 addition & 1 deletion doc/VTTabletModes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Specifically, the absence of a my.cnf file indicates to vttablet that it's conne

Even if a MySQL is remote, you can still make vttablet perform some management functions. They are as follows:

* `-disable_active_reparents`: If this flag is set, then any reparent or slave commands will not be allowed. These are InitShardMaster, PlannedReparent, PlannedReparent, EmergencyReparent, and ReparentTablet. In this mode, you should use the TabletExternallyReparented command to inform vitess of the current master.
* `-disable_active_reparents`: If this flag is set, then any reparent or slave commands will not be allowed. These are InitShardMaster, PlannedReparent, EmergencyReparent, and ReparentTablet. In this mode, you should use the TabletExternallyReparented command to inform vitess of the current master.
* `-master_connect_retry`: This value is give to mysql when it connects a slave to the master as the retry duration parameter.
* `-enable_replication_reporter`: If this flag is set, then vttablet will transmit replica lag related information to the vtgates, which will allow it to balance load better. Additionally, enabling this will also cause vttablet to restart replication if it was stopped. However, it will do this only if -disable_active_reparents was not turned on.
* `-enable_semi_sync`: This option will automatically enable semi-sync on new replicas as well as on any tablet that transitions into a replica type. This includes the demotion of a master to a replica.
Expand Down
10 changes: 5 additions & 5 deletions doc/VitessApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ The following table lists the methods in each group and links to more detail abo
<tr><td class="api-method-summary-group" colspan="2">v3 API (alpha)</td></tr>
<tr>
<td><code><a href="#execute">Execute</a></code></td>
<td>Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query.</td>
<td>Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query.</td>
</tr>
<tr>
<td><code><a href="#streamexecute">StreamExecute</a></code></td>
<td>StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query. Use this method if the query returns a large number of rows.</td>
<td>StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query. Use this method if the query returns a large number of rows.</td>
</tr>
</table>
##Range-based Sharding
Expand Down Expand Up @@ -572,7 +572,7 @@ GetSrvKeyspace returns a SrvKeyspace object (as seen by this vtgate). This metho
##v3 API (alpha)
### Execute

Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query.
Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query.

#### Request

Expand Down Expand Up @@ -604,7 +604,7 @@ Execute tries to route the query to the right shard. It depends on the query and

### StreamExecute

StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query. Use this method if the query returns a large number of rows.
StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query. Use this method if the query returns a large number of rows.

#### Request

Expand Down Expand Up @@ -839,7 +839,7 @@ Field describes a single column returned by a query
| <code>org_name</code> <br>string| |
| <code>column_length</code> <br>uint32| column_length is really a uint32. All 32 bits can be used. |
| <code>charset</code> <br>uint32| charset is actually a uint16. Only the lower 16 bits are used. |
| <code>decimals</code> <br>uint32| decimals is actualy a uint8. Only the lower 8 bits are used. |
| <code>decimals</code> <br>uint32| decimals is actually a uint8. Only the lower 8 bits are used. |
| <code>flags</code> <br>uint32| flags is actually a uint16. Only the lower 16 bits are used. |

### query.QueryResult
Expand Down
2 changes: 1 addition & 1 deletion doc/VitessSequences.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Let's start by looking at the MySQL auto-increment feature:

An early design was to use a single unsharded database and a table with an
auto-increment value to generate new values. However, this has serious
limitations, in particular throughtput, and storing one entry for each value in
limitations, in particular throughput, and storing one entry for each value in
that table, for no reason.

So we decided instead to base sequences on a MySQL table, and use a single value
Expand Down
2 changes: 1 addition & 1 deletion doc/VitessTransportSecurityModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ When using gRPC transport, Vitess can use the usual TLS security features
* grpc\_cert, grpc\_key: server cert and key to use.
* grpc\_ca (optional): client cert chains to trust. If specified, the client
must use a certificate signed by one ca in the provided file.
* A Vitess go client can be configured with symetrical parameters to enable TLS:
* A Vitess go client can be configured with symmetrical parameters to enable TLS:
* ...\_grpc\_ca: list of server cert signers to trust.
* ...\_grpc\_server\_name: name of the server cert to trust, instead of the
hostname used to connect.
Expand Down
4 changes: 2 additions & 2 deletions doc/meetups_notes/06-14-2018.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Meeting started at 8am PDT on Zoom.

### New Vitess Logo / Logo Changes

We kicked off the meeting talking about the first agenda item, *Vitess's new logo*. The new logo was mooted in the first place because of its current similarites to [Vivid IT Corp](https://www.vividitcorp.com/).
We kicked off the meeting talking about the first agenda item, *Vitess's new logo*. The new logo was mooted in the first place because of its current similarities to [Vivid IT Corp](https://www.vividitcorp.com/).

Based on [logos](https://docs.google.com/forms/d/e/1FAIpQLScp5hGY98vpRMxs3oRT8c-XJ_b04ei6uCFiYiQe3nDunFbyuw/viewform) created with CNCF's help, logos 1 and 4 got the highest no of votes.

Expand Down Expand Up @@ -124,7 +124,7 @@ We are looking for 5 engineers. Job scope at [our site](https://planetscale.com/

We discussed that we need to work on / update official roadmap.

Question from Ameet about whether there's anything on ther roadmap for online backups, because increasingly backups take more time.
Question from Ameet about whether there's anything on the roadmap for online backups, because increasingly backups take more time.

Sugu says there are 500 lines of code re backup. But we will discuss this in our roadmap discussions.

Expand Down
2 changes: 1 addition & 1 deletion doc/vtctlReference.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Validates that all nodes reachable from the specified keyspace are consistent.

### WaitForDrain

Blocks until no new queries were observed on all tablets with the given tablet type in the specifed keyspace. This can be used as sanity check to ensure that the tablets were drained after running vtctl MigrateServedTypes and vtgate is no longer using them. If -timeout is set, it fails when the timeout is reached.
Blocks until no new queries were observed on all tablets with the given tablet type in the specified keyspace. This can be used as sanity check to ensure that the tablets were drained after running vtctl MigrateServedTypes and vtgate is no longer using them. If -timeout is set, it fails when the timeout is reached.

#### Example

Expand Down
10 changes: 8 additions & 2 deletions docker/bootstrap/Dockerfile.mariadb
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM vitess/bootstrap:common

# Install MariaDB 10
RUN apt-get update \
RUN apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bzip2 \
mariadb-server \
libmariadbclient-dev \
&& rm -rf /var/lib/apt/lists/*
libdbd-mysql-perl \
rsync \
libev4 \
&& rm -rf /var/lib/apt/lists/* \
&& wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.13/binary/debian/stretch/x86_64/percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb \
&& dpkg -i percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb \
&& rm -f percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess
Expand Down
9 changes: 6 additions & 3 deletions docker/bootstrap/Dockerfile.mysql56
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ FROM vitess/bootstrap:common
# Install MySQL 5.6
RUN for i in $(seq 1 10); do apt-key adv --no-tty --recv-keys --keyserver pool.sks-keyservers.net 5072E1F5 && break; done && \
add-apt-repository 'deb http://repo.mysql.com/apt/debian/ stretch mysql-5.6' && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev && \
rm -rf /var/lib/apt/lists/*
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev libdbd-mysql-perl rsync libev4 && \
rm -rf /var/lib/apt/lists/* && \
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.13/binary/debian/stretch/x86_64/percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
dpkg -i percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
rm -f percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess
Expand Down
9 changes: 6 additions & 3 deletions docker/bootstrap/Dockerfile.mysql57
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ FROM vitess/bootstrap:common
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gnupg dirmngr ca-certificates && \
for i in $(seq 1 10); do apt-key adv --no-tty --recv-keys --keyserver ha.pool.sks-keyservers.net 5072E1F5 && break; done && \
add-apt-repository 'deb http://repo.mysql.com/apt/debian/ stretch mysql-5.7' && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev && \
rm -rf /var/lib/apt/lists/*
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev libdbd-mysql-perl rsync libev4 && \
rm -rf /var/lib/apt/lists/* && \
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.13/binary/debian/stretch/x86_64/percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
dpkg -i percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
rm -f percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess
Expand Down
13 changes: 8 additions & 5 deletions docker/bootstrap/Dockerfile.mysql80
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
FROM vitess/bootstrap:common

# Install MySQL 5.7
# Install MySQL 8.0
RUN for i in $(seq 1 10); do apt-key adv --no-tty --recv-keys --keyserver ha.pool.sks-keyservers.net 8C718D3B5072E1F5 && break; done && \
add-apt-repository 'deb http://repo.mysql.com/apt/debian/ stretch mysql-8.0' && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev && \
rm -rf /var/lib/apt/lists/*
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev libdbd-mysql-perl rsync libev4 && \
rm -rf /var/lib/apt/lists/* && \
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-8.0.4/binary/debian/stretch/x86_64/percona-xtrabackup-80_8.0.4-1.stretch_amd64.deb && \
dpkg -i percona-xtrabackup-80_8.0.4-1.stretch_amd64.deb && \
rm -f percona-xtrabackup-80_8.0.4-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess


ENV MYSQL_FLAVOR MySQL56
ENV MYSQL_FLAVOR MySQL80
USER vitess
RUN ./bootstrap.sh
Loading