Joshua Thompson
a079235c07
Undo calling configure.sh as part of vitess-up.sh
2016-01-14 11:26:20 -08:00
Joshua Thompson
99ab4f178d
Add cell to vtgate kubernetes scripts
2016-01-13 21:38:15 -08: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
Michael Berlin
15f483ba6e
Merge pull request #1426 from michael-berlin/kubernetes_enable_vtgate_grpc_port
...
example/kubernetes: Enable gRPC in vtgate configuration.
2016-01-12 15:20:30 -08:00
Michael Berlin
cda3953796
example/kubernetes: Fix invalid vtgate port name.
...
Error was:
spec.ports[0].name: invalid value 'web+bsonrpc', Details: must be a DNS label (at most 63 characters, matching regex a-z0-9?): e.g. "my-name"
2016-01-12 07:03:02 +01:00
Joshua Thompson
ae4a0d3595
Use in vttablet-down.sh
2016-01-11 11:21:22 -08:00
Michael Berlin
e820f16c0a
example/kubernetes: Enable gRPC in vtgate configuration.
2016-01-11 13:37:10 +01:00
Joshua Thompson
b3b84623e4
Update initial master in k8s scripts
2016-01-08 15:52:39 -08:00
Joshua Thompson
2bcc938319
Update initial master in k8s scripts
2016-01-08 15:43:35 -08:00
Joshua Thompson
f86a0a57c7
change pod name only for multi-cell clusters, revert doc change
2016-01-08 15:29:13 -08:00
Joshua Thompson
a2453b91a3
Update some pod names in kubernetes scripts
2016-01-08 10:32:18 -08:00
Joshua Thompson
ff185537fc
Update k8s scripts and docs
2015-12-22 11:06:01 -08:00
Sugu Sougoumarane
15019d1fb4
demo: set web_dir for vtctld
2015-12-10 13:30:39 -08:00
Alain Jobart
c360180fc4
Also removing extra parameter from this script.
2015-12-10 07:35:57 -08: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
William Stewart
e81e4ef8a4
k8s: -t for --template is deprecated
...
https://github.com/kubernetes/kubernetes/pull/12813
2015-12-02 21:52:31 +02:00
Sugu Sougoumarane
b46ae81a95
v3 demo: fix to use modified vtaget API
2015-11-25 00:41:08 -08:00
Anthony Yeh
993663574f
vtctld: Clean out old UI.
2015-11-12 22:52:07 -08:00
Dean Yasuda
b7566a4109
Merge branch 'master' into v2v3
2015-11-11 15:15:23 -08:00
Dean Yasuda
3e10eec9e2
Merge vtgatev3 into vtgatev2.
...
* vtgatev2 will later be named vtgate_gorpc_client.
* Pass more info to converted exceptions.
* Clean up lint errors.
2015-11-11 15:13:23 -08:00
Anthony Yeh
7b418d7cab
k8s: Fix guestbook image Python path.
...
We now have multiple packages packed as eggs, so we can't combine the
site-packages directories.
2015-11-10 14:30:44 -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
3f3ee1cf3b
k8s: Use kubectl port forwarding for vtctld.
...
So you don't have to expose vtctld on the open web.
2015-11-02 17:11:34 -08:00
Anthony Yeh
c24dc79977
docker: Switch default flavor to mysql56.
2015-11-02 17:11:28 -08:00
Anthony Yeh
71e4fdc283
k8s: Don't depend on public discovery service for etcd.
...
* Use Kubernetes DNS to bootstrap etcd.
* Also try to make resizing etcd with `kubectl scale` work.
It seems to work most of the time, but etcd's membership system
is not really designed to be this dynamic.
2015-11-02 11:51:25 -08:00
Anthony Yeh
3786c76c6f
k8s: Use Kubernetes DNS instead of service env vars.
...
This removes the restriction that all services used by a pod must
already have been created before the pod is created. It also allows a
service to be deleted and recreated without having to also recreate all
pods that depend on that service.
2015-11-02 11:51:25 -08:00
Anthony Yeh
2f9ec2d2e9
k8s: Configure livenessProbe (nullz) on pods.
2015-11-02 11:51:25 -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
Anthony Yeh
570edbbeea
k8s: Add gRPC port to vtctld.
...
Now that we use gRPC for vtctlclient, we need to add a -grpc_port flag.
Since gRPC can't coexist on the same port as HTTP/1, we now need two
ports for vtctld.
2015-10-23 22:14:27 -07:00
Anthony Yeh
845a8f2dbb
docker: Upgrade guestbook image to debian:jessie.
...
This is necessary to make sure it uses the same libc version as the
vitess/base image that builds the gRPC modules. The python-runtime
image we were using before doesn't have a jessie version, so I
copied what was in its Dockerfile here.
2015-10-23 21:36:37 -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
597503d3ee
k8s: Fix vttablet-down.sh for removal of ScrapTablet.
2015-10-23 13:23:03 -07:00
Anthony Yeh
c976134b8f
backup: Use GCS backup in Kubernetes example.
2015-10-21 16:19:36 -07:00
Anthony Yeh
0b26d82823
k8s: container engine commands are no longer under 'gcloud beta'
2015-10-20 15:28:40 -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
c1671d8f4e
Merge pull request #1210 from enisoc/sharding-doc
...
Update horizontal sharding guide
2015-10-14 14:04:58 -07:00
Sugu Sougoumarane
cc20205dcc
vttest, v3 demo: make vschema explicit
2015-10-14 11:54:38 -07:00
Sugu Sougoumarane
573f9f62b2
v3 demo: is now self-contained
...
It's been changed to use vttest, and there is a script
that brings up everything, and tears down at the end.
The one problem with the new scheme is that the querylog
doesn't tell you which tablet the query came frome. Something
to think about in the future.
2015-10-13 21:30:27 -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
Michael Berlin
84d9ab36b6
examples/kubernetes: Let sharded-vtworker.sh return an error when vtworker failed.
2015-10-06 20:23:40 -07:00
Anthony Yeh
93302cdc45
k8s: Add explicit service_map flag for updatestream.
2015-10-02 23:24:18 -07:00
Anthony Yeh
abe6af6b80
guestbook: Add dependencies for protobuf and grpc.
...
The Python libs import these now.
2015-10-02 23:24:18 -07:00
Anthony Yeh
a12c257d50
k8s: Fix templates for service_map whitelisting.
2015-10-02 23:24:18 -07:00
Joshua Thompson
6de712b4af
Some fixes to k8s templates and bson client codec (currently used by YCSB client)
2015-10-01 18:22:58 -07:00
Anthony Yeh
3de6e1ddea
Merge pull request #1149 from enisoc/k8s
...
k8s: Make vtctld a replication controller, and other fixes.
2015-09-30 09:56:59 -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
b8aa8fcf2b
k8s: Make vtctld a replication controller, and other fixes.
...
vtctld should be a replication controller rather than a single pod,
so it gets restarted if the node fails.
Also made other fixes as suggested in a review by some Kubernetes folks.
2015-09-25 17:16:39 -07:00
Erez Louidor
0e36c01223
Merge remote-tracking branch 'upstream/master'
2015-09-22 18:35:51 -07:00
Erez Louidor
fbfdb57799
Addressed comments
2015-09-22 17:48:39 -07:00
Anthony Yeh
eaf140174f
kubernetes: Root certs aren't always in /etc/ssl/certs
...
Fixes #1112
2015-09-21 15:28:50 -07:00
Anthony Yeh
cdca786023
kubernetes: Fix get_node_ip() for Vagrant.
...
Fixes #1114
2015-09-21 15:22:08 -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
b203fcda46
web/vtctld: Add new -web_dir flag everywhere -templates was.
2015-08-03 14:43:45 -07:00
Joshua Thompson
f122b6fa96
Fix vitess-up.sh default initial master tablet
2015-07-24 17:40:30 -07:00
Joshua Thompson
8ba34e2b72
Fix vttablet-down.sh
2015-07-24 16:27:22 -07:00
Joshua Thompson
9637da9626
k8s: revert starting cell index back to 0
2015-07-22 15:53:05 -07:00
Joshua Thompson
4f18f37162
Update k8s scripts to allow for multiple cells
2015-07-22 11:33:38 -07:00
thompsonja
fa0df9ad91
Merge pull request #873 from thompsonja/master
...
K8s updates: split cluster scripts into separate files, use resource limits for vt jobs
2015-07-13 15:28:57 -07:00
Joshua Thompson
56e0cec3d6
Another merge
2015-07-13 14:01:00 -07:00
Joshua Thompson
4240edd60c
Merge v1 updates
2015-07-13 13:55:55 -07:00
Joshua Thompson
456ff7751b
k8s: split cluster-*.sh into separate files, use resource limits for vtgate/vttablet templates
2015-07-13 13:48:56 -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
0cb01c33e7
Update docs for etcd v2.
2015-07-10 16:49:23 -07:00
Anthony Yeh
aaeb818c3d
Update Docker/Kubernetes configs to etcd v2.0.13.
2015-07-10 16:29:13 -07:00
Anthony Yeh
52ff1562a9
Fix kvtctl.sh for multiple args.
2015-06-29 14:58:13 -07:00
Anthony Yeh
f21f5357d3
Kubernetes example: find address of vtctld automatically.
2015-06-29 14:52:43 -07:00
Anthony Yeh
26b54905b8
Add Sharding in Kubernetes guide to vitess.io.
2015-06-29 13:24:31 -07:00
Anthony Yeh
8cf50331b8
Add scripts and configs for sharded Kubernetes example.
2015-06-27 19:10:30 -07:00
Anthony Yeh
3856154fde
Remove tablets from topology in vttablet-down.sh.
...
Optionally, if we've been given the address of vtctld.
2015-06-27 19:07:05 -07:00
Anthony Yeh
13a2de2df7
Add EMD keyspace_id comment in Guestbook app.
...
This is needed for filtered replication to work.
2015-06-27 17:41:04 -07:00
Anthony Yeh
3412631186
Allow uid_base to be specified in vttablet-up/down.
2015-06-27 15:10:56 -07:00
Anthony Yeh
e8f8062888
Add rdonly tablets to example Kubernetes cluster.
...
These will be needed for the sharding guide.
2015-06-27 14:55:29 -07:00
Anthony Yeh
11d7b75728
Add multi-page feature to Guestbook sample app.
2015-06-23 17:37:01 -07:00
Anthony Yeh
4adaee2f39
Update Kubernetes API from v1beta3 to v1.
2015-06-23 13:18:27 -07:00
Anthony Yeh
9ab63da138
Update gcloud alpha commands to beta.
2015-06-23 12:07:26 -07:00
Joshua Thompson
ab1a146daa
/s/vttablet_type/tablet_type
2015-06-22 12:00:02 -07:00
Joshua Thompson
dc4c08a7fd
Add ability to create rdonly vttablets
2015-06-20 11:13:35 -07:00
Joshua Thompson
58904f3fd6
Assorted k8s updates for v1beta3
2015-06-13 12:35:53 -07:00
Anthony Yeh
f3f221ccd3
Merge pull request #785 from enisoc/k8s-v1beta3
...
Update Kubernetes example for v1beta3 API.
2015-06-12 11:42:34 -07:00
Anthony Yeh
70a2f57632
Update Kubernetes example for v1beta3 API.
2015-06-11 17:15:25 -07:00
Anthony Yeh
c8c19f80a2
Replace kubernetes README.md with a link to vitess.io.
2015-06-11 16:46:38 -07:00
Anthony Yeh
95cd866177
Make $KUBECTL default to just 'kubectl'.
2015-06-11 16:46:03 -07:00
thompsonja
a626e8a1b5
Merge pull request #782 from thompsonja/master
...
k8s benchmarking - use 'kubectl get nodes' to obtain node names
2015-06-11 09:30:25 -07:00
Joshua Thompson
c515de7dfa
Use 'k8s benchmarking - use kubectl get nodes' to obtain node names
2015-06-10 15:59:24 -07:00
Anthony Yeh
7c475ace68
Update docs for new ApplySchema command.
2015-06-09 13:27:23 -07:00
Amith Tudur
11dc55ec73
fixes typo in newrelic instrumentation script
2015-06-07 10:38:23 +05:30
Joshua Thompson
3ac14de9a6
Couple small fixes
2015-06-01 11:20:25 -07:00
thompsonja
c3aba2a40b
Merge pull request #721 from thompsonja/update_kubectl
...
replace gcloud alpha container kubectl with kubectl
2015-05-26 17:09:05 -07:00
Joshua Thompson
c13bf8dd20
Tweak README.md wording
2015-05-26 16:50:59 -07:00