vitess-gh/go
Adam Saponara e8b87f9469 Add `-db_connect_timeout_ms` for timing out mysqld conns.
While testing vttablet-mysqld over TCP, we noticed mysql.Connect
sometimes blocks forever if the backend mysqld hit max conns. This
patch adds a timeout to this codepath. It defaults to 0 (no timeout)
for back compatibility.

Signed-off-by: Adam Saponara <as@php.net>
2020-02-24 11:56:57 -05:00
..
acl
bucketpool
bytes2
cache
cacheservice
cmd Full pass on codebase. Need to double check later 2020-02-06 16:05:27 -08:00
event
exit
fileutil
flagutil
hack
history
ioutil2
json2
jsonutil
memcache
mysql Add `-db_connect_timeout_ms` for timing out mysqld conns. 2020-02-24 11:56:57 -05:00
netutil replace strings.TrimRight with strings.TrimSuffix and fix typo 2019-12-04 11:07:27 +08:00
pools Move flaky test to _flaky_ 2020-01-01 10:39:27 -07:00
proc Full pass on codebase. Need to double check later 2020-02-06 16:05:27 -08:00
race
ratelimiter
sqlescape
sqltypes Full pass on codebase. Need to double check later 2020-02-06 16:05:27 -08:00
stats Add test for issue #5599 2019-12-19 19:27:40 -08:00
streamlog
sync2
tb
test/endtoend vtworker tests migrated in go (#5794) 2020-02-18 17:31:49 -08:00
testfiles
timer
trace Support additional SHOW synatx 2020-01-20 13:32:12 -08:00
vt Add `-db_connect_timeout_ms` for timing out mysqld conns. 2020-02-24 11:56:57 -05:00
vtbench
zk/zkctl
README.md

README.md

This directory contains all the Go code for Vitess.

Most of the packages at the top level are general-purpose and are suitable for use outside Vitess. Packages that are specific to Vitess are in the vt subdirectory. Binaries are in the cmd subdirectory.

Please see GoDoc for a listing of the packages and their purposes.

vt/proto contains the compiled protos for go, one per each directory. When importing these protos (for instance XXX.proto), we rename them on import to XXXpb. For instance:

import (
    topodatapb "vitess.io/vitess/go/vt/proto/topodata"
)