Commit Graph

78 Commits

Author SHA1 Message Date
0dada1ec37 binlog: update binlog enable config && add tidb_log_bin system variable (#9625) 2019-03-11 22:18:46 +08:00
80110fbf78 *: refactor slow log format and parse slow query log to SLOW_QUERY table. (#9290) 2019-03-11 14:42:29 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
357f9d7363 metrics: add db QPS metric (#9151) 2019-02-13 19:17:44 +08:00
c83a0ceb95 config: add a config item to control whether TiDB check the mb4 character in utf8 (#9175) 2019-01-25 14:39:30 +08:00
41838ceb28 x-server: remove the X Server (#9038) 2019-01-15 10:59:41 +08:00
4b98ad6f29 *: integrate plugin framework with TiDB (#9006) 2019-01-14 16:53:41 +08:00
319656c407 tikvclient: support to batch grpc message to TiKVs (#8986) 2019-01-14 13:59:15 +08:00
2f54639f14 add binlog socket config for compatible with kafka version pump (#8732) 2018-12-19 13:23:14 +08:00
e3f3ac24f6 session: add a batch commit session variable for the large transaction (#8293) 2018-12-10 18:29:39 +08:00
3b0610f347 config: fix comment typo (#8541) 2018-12-03 17:45:32 +08:00
84d1299bb2 config, util.kvcache: support the memory guard to prevent OOM for the plan cache (#8339) 2018-11-22 22:05:04 +08:00
2f2b47f511 store/tikv: Make maxTxnTimeUse a configurable value (#8215) 2018-11-12 15:13:13 +08:00
6ccfec6d2e *: add a variable tidb_query_log_max_len to set the max length of the query string in the log dynamically (#8183) 2018-11-06 11:25:11 +08:00
ec693ce502 *: add a variable tidb_slow_log_threshold to set the slow log threshold dynamically (#8094) 2018-11-05 14:54:07 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
508f5dd626 binlog: use pumps client to write binlog (#8070) 2018-10-27 17:52:01 +08:00
f4d41273ba server: allow cors http request (#7939) 2018-10-21 11:53:36 +08:00
a8f2909d40 *: remove kv.BypassLatch option and enable latch scheduler by default (#7882)
kv.BypassLatch was introduced to handle the fake transaction confliction problem
in the old implementation. After redesign of the latch scheduler, it's not
needed any more.

Enable latch scheduler makes CI to run it, we can fix bugs and make this feature
more stable.
There is a small performance penalty, less than 5%, users are free to disable it.
2018-10-15 13:49:38 +08:00
73cab9252d Fix some misspells (#7830) 2018-10-08 09:40:03 +08:00
f387dfff09 add force priority config (#7777) 2018-09-25 20:28:28 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
5404e2eaae ddl: add admin check before drop table using building flag. (#7343) 2018-08-14 21:44:57 +08:00
90e4d02152 privilege/privileges: sort user records in privilege cache (#7211) 2018-08-02 22:05:41 +08:00
33367fdd48 config,executor: provide a compatible-kill-query option in the config file (#7192)
When compatible-kill-query option is turned on, "kill xxx" command will not be
ignored, it works like "kill tidb xxx".
2018-07-30 23:53:47 +08:00
ba5a33f04c add keep alive settings (#7100) 2018-07-19 17:28:41 +08:00
6dcaecaf79 Add advertise-address to config (#7078) 2018-07-18 10:46:12 +08:00
63c4562c27 *: remove non-prepared plan cache (#7040)
* *: remove non-prepared plan cache

non-prepared plan cache is not usable if we can only do full string match.
And further development doesn't worth the effort.
2018-07-13 18:15:05 +08:00
425308780a config: disable local latches for transaction as default (#6930) 2018-06-28 19:07:58 +08:00
865d74b916 config: enable TxnLocalLatches in default (#6874) 2018-06-22 11:52:30 +08:00
0ab1b228c0 config, variable: add memory quota config for a query (#6788) 2018-06-12 13:08:28 +08:00
7fbbb1ff3e sessionctx/binloginfo: add a timeout for writing binlog (#6587) 2018-05-21 17:21:34 +08:00
7f2b3bd899 *: Add an option to stop writting binlog when TiDB meets binlog error (#6503)
Add an option to stop writting binlog when meets binlog error
Provide http interface to recover binlog service
2018-05-11 09:50:15 -05:00
57c010148a update default analyze ratio and pseudo estimate ratio (#6517)
If pseudo estimate ratio is greater or equal to analyze ratio, there would be a gap time the
table use pseudo stats to build plan.
2018-05-09 20:18:51 +08:00
8d345cd09a *: open auto analyze and stats feedback by default (#6500) 2018-05-08 19:18:50 +08:00
4185e53006 tikv/txn: support local latch in transaction (#6418) 2018-05-07 10:57:01 +08:00
23e8c6e12b *: add a system variable auto_analyze_ratio (#6455) 2018-05-04 10:54:30 +08:00
e215e93948 *: provide a configurable tidb_retry_limit session variable (#6369) 2018-05-03 19:52:53 +08:00
13cd13c79e config: set min auto-analyze-ratio to 0.3 (#6382)
Prevent accidentally set this value to low, cause cluster overload.
And update the config comment.
2018-04-25 22:12:52 +08:00
41f5940824 stats: support auto analyze table when modify/count is too high (#6294) 2018-04-17 21:15:35 +08:00
e2b033d1c0 *: add a tidb system variable tidb_hash_join_concurrency (#6244) 2018-04-12 20:28:19 +08:00
19573c6754 *: update stats using query feedback (#6197) 2018-04-10 19:12:38 +08:00
602c6fc6f1 config: increase the default lease. (#6255) 2018-04-10 17:05:37 +08:00
d1fcbc0382 config: make pseudo estimate ratio configurable (#6254) 2018-04-10 14:45:15 +08:00
26525d1a63 config: remove useless 'enable-chunk' config item (#6212) 2018-04-03 17:41:29 +08:00
a3e4a92f47 stats: control collection of feedback (#6085) 2018-03-26 19:03:21 +08:00
d90d39cf0c config, variable: add a config to set 'lower_case_table_names' system variable. (#6054) 2018-03-14 20:29:53 +08:00
a3bf058304 *: 1. remove EnableChunk 2. implement Next in baseExecutor to return nil (#5988) 2018-03-09 17:40:11 +08:00
a90ee13c9f config: update config template (#5963)
* update config template
2018-03-07 10:56:45 +08:00
50e98f427e config: add validation for configuration (#5864) 2018-03-06 14:56:28 +08:00