Alain Jobart
aa6e6122e6
removing unused import and var.
2016-06-07 08:34:12 -07:00
Alain Jobart
4e490415f3
Deprecating --topology in run_local_database.py.
2016-06-07 08:30:38 -07:00
Alain Jobart
09aa64dcd7
Merge pull request #1765 from alainjobart/vtgatev2
...
Refactoring vtgatev2_test a bit.
2016-06-06 15:15:45 -07:00
Alain Jobart
77921e57e0
Refactoring vtgatev2_test a bit.
...
Not restarting processes when we don't have to.
Closing vtgate connections when not used.
Not waiting for SERVING state (when the start_vttablet does it already).
Killing vtgate explicitely at the end to avoid spam.
Execution time went from 210s to 145s on my WS.
Also swallowing execptions on the rollback() in close() for GRPC vtgate
client. We want to close that connection after all.
2016-06-06 14:52:13 -07:00
Anthony Yeh
1129d69282
Merge pull request #1626 from enisoc/orchestrator
...
Orchestrator Integration
2016-06-06 14:30:49 -07:00
Anthony Yeh
6188bdbc99
orchestrator: Put tablet in maintenance mode when stopped.
...
When Vitess stops replication on purpose (e.g. for vtworker batch
processes), we now take a maintenance lock on it. This tells
Orchestrator not to reparent the instance or restart replication on it.
2016-06-06 14:16:12 -07:00
Anthony Yeh
6030ad6abe
orchestrator: Tablets periodically self-register.
...
This prevents the operator from having to manually tell Orchestrator to
discover new shards. It also makes a number of scenarios self-healing --
for example, if the Orchestrator backing database is lost, it will
automatically repopulate over time.
2016-06-06 14:16:12 -07:00
Anthony Yeh
df34663501
restore: Don't try to replicate from yourself.
...
If a tablet finishes restoring and finds that it's supposed to be the
master, it should not try to replicate from itself. Instead, we'll wait
for the operator to elect a new master, because it's not clear how we
ended up in this situation.
2016-06-06 14:16:11 -07:00
Anthony Yeh
76bdccacb9
mysqlctl: Use RESET SLAVE ALL instead of just RESET SLAVE.
...
This clears out the connection parameters in addition to the replication
position.
2016-06-06 14:16:11 -07:00
Anthony Yeh
a2342fb2fa
Dockerize Orchestrator and create Kubernetes config
...
For now, it is a single instance. Later, I plan to connect multiple
nodes, each containing its own Orchestrator+Galera.
2016-06-06 14:16:11 -07:00
Anthony Yeh
0076796992
Populate _vt.local_metadata table.
...
This can be used to propagate Vitess identity info to tools that work at
the MySQL level.
2016-06-06 14:16:11 -07:00
Erez Louidor
91950c460b
Merge pull request #1763 from erzel/refactoring_proto3_encoding
...
Moved auxilary methods of Proto3Connection out of the class.
2016-06-06 10:23:09 -07:00
Erez Louidor
4d4ed60e20
Moved auxilary methods of Proto3Connection out of the class.
2016-06-03 18:24:41 -07:00
sougou
28b71e6e44
Merge pull request #1761 from sougou/v3
...
Update LaunchingVitess.md
2016-06-03 15:53:18 -07:00
Alain Jobart
bf6d45d9ac
Merge pull request #1762 from alainjobart/topofix
...
Fixing test to never call with nil.
2016-06-03 15:41:46 -07:00
Alain Jobart
96757cc219
Fixing test to never call with nil.
2016-06-03 15:41:09 -07:00
sougou
9b81dfcc06
Update LaunchingVitess.md
...
Add health check URL for VTGate.
2016-06-03 15:10:42 -07:00
sougou
8137280090
Merge pull request #1760 from sougou/bugs
...
vtgate: support for /debug/health
2016-06-03 15:04:50 -07:00
Alain Jobart
93633773da
Merge pull request #1759 from alainjobart/timeout
...
Removing tmclient.IsTimeoutError.
2016-06-03 14:45:04 -07:00
Sugu Sougoumarane
c8b073371b
vtgate: support for /debug/health
2016-06-03 14:07:41 -07:00
Alain Jobart
9811abfdb2
Removing a flaky useless test.
2016-06-03 14:07:40 -07:00
Alain Jobart
6b33bc2d59
Removing tmclient.IsTimeoutError.
...
Instead using the context deadline. The underlying gRPC error code has
been removed in recent gRPC builds.
2016-06-03 13:29:15 -07:00
Michael Berlin
ef3d3a0928
Merge pull request #1754 from michael-berlin/publish_fixes
...
publish-site.sh: Fix issues which let the script fail for me.
2016-06-03 13:28:09 -07:00
Michael Berlin
c248d79bb9
Merge pull request #1749 from michael-berlin/schema_fix
...
schemamanager: Change PreflightSchemaChange to accept a list of changes instead of a single change.
2016-06-03 13:19:59 -07:00
sougou
7d69c8ab9d
Merge pull request #1757 from sougou/v3
...
Create LaunchingVitess.md
2016-06-03 12:58:33 -07:00
Liang
cf0349491b
Merge pull request #1758 from guoliang100/lameduck
...
Add the option in test/environment.py for lameduck flag.
2016-06-03 11:21:33 -07:00
sougou
24885360bb
Update LaunchingVitess.md
...
Remove a confusing '*'.
2016-06-03 10:14:02 -07:00
Liang Guo
c46876c48e
Add the option in test/environment.py for lameduck flag.
2016-06-03 10:11:52 -07:00
sougou
e867778a5a
Update LaunchingVitess.md
...
Remove some blank lines in code.
2016-06-03 10:08:39 -07:00
sougou
749c481281
Create LaunchingVitess.md
...
This is the initial draft. Some sections still need to be filled out, but there's enough here to get started.
2016-06-03 09:59:40 -07:00
Michael Berlin
3e822ee725
mysqlctl: Made tmutils.SchemaChangeResult a proto message.
...
This simplifies executing the new PreflightSchema and passing on its response.
2016-06-02 20:33:16 -07:00
Michael Berlin
d4e55fc7b3
Merge pull request #1755 from michael-berlin/doc_pivot
...
doc: Tutorial how to manually carry out a pivot schema change.
2016-06-02 17:33:31 -07:00
Michael Berlin
2c1d85048a
doc: Tutorial how to manually carry out a pivot schema change.
2016-06-02 17:31:02 -07:00
Michael Berlin
7c8c00910c
Merge pull request #1751 from michael-berlin/operations_doc_fixes
...
doc: Couple minor fixes.
2016-06-02 17:27:04 -07:00
Michael Berlin
233dc214ab
doc: Backup: Replace -target_tablet_type with -init_tablet_type because the first was replaced in favor of the second.
2016-06-02 17:15:51 -07:00
Michael Berlin
d91bddd045
publish-site.sh: Fix problem that docker cp copies the rentered HTML pages one level too deep.
...
Witout the fix, the script fails with the error:
fatal: pathspec 'vitess.io/_site/*' did not match any files
This fix was necessary on Docker 1.7.1.
2016-06-02 15:36:11 -07:00
Michael Berlin
1e90038733
publish-site.sh: Do not let mkdir fail if directory already exists.
2016-06-02 15:32:55 -07:00
Michael Berlin
c36766baf4
doc: Upgrading.md: Change `text` to *text* because it renders more nicely.
2016-06-02 15:24:52 -07:00
Michael Berlin
1da0c9e440
doc: Remove leading "+" characters from upgrading.md.
2016-06-02 15:12:21 -07:00
Alain Jobart
f97d2378f7
Merge pull request #1750 from alainjobart/srvschema
...
Srvschema
2016-06-02 14:45:23 -07:00
Alain Jobart
e5df10c986
Adding doc for the initial RebuildVSchemaGraph.
2016-06-02 14:19:27 -07:00
Alain Jobart
57bcf34577
Rebuilding vschema in local_example.
...
Since we never apply any vschema, it's never built.
But we still proceed to use v3 calls.
2016-06-02 14:07:43 -07:00
Alain Jobart
c11336eb84
Small fixes to vschema rebuilding.
...
When we know abotu a keyspace, but it has no vschema, still add an empty
entry in the SrvVSchema. That way the vschema code knows about that
keyspace, and can use it as default if there is only one keyspace.
Rebuild SrvVSchema in update_stream.py as we do v3 calls with no
keyspace specified, we need an appropriate vSchema there.
2016-06-02 14:07:43 -07:00
Alain Jobart
3f21ee8e33
Updating docs.
2016-06-02 14:07:43 -07:00
Alain Jobart
2a658e7c9d
Removing topo.Server.WatchVSchema.
2016-06-02 14:07:43 -07:00
Alain Jobart
4aa5a81709
Now vtgate watches SrvVSchema.
...
Killed vindexex.VSchemaFormal, replaced with vschemapb.SrvVSchema.
2016-06-02 14:07:43 -07:00
Alain Jobart
6cd7a5f1c4
Adding 'vtctl GetSrvSchema', using it in tests.
2016-06-02 14:07:43 -07:00
Alain Jobart
a138711e42
Adding vtctl RebuildVSchemaGraph command.
2016-06-02 14:07:43 -07:00
Alain Jobart
b7d95be10f
Support for SvrVSchema in topo server.
...
Re-factoring the topo server tests so the main test method (that calls
all the individual tests) is in the test suite. We were missing a few
method calls here and there.
2016-06-02 14:07:43 -07:00
Alain Jobart
bf2ffee8ee
Adding SrvVSchema object.
2016-06-02 14:07:43 -07:00