Граф коммитов

35 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 54d19dd243 Merge pull request #2639 from HubSpot/auth-server-ldap
WIP: AuthServerLdap
2017-03-29 07:56:01 -07:00
Alex Charis 6a0d3738a0 *initial AuthServerLdap impl
*rename AuthServerConfig to AuthServerStatic
2017-03-24 10:04:07 -04:00
Alain Jobart dc6aad638c New version of golang/x/text packages.
The old version was somehow crashing in the unit tests on my WS. maybe
because I'm using go 1.8.
2017-03-23 14:07:04 -07:00
Michael Berlin a8e29355cb vendor: Pin the Protobuf Go generator to the latest version.
I've also regenerated all protobuf files.

Note that the new version has added getters for primitive types. Do NOT
use these getters and instead always use the field names instead.
2017-02-22 20:30:47 -08:00
Michael Berlin 4473e10e33 vendor: Remove standard package "context" from the configuration.
It doesn't make sense to vendor a standard package. With an empty revision this looks like it was a bogus entry anyway.

Fixes https://github.com/youtube/vitess/issues/2551.
2017-02-11 21:33:00 -08:00
Erez Louidor ca42fb254b Added transaction-throttler and connected it to tabletserver.
It uses vitess/go/vt/throttler with healthchecks to throttle transactions based on
replication lag.
2017-01-19 16:23:47 -08:00
Erez Louidor 8e57d2673a 1. Replaced the thread_throttler throttle() code with the golang.org/x/time/rate
token-bucket implementation.
2. Changed max_replication_lag_module to not increase the rate limit if the current
rate did not approach it.
2017-01-19 15:37:55 -08:00
Alain Jobart b983684b96 Implementing the Consul topology client.
This change adds full support for a Consul-based topology service.
See https://www.consul.io/ for more information.

- Adding consul server to bootstrap.sh for download.
- Adding client library to vendor.json.
- In unit tests, we start a dev Consul instance.
- Adding consul support in end-to-end tests.
  Also running the test in travis.
- Updating topo doc.
- Adding Consul to 2.1 features.
2017-01-05 08:55:02 -08:00
Alain Jobart 2eb97aaae7 New etcd 'etcd2' topology client implementation.
The new etcd2 topology service is the new more consistent version of the
etcd topology. It has the following improvements:

- Uses the same file structure as zk2topo. It then also uses the generic
  vtctld.Explorer as well.

- Uses the new etcd clientv3 library, with new key-value API and leases.
  It is not backwards compatible with the old etcd topology.

- Uses a configurable toplevel directory for topology data in global and
  local cells.

Vitess 2.1 will still include the old etcd topology client, but it will
be deprecated, and removed from Vitess 2.2. Use topo2topo binary to
upgrade, see documentation.

Implementation details:
- bootstrap.sh now downloads etcd.
- etcd is used in unit tests of the library, instead of using a mock.
- Fixing wrangler.InitTablet error return.
  And adding -allow_update to test calls, so they work anyway.
- Running tabletmanager.py for zookeeper, zk2, etcd, etcd2 flavors.
- Ignoring the 'test' tag for vendored libraries. See:
  https://github.com/kardianos/govendor#ignoring-build-tags-and-excluding-packages
- in end-to-end tests, restarting etcd to wipe it.
- publish web site.
2016-12-28 07:02:37 -08:00
Anthony Yeh 484dccaebc Update vendored gcloud libs. (#2390) 2016-12-19 16:29:19 -08:00
Michael Berlin ba6ca6083a vendor: Update protoc-gen-go to HEAD.
Used command:

$ govendor fetch github.com/golang/protobuf/protoc-gen-go/...
2016-11-06 22:06:36 -08:00
Michael Berlin 6d84918b2a vendor: Update Go grpc to 1.0.4.
Our Kubernetes instructions use "go get" to compile vtctlclient.

Since our generated gRPC services are no longer compatible with the latest gRPC version, we need to update it.

See: https://github.com/youtube/vitess/issues/1811#issuecomment-258740349

I ran the following command to update the dependency:

$ govendor fetch google.golang.org/grpc/...@=v1.0.4
2016-11-06 22:04:09 -08:00
Jonathan Amsterdam 3717dd56af gcsbackupstorage: change bucket.List to bucket.Objects (#2095)
The List method is deprecated and is going away soon.
2016-10-06 20:32:31 -07:00
Alain Jobart 2ee2738bda Adding workflow library.
To manage long running workflows within Vitess.
It contains a sample Sleep workflow.
Wiring up the UI using WebSockets.
Also adding vtctl commands.
2016-10-04 14:09:31 -07:00
Anthony Yeh 313d926f89 Update to gRPC 1.0.0 and protobuf 3.0.0. (#2012) 2016-09-23 11:41:17 -07:00
harshit-gangal ea09eb79e8 Ceph changes (#2023)
* Ceph changes

* doc changes
2016-09-07 14:47:34 -07:00
Michael Berlin 65cfdfa61c vtctld: Use "jsonpb" marshaler for protobuf only JSON responses. (#1955) 2016-08-25 09:20:57 -07:00
Alain Jobart 86da28d114 New version of grpc go client.
And new option in gRPC options to turn of FailFast.
The automation client can wait until context deadline.
2016-08-11 12:20:52 -07:00
Alain Jobart 79cc4c0093 New version of google oauth2 library.
To remove old dependency.
2016-08-04 14:42:43 -07:00
Alain Jobart 51622658be Switching to new version of google API. 2016-08-04 13:54:43 -07:00
Alain Jobart 0686027932 Importing patricia library. 2016-07-29 07:27:47 -07:00
Anthony Yeh 062b79c183 vendor: Update golang.org/x/text packages. 2016-07-15 15:43:31 -07:00
Alain Jobart 5b9aacb4c3 Removing old zk library. 2016-07-14 13:03:24 -07:00
Alain Jobart 2dd81c2095 Replacing launchpadnet zk client.
With the github.com/samuel/go-zookeeper/zk package.
It's a much simpler library, no dependency, and can be vendored
as is.
2016-07-14 13:03:24 -07:00
Anthony Yeh 9df6952293 Update vendored grpc-go and regenerate protos. 2016-06-20 18:01:18 -07:00
Matt Harden 612c9411a5 Vendor the Prometheus client and dependencies. 2016-06-15 17:53:40 -05:00
Sergey Grankin e90cca334b add missing aws-sdk dependencies to vendor 2016-06-14 15:19:22 -04:00
Sergey Grankin 461c8b30a3 S3 Backup Storage Plugin 2016-06-14 14:27:35 -04:00
Sugu Sougoumarane d0bfecf3d7 v3: fix third_party dependency 2016-04-27 11:27:22 -07:00
Michael Berlin 95c972cd4c bootstrap: Pin protobuf plugin which generates gRPC Go code.
The gRPC library itself is already pinned by "govendor" and protects as
from breaking changes. The plugin was recently updated and broke us
again. Now this should no longer happen.
2016-04-20 12:24:23 -07:00
Michael Berlin d9047979ba vendor: Update gRPC Go version due to breaking change
https://github.com/grpc/grpc-go/pull/642.

(We didn't pin the protobuf grpc Go plugin yet and got broken because of
that.)
2016-04-20 12:03:42 -07:00
Anthony Yeh 441e5ef26a Use govendor for all Go dependencies.
Instead of `go get`. This way we control when to update versions.
2016-04-14 19:17:52 -07:00
Anthony Yeh 587f3a9c3f Use govendor instead of godep.
Like godep, govendor helps manage the native Go vendor dir. But it also
supports a mode where you don't have to copy all the files into your own
repo. Instead, you run `govendor sync` after updating the `vendor.json`
file, and it reconciles everything by downloading as needed.
2016-04-14 19:15:41 -07:00
Anthony Yeh 101bfd16e8 Use native Go vendor mode for gozk package. 2016-04-06 14:43:17 -07:00
Anthony Yeh 8670f392ca Use native Go vendor mode for godeps.
This gets rid of the warning about disabling native vendor mode
due to legacy Godeps/_workspace directory being present.

It also means we require Go 1.5+ since that's when native vendor
mode was first introduced.
2016-04-06 14:43:17 -07:00