Alain Jobart
69e70eb099
Adding QPS graph to vtocc and vttablet status.
2014-05-02 14:14:39 -07:00
Alain Jobart
b5b68165a6
Using right type for health return.
...
That way we don't escape the HTML markups.
2014-05-02 13:32:45 -07:00
Alain Jobart
344c9a6ce2
Adding status page fragment for vttablet health.
2014-05-02 11:26:53 -07:00
Alain Jobart
a240486d25
Fixing test here.
2014-05-02 10:36:17 -07:00
Alain Jobart
82ab6f7c1f
Storing pointers to health records in health.
...
So we don't copy them around all the time when displaying them.
2014-05-02 10:00:10 -07:00
Alain Jobart
54842553ab
Adding an external function IsrunningHealthCheck.
2014-05-01 11:00:11 -07:00
Alain Jobart
4540655507
Cleanup for tabletmanager.
2014-04-30 10:00:20 -07:00
Alain Jobart
8e78948082
Using the new allowQueries return code.
2014-04-30 09:47:29 -07:00
Sugu Sougoumarane
38e357ca81
queryservice: add waitForMysql option
...
There are use cases where vtocc needs to wait for mysql to come
up. Add this flag to allowQueries so this functionality can be
supported.
2014-04-29 14:55:28 -07:00
Sugu Sougoumarane
be2831984f
queryservice: stats for begin, commit & rollback
...
Commit & rollback were getting tracked as TransactionCompletiion
stats, whereas there was no tracking for begin. This was confusing
because the the Queries stat could not be correlated against mysql
exec time stats. Now, all three of these statements are reported
under queries under the plans BEGIN, COMMIT & ROLLBACK.
2014-04-29 12:55:29 -07:00
Sugu Sougoumarane
bf556ce85a
query service: add more failsafes
2014-04-29 11:18:46 -07:00
Alain Jobart
4d3091ef2c
Creating ephemeral lock files for keyspace/shard/srvshard.
...
We never go cross-process with them, and they need to disappear
when a process dies.
2014-04-28 14:56:12 -07:00
Alain Jobart
049568a744
Merge branch 'ssrepl' of github.com:youtube/vitess into ssrepl
2014-04-28 09:46:04 -07:00
Alain Jobart
e16cc232c5
Moving actor into its own library.
...
That way vtaction doesn't link with tabletmanager any more.
2014-04-25 22:33:05 -07:00
Alain Jobart
d3ffea9e97
Cleanup up import.
2014-04-25 22:12:12 -07:00
Alain Jobart
7d4d2c67dd
Moving HealthRecord to healthcheck.go
2014-04-25 22:05:50 -07:00
Alain Jobart
bfe26a3080
Merge branch 'replication' of github.com:youtube/vitess into replication
2014-04-25 21:59:35 -07:00
Alain Jobart
ed6796a112
Removing go/vt/vttablet, merging it into tabletmanager.
...
Still a bunch of stuff to clean up.
2014-04-25 21:59:08 -07:00
Sugu Sougoumarane
21c2ae7a94
queryservice: Change allowQueries
...
allowQueries is now simplified. It just tries to start the
query service. If it fails, it returns an error. All the
retry logic has been removed. This will allow the tablet manager
to retry based on other conditions that the query service does
not care about.
For vtocc, a failure to start the query service will cause the
program to exit.
2014-04-25 14:04:29 -07:00
Sugu Sougoumarane
889feff121
Merge branch 'replication' of github.com:youtube/vitess into replication
2014-04-25 13:08:46 -07:00
Sugu Sougoumarane
4855b64878
Merge branch 'master' into replication
2014-04-25 13:08:30 -07:00
Alain Jobart
41243a126b
Moving health history from health to agent.
...
Agent will need to take into account other stuff.
2014-04-25 10:58:14 -07:00
Sugu Sougoumarane
2eaa3c4b99
Merge branch 'master' into vtocc
2014-04-25 00:30:55 -07:00
Sugu Sougoumarane
8a3b994765
parser: support if exists for drop view
2014-04-25 00:30:01 -07:00
Liang Guo
0d265a4f31
Fix VTGate unit tests
2014-04-24 16:11:34 -07:00
Liang Guo
679005e818
VTGate V2 update
2014-04-24 15:25:28 -07:00
Alain Jobart
caad63475a
More support for health check / lameduck mode.
2014-04-24 15:20:33 -07:00
Alain Jobart
5dc321090f
Implementing the lameduck code. Test to come.
2014-04-24 10:29:04 -07:00
Alain Jobart
f8c1f2b916
Using timer.Timer in health check, stopping it.
2014-04-24 09:54:49 -07:00
Ryszard Szopa
cd735e9d38
Make the txlogz and queryz tables sortable.
2014-04-24 05:57:25 -07:00
Liang Guo
1ef30a29b9
Fix VTGate V2 unit test
2014-04-23 11:01:12 -07:00
Liang Guo
62d16f840b
VTGate V2 update
2014-04-23 10:37:28 -07:00
Alain Jobart
0b573e4e57
Removing topo.Server.CreateShardReplication.
...
Using UpdateShardReplicationFields in all cases, less
confusing and then the 'Tee' support works all the time.
This is actually a lot less code.
2014-04-23 09:54:31 -07:00
Alain Jobart
32be6645cf
Merge branch 'master' of github.com:youtube/vitess
2014-04-22 10:39:27 -07:00
Alain Jobart
2e8d3d02e1
Fixing a bug in tablet healthL would not clear
...
the health map when it goes empty.
2014-04-22 10:08:52 -07:00
Sugu Sougoumarane
4b736e9c32
rudimentary support for VIEW ddls
2014-04-21 15:25:56 -07:00
Alain Jobart
4dc4bfce08
When using Clone, update the 'Cells' list in the shard.
2014-04-21 13:14:43 -07:00
Alain Jobart
97f80cf484
Merge branch 'replication'
2014-04-18 21:08:51 -07:00
Alain Jobart
ead2b4f757
Renaming a function.
2014-04-18 14:58:27 -07:00
Alain Jobart
4b424e15c0
Small optimization in rebuild after reparent.
...
We only need to rebuild the shard graph for the old and
new master cells (might be the same cell).
2014-04-18 13:32:06 -07:00
Ryszard Szopa
ad1a918478
Publish stats about lagging tablets in vtgate.
2014-04-17 23:29:36 -07:00
Alain Jobart
7bc6c4cc98
Adding more comments to go/vt/topo, renaming a function.
2014-04-17 16:47:16 -07:00
Alain Jobart
58438063bb
First phase of adding masters to rep. graph.
...
The next phases will add masters to the replication
graph as a ReplicationLink with a parent.IsZero().
This phase is to just handle that case in preparation.
2014-04-17 15:13:47 -07:00
Alain Jobart
11430a74c0
Handling errors properly in new rebuild.
2014-04-16 12:18:58 -07:00
Alain Jobart
71f7823dee
Adding missing test.
2014-04-16 10:51:33 -07:00
Alain Jobart
c4f50f78d3
Merge branch 'master' into replication
2014-04-16 09:30:59 -07:00
Alain Jobart
4d786572f1
Changing other places to not lock shards.
...
When we do a rebuild, no need to lock a shard if UseSrvShardLocks
is on.
2014-04-15 15:41:43 -07:00
Alain Jobart
bb1cabce2a
Adding the new rebuild implementation that uses the locking.
2014-04-15 15:29:28 -07:00
Alain Jobart
0332ffd898
Implementing srvShard lock for tee.
2014-04-15 13:36:31 -07:00
Alain Jobart
bfdc02686e
Adding SrvShard locking and test code.
2014-04-15 13:30:38 -07:00
Liang Guo
93e6ba1b93
Address style
2014-04-12 18:56:08 -07:00
Liang Guo
453738707b
Merge branch 'master' into liguo
2014-04-12 18:52:21 -07:00
Liang Guo
474811d3b4
Add unit test for Resolver
2014-04-12 18:51:48 -07:00
Alain Jobart
28314ff91e
Making default timeout make more sense.
2014-04-11 16:05:43 -07:00
Alain Jobart
41abf265b2
Merge branch 'master' into replication
2014-04-11 15:30:54 -07:00
Alain Jobart
aca2b512f8
Adding forward compatibility for locking.
2014-04-11 15:29:46 -07:00
Alain Jobart
02f9e34e73
moving rebuild to topotools.
2014-04-11 15:04:15 -07:00
Alain Jobart
c263843b6d
Moving Scrap and ChangeType to newly created topotools.
2014-04-11 14:57:56 -07:00
Alain Jobart
9e2a56955c
Renaming vt/topotools to vt/topo/helpers.
2014-04-11 14:34:30 -07:00
Alain Jobart
f1dcff7b4b
More doc in wrangler package.
2014-04-11 13:30:21 -07:00
Ryszard Szopa
31f75ffabd
Fix typo.
2014-04-09 16:30:49 -07:00
Ryszard Szopa
323106b5d9
Save the original value return by GetEndPoints in ResilientSrvTopoServer.
2014-04-09 16:18:23 -07:00
Liang Guo
b1cd218402
Merge branch 'master' into liguo
2014-04-09 14:56:34 -07:00
Ryszard Szopa
0897334d59
Rewrite srv_topo_server_test to be table driven.
2014-04-09 13:33:20 -07:00
Liang Guo
d4f7ca6998
Add keyspace/shards resolution layer
2014-04-08 23:42:42 -07:00
Sugu Sougoumarane
e787ba99ff
queryservice: queryz fixes
...
Fix queryz (and querylogz) so long queries can wrap.
Also fix a coloring bug.
2014-04-08 17:49:43 -07:00
Sugu Sougoumarane
7f17d870d8
queryservice: log normal errors as warning
...
Since normal errors are common, it's better to log them
as warning.
2014-04-08 15:14:33 -07:00
Sugu Sougoumarane
d98ac3213c
queryservice: support qualified column names for update statements
2014-04-08 14:40:01 -07:00
Sugu Sougoumarane
b19d9adf20
servenv: move some code around
...
Better reuse on import
2014-04-08 11:14:40 -07:00
Sugu Sougoumarane
7a1a2f9352
Merge branch 'master' into monitoring
2014-04-08 11:05:58 -07:00
Sugu Sougoumarane
a289dea4cd
servenv: reduce default lameduck period
...
Since most tests don't set lameduck period, a high value will
most likely break them all. So, it's good to set this to something
very small.
2014-04-08 11:03:22 -07:00
Sugu Sougoumarane
96a25e86fa
servenv: Add comments to functions.
2014-04-08 10:34:44 -07:00
Sugu Sougoumarane
c8d07c791c
Merge branch 'master' into monitoring
2014-04-08 00:59:54 -07:00
Sugu Sougoumarane
4627e1cea3
servenv: support for lameduck-period
2014-04-08 00:54:40 -07:00
Liang Guo
f645660d35
Merge branch 'master' into liguo
2014-04-07 13:19:29 -07:00
Sugu Sougoumarane
31eda306c0
Merge branch 'master' into monitoring
2014-04-07 09:23:20 -07:00
Sugu Sougoumarane
14050b920f
gorpc: Change ssl timeout to be different from normal
...
The different error message will help trouble shoot the root
cause of problems better.
Also, fixed some typos.
2014-04-06 21:59:38 -07:00
Sugu Sougoumarane
b5f7c951b1
Merge branch 'vtocc'
2014-04-05 12:28:09 -07:00
Sugu Sougoumarane
8d91aa4802
queryservice: lip service to positional args
...
First cut at supporting positional args. This allows
you to send queries like:
select * from t where id1 = ? and id2 = ?
The parser will treat this query as:
select * from t where id1 = :v1 and id2 = :v2
So, the bind variables will need to be like this:
{"id1": 1, "id2": 2}
2014-04-05 08:36:09 -07:00
Liang Guo
b7b484b280
Add ExecuteEntityIds() to VTGate V2
2014-04-04 17:36:23 -07:00
Liang Guo
67e47c097c
Merge branch 'master' into liguo
2014-04-04 17:30:01 -07:00
Liang Guo
26110a8e34
Address comments
2014-04-04 17:29:07 -07:00
Sugu Sougoumarane
3785916fbe
Merge branch 'master' into monitoring
2014-04-04 12:03:14 -07:00
Sugu Sougoumarane
9c8cab6c91
queryservice: categorize read-only errors as RETRY
...
When we get a read-only error, it means that the current
server is not the master anymore. Categorize such errors
as RETRY, which will make the clients re-resolve to the
new master.
2014-04-04 11:40:43 -07:00
Liang Guo
45b0e0c6c5
Merge branch 'master' into liguo
2014-04-04 11:40:23 -07:00
Liang Guo
30fde96092
EntityIdsQuery related change (WIP)
2014-04-04 11:38:48 -07:00
Liang Guo
e2eae9d65a
Merge branch 'master' into liguo, generate additional bson files
...
Conflicts:
go/vt/key/key.go
go/vt/vtgate/proto/vtgate_proto.go
go/vt/vtgate/scatter_conn_test.go
go/vt/vtgate/shard_conn_test.go
2014-04-03 14:51:04 -07:00
Alain Jobart
c90dcbe6e1
Merge branch 'master' into replication
2014-04-02 21:59:03 -07:00
Alain Jobart
8302b2ae94
First pass at MariaDB support.
...
test/tabletmanager.py passes!
It's enabled by setting MYSQL_FLAVOR=MariaDB before anything.
2014-04-02 14:52:07 -07:00
Sugu Sougoumarane
0d95f30595
bug fix: SHARE and MODE are not keywords
...
Looks like share and mode are valid column names even though
LOCK IN SHARE MODE is a special construct. So, we can't treat
SHARE and MODE as keywords. Otherwise, the parser fails for
columns with such names.
2014-04-02 01:16:21 -07:00
Liang Guo
6372a6c69a
Update VTGate V2 with keyspaceid and keyrange queries
2014-04-01 13:59:15 -07:00
Sugu Sougoumarane
a643e95635
queryservice: qualified column names in insert
2014-03-29 00:41:41 -07:00
Sugu Sougoumarane
d257db8e42
queryservice: support lock in share mode construct
2014-03-28 23:55:48 -07:00
Ryszard Szopa
e38bce7f78
Fix silly bug in health module.
2014-03-26 18:04:41 -07:00
Ryszard Szopa
ba34c07e72
health.Record.Class: really fix it, write test.
2014-03-26 17:55:29 -07:00
Ryszard Szopa
4762e9e431
Fix typo in health.Record.Class.
2014-03-26 17:45:27 -07:00
Ryszard Szopa
7bc25c104f
health.Record: define methods for display and deduplication.
2014-03-26 17:26:40 -07:00
Ryszard Szopa
1e952e3755
Store a history of health.Run results.
2014-03-25 16:10:12 -07:00
Sugu Sougoumarane
cfdf27d3bb
bsongen: non-struct simple types
2014-03-25 01:12:04 -07:00
Sugu Sougoumarane
8bf5534b5f
queryservice: add TODO to fix dual correctly
2014-03-24 15:38:23 -07:00