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

56 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 14bc342e84 Removing a couple more mentions of bson. 2016-03-16 09:42:59 -07:00
Alain Jobart f37b45347e Fixing local example for new bind vars format. 2016-03-03 12:19:59 -08:00
Anthony Yeh a160fe24c4 Switch tests and examples to vtgate discoverygateway.
This is the new connection management mode for vtgate.
We're now using the new mode in tests and examples by default,
rather than the old mode ("shardgateway").
2016-03-02 16:48:21 -08:00
Anthony Yeh 57b70cbf01 examples/local: Start/stop vttablet/mysqld in parallel.
This speeds up the test/local_example.sh test.
2016-02-29 15:09:03 -08:00
Anthony Yeh 3892568ff7 Use semi-sync in examples. 2016-02-24 18:10:10 -08:00
Dean Yasuda 43ca2d11a2 Fix python cursor params in tests.
Switching the order of params in python cursor constructors affects
several tests and examples.
2016-02-10 10:51:17 -08:00
Anthony Yeh 01c9267a9b examples/local: Fix default client.py server address for gRPC. 2016-02-08 16:59:20 -08:00
Rasta 211f835498 examples/local/vtgate-up.sh web port fix in info msg 2016-02-07 11:32:24 +01:00
Alain Jobart ba7dfe0d36 Changing local_example python side to use gRPC. 2016-02-04 07:53:11 -08:00
Anthony Yeh 85e4dabe63 php: Update grpc dependency to 0.12. 2016-01-26 01:17:37 -08:00
Anthony Yeh 10afe90e2f examples/local: Fix vttablet-up.sh for empty $tablet_hostname. 2016-01-24 12:38:12 -08:00
Rasta b04ef5170c examples/local - vttablet-up.sh - use hostname -i only in travis build (travis last fix) 2016-01-23 11:00:48 +01:00
Rasta 719431abfa examples/local - vttablet-up.sh - use hostname -i only in travis build (fix3) 2016-01-23 10:41:20 +01:00
Rasta a47c0011a2 examples/local - vttablet-up.sh - use hostname -i only in travis build (fix3) 2016-01-23 10:28:48 +01:00
Rasta 0b9139d8bd examples/local - vttablet-up.sh - use hostname -i only in travis build (fix2) 2016-01-23 09:43:37 +01:00
Rasta 1300bc6b2c examples/local - vttablet-up.sh - use hostname -i only in travis build (fix) 2016-01-23 00:53:24 +01:00
Rasta f4daf2749e examples/local - vttablet-up.sh - use hostname -i only in travis build 2016-01-23 00:23:34 +01:00
Rasta 21450c8773 Merge branch 'master' into osx_ex_local_vttable 2016-01-23 00:19:38 +01:00
Rasta 01c7364e15 example/local - vttablet-up.sh - removed -tablet_hostname parameter 2016-01-22 23:28:56 +01:00
Anthony Yeh 7630c8409a php: Run formatter for PSR-2 style. 2016-01-21 18:08:01 -08:00
Anthony Yeh 226c0fb8cb php: Make client conform to Autoloading Standard (PSR-4). 2016-01-21 18:00:04 -08:00
Rasta e3369b5f28 examples/local - vttablet-up.sh fix fore being able to run on OS X (#1449) 2016-01-17 23:13:04 +01:00
Rasta e63d2751a4 possible test fix for client.php 2016-01-14 00:46:10 +01:00
Rasta c6e4b3c379 composer.json and client.php updates - php tests should be working now 2016-01-13 23:21:53 +01:00
Alain Jobart 3dfa3a9c45 Fixing script for deprecated command line argument. 2015-12-10 07:32:51 -08:00
Michael Berlin a744f640ea vitessdriver: Provide helper functions to open database.
Updated current users vtclient and client.go accordingly.
2015-12-09 20:50:34 -08:00
Michael Berlin 31805ff272 Go SQL driver: Renamed package from "client" to "vitessdriver".
This is more explicit. The Go "sql" package also talks about "drivers": https://golang.org/pkg/database/sql/

To get a sense how other drivers are named, here's a list: https://github.com/golang/go/wiki/SQLDrivers

We decided to have "vitess" in the name as well to make it clear in application code that this is the Vitess Go SQL driver.

also: Renamed main files from client*.go to driver*.go.
2015-12-08 17:19:57 -08:00
Anthony Yeh bb19686bef Add more sample clients for examples/local.
These are alternative clients that show how to do the same thing as
examples/local/client.py in other languages.
2015-12-08 15:11:39 -08:00
Anthony Yeh 993663574f vtctld: Clean out old UI. 2015-11-12 22:52:07 -08:00
Anthony Yeh b89d988e30 Make MySQL users and privileges configurable.
This gets rid of the opaque mysql-db-dir.tbz archive, replacing it with
a .sql file. The .sql file approach makes it clear what state the DB is
initialized with, and also makes it easy to customize.
2015-11-10 11:41:24 -08:00
Anthony Yeh aa1da5cd71 Upgrade to ZooKeeper 3.4.6.
Fixes #1204
2015-11-02 20:45:43 -08:00
Anthony Yeh 785c99688a Add CI test for local example scripts. 2015-10-29 18:24:31 -07:00
Anthony Yeh d4de115720 Update Getting Started Local guide. 2015-10-29 18:24:31 -07:00
Anthony Yeh 3f31b25530 examples/local: Add -down.sh scripts.
Also allow -up.sh scripts to re-use existing data directories.
That way you can turn servers up and down without having to start over
from scratch every time.
2015-10-29 18:24:19 -07:00
Anthony Yeh b4ffd625c3 examples/local: Add -grpc_port for vtctld. 2015-10-29 13:29:50 -07:00
Michael Berlin cf87989c51 Change client protocols from BSON RPC to gRPC.
This commit changes the following protocols:

- binlog_player_protocol
- vtctl_client_protocol

The only BSON protocol left is vtgate pending the implementation of the
gRPC vtgate client.

Note that we originally added this change in
https://github.com/youtube/vitess/pull/1230

However, we reverted it because the Kubernetes tutorial and images were
out of sync. Therefore, this commit technically is the revert of the
revert.

Revert "Revert "Change protocol defaults to grpc.""

This reverts commit 5e5f40a04e.
2015-10-23 13:46:52 -07:00
Anthony Yeh c976134b8f backup: Use GCS backup in Kubernetes example. 2015-10-21 16:19:36 -07:00
Michael Berlin 5e5f40a04e Revert "Change protocol defaults to grpc." 2015-10-19 15:45:44 -07:00
Michael Berlin 3ee5d3d028 Change default client protocol for vtctld to "grpc" (from "gorpc").
Updated local and Kubernetes to start vtctld with gRPC now.
2015-10-15 18:20:39 -07:00
Anthony Yeh 2a115d8969 examples/local: Add service_map whitelist for updatestream. 2015-10-13 17:56:45 -07:00
Alain Jobart 87693af4c7 Removing direct tablet access from python.
One hack left in vtrouting.py, and then topology.py can go too.
Dean, I'll let you handle that one.
2015-10-13 07:41:58 -07:00
Anthony Yeh 96ccdfc0d6 examples/local: Add -service_map flags since bson is no longer default. 2015-09-28 11:21:29 -07:00
Anthony Yeh e830e28dea Make grpc the default for Go binaries talking to queryservice.
Since go/bson no longer encodes the non-standard uint64 type,
it's not safe to send uint64 over bsonrpc for a field that is
unmarshaled into interface{}, since it will be unmarshaled as int64.

The only case where this happens is bind vars. We could fix bsonrpc
by switching it to use bson-encoded proto3 structs, since those
use concrete field types for bind vars rather than interface{}.

However, bsonrpc is deprecated anyway so instead of fixing it,
we will just switch to grpc for all clients written in Go that
talk to queryservice.
2015-08-22 16:01:45 -07:00
Anthony Yeh 31ec5d75db vtctld: Add experimental new web interface. 2015-07-13 11:46:28 -07:00
Anthony Yeh 20bca32bbc Add backup settings to local vttablet-up.sh. 2015-07-13 11:25:43 -07:00
Anthony Yeh 7c475ace68 Update docs for new ApplySchema command. 2015-06-09 13:27:23 -07:00
Anthony Yeh c935f5ca06 Add extra_my_cnf for MySQL 5.6. 2015-05-05 15:30:56 -07:00
Anthony Yeh a872390683 Fix examples/local for MySQL 5.6. 2015-05-05 15:30:56 -07:00
Alain Jobart 260392e2ca Now updating Shard with new master.
And converting the new master to 'master' type.
Fixing the directions tfor local cluster to use InitShardMaster.
2015-04-02 14:01:24 -07:00
Anthony Yeh 61d6cbbb01 Explain `init` versus `start` in local example.
Fixes #362
2015-02-06 13:29:08 -08:00