Commit Graph

449 Commits

Author SHA1 Message Date
5b82653605 *: Setup Global Resource Controller (#40732)
close pingcap/tidb#40731
2023-01-20 17:03:50 +08:00
fb29c807ce lightning: fix risk of OOM (#40443)
* fix: check buf size

* fix: terminate too long buf

* add ut

* fix dev

* local var

* fix ut

* fix lint

* fix lint

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 13:48:33 +08:00
10f00936b7 keyspace: introduce keyspace conf and etcd path (#40269)
ref pingcap/tidb#40425
2023-01-10 18:48:22 +08:00
4a5a447334 resourcemanger: add cpu scheduler (#39886)
close pingcap/tidb#39657
2023-01-05 14:44:21 +08:00
62a713394f server, tidb-server: kill auto analyze when gracefully shutting down (#40284)
close pingcap/tidb#40038
2023-01-04 12:02:19 +08:00
11f5c1791e *: add support for -initialize-sql-file on first bootstrap (#35625)
close pingcap/tidb#35624
2022-12-28 13:02:16 +08:00
ab01065a85 metrics: remove Keep Alive OPM metric (#40142)
close pingcap/tidb#40143
2022-12-27 10:56:17 +08:00
aeccf77637 *: optimize mpp probe (#39932)
close pingcap/tidb#39686
2022-12-22 15:42:55 +08:00
53572f86df resourcemanger: create cpu monitor (#39962)
ref pingcap/tidb#39657
2022-12-16 14:54:53 +08:00
824ef608c7 *: support password expiration policy (#39035)
ref pingcap/tidb#9709, close pingcap/tidb#38936
2022-12-02 16:36:02 +08:00
2548e66089 txn: respect txn-total-size-limit if it is manually set (#39550)
close pingcap/tidb#35203
2022-12-02 06:50:01 +08:00
21d6190278 txn: tidb_constraint_check_in_place_pessimistic should not be global scoped (#38767)
close pingcap/tidb#38766
2022-11-07 10:31:50 +08:00
114d8c1195 *: enable global memory control by default (#38899) 2022-11-04 21:36:01 +08:00
0b3e1e9be0 *: Chunkreuse try reuse chunk in operator (#38607)
close pingcap/tidb#38606
2022-11-04 11:28:00 +08:00
f9c7bbccec *: authentication using tidb_auth_token plugin (#38773)
close pingcap/tidb#38504
2022-11-04 02:54:00 +08:00
c799b0f165 *: disable global memory control by default (#38859) 2022-11-03 19:32:01 +08:00
5cdfea619f *: bring back the 'make ut' (#38806) 2022-11-02 17:18:00 +08:00
873a3ea719 json: add json_storage_free function (#38544)
close pingcap/tidb#38517
2022-10-21 14:03:55 +08:00
8d57ed9b16 bazel: remove useless config (#38581) 2022-10-20 20:25:54 +08:00
c1666d1b92 sessionctx: add tidb_gogc_tuner_threshold (#38432)
close pingcap/tidb#38431
2022-10-20 18:35:55 +08:00
93e0d36742 extension: init tidb new extension framework (#38497)
close pingcap/tidb#38496
2022-10-19 21:13:54 +08:00
e7b0eb53b1 config: fix data race raised by EnableCollectExecutionInfo (#38409)
close pingcap/tidb#38408
2022-10-12 17:17:51 +08:00
d10e195e20 util: record more information before OOM (#37987)
ref pingcap/tidb#37409
2022-10-12 10:45:50 +08:00
8afb7c8eda util: add gctuner to avoid gc frequently (#32091)
close pingcap/tidb#32090
2022-10-10 12:29:48 +08:00
4e4169bcc5 *: support global memory control for tidb (#37794)
ref pingcap/tidb#37816
2022-09-26 12:01:43 +08:00
1eeedacc60 *: remove goleak's ignoring opencensus top function (#37908) 2022-09-19 12:29:00 +08:00
f61024b2dc variables: change tidb_rc_read_check_ts to instance level (#37803)
close pingcap/tidb#37802
2022-09-16 18:28:59 +08:00
323fdb224d ddl: add index acceleration introduce sysvars and config param (#36088)
ref pingcap/tidb#35983
2022-08-12 15:44:49 +08:00
5c00246838 server: Change proxyprotocol to lazy mode (#36301)
ref pingcap/tidb#36312
2022-08-11 15:16:48 +08:00
244b353a11 planner: support session level for the variable tidb_enable_prepared_plan_cache (#36923)
ref pingcap/tidb#36598
2022-08-08 11:18:47 +08:00
c060208b2f *: move config file option oom-use-tmp-storage to sysvar (#36679)
ref pingcap/tidb#33769
2022-08-02 16:58:05 +08:00
fc217d432c config, sysvar: add config instance.enable_ddl and sysvar tidb_enable_ddl (#35425)
ref pingcap/tidb#34960
2022-08-01 15:02:06 +08:00
b75b785b65 *: support bazel for explain test (#36563) 2022-07-26 19:09:10 +08:00
bf743a6ca0 *: enable flaky test for all test (#36385)
close pingcap/tidb#36404
2022-07-22 15:35:09 +08:00
ab513bf0ca ddl: support concurrent ddl (#32169)
* 1. init ddl tables

create tidb_ddl_job, tidb_ddl_reorg, tidb_ddl_history tables with raw meta write, these 3 tables is use to replace the ddl job queue and reorg and history hash table

* 2. setup concurrent ddl env and add ddl worker pool

adds the ddl worker pool definition, the ddl job manager will find a job and ship it to a worker in the worker pool.
Also, this commit provides a sessionctx wrapper, only use in ddl relate. it just wraps begin, commit and execute

* 3. add ddl manager to handle ddl job

* 4. reorg handler for concurrent ddl

just implements the partner of the reorg information.

* 5. manage ddl jobs for concurrent ddl

add the partner of add job, delete job and many others related to history job
because many of the functions need a session now, we just change the caller

* 6. add metrics for concurrent ddl

add metrics

* 7. support multiple tables

* 8. fix test

* 9. migrate ddl between table and queue

support switch between the old and new ddl framework, migrate the existing ddl job between queue and table

* 10. check tikv version and set reorg worker count according cpu count

* *: add featuretag on tests

Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>

* use a determined table id for 3 tables

* remove ctx value

* add GetSchemaVersionWithNonEmptyDiff function

* address tangenta and zimulala comment

* use only one etcd path

* make ActionRenameTable support multi-schema

* reset sql digest to make top sql work correct

* add comment

* fix test

* remove 0 for schema version lock

Co-authored-by: xiongjiwei <xiongjiwei1996@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
2022-07-20 21:20:07 +08:00
fa00fc5cd5 *: set fine grain timeout and update bazel config (#36220) 2022-07-15 11:11:05 +08:00
8b168ca7d1 config: hide and remove query feedback config (#35798)
close pingcap/tidb#35790
2022-07-11 16:01:05 +08:00
2bd4c4a3a0 *: enable ineffassign (#35670)
close pingcap/tidb#35345
2022-06-23 16:08:37 +08:00
e2b55640c1 config, sysvar: map max-server-connections to max_connections (#35453)
ref pingcap/tidb#34960
2022-06-23 15:12:37 +08:00
df9b54bcb3 txn, session: Add (cluster_)trx_summary table (#28835)
ref pingcap/tidb#34457
2022-06-23 11:16:36 +08:00
d3e9114f44 *: enable more flaky test, enable more shard_count and update bazel config (#35300)
ref pingcap/tidb#35247
2022-06-13 17:52:32 +08:00
4d8cf5e1e2 metrics: add a config to unregister the unused metrics (#34990)
close pingcap/tidb#34989
2022-06-09 15:34:31 +08:00
2b4a4c6d7a *: support bazel (#33691)
close pingcap/tidb#34083
2022-06-07 15:22:30 +08:00
3ac98d38af config, sysvar: fix the missing config of plugins. (#34926)
close pingcap/tidb#34917
2022-05-25 11:26:46 +08:00
0cbccb74f3 *: move config file options prepared-plan-cache.* to sysvars (#34790)
close pingcap/tidb#30168, ref pingcap/tidb#33769
2022-05-19 16:18:39 +08:00
eae2ae84f4 *: move config file option tidb_enable_auto_analyze to sysvar (#34643)
ref pingcap/tidb#33769
2022-05-19 02:34:38 +08:00
d2ada35afa *: move config file option require_secure_transport to sysvar (#34261)
ref pingcap/tidb#33769
2022-05-17 22:02:37 +08:00
810f8ae12e *: remove pingcap/check dependency (#34734)
close pingcap/tidb#28328
2022-05-17 21:38:37 +08:00
0d5ac6f3cb sysvar, config: mapping config settings to system variables. (#33279)
ref pingcap/tidb#32887
2022-04-29 13:20:52 +08:00
20a58199cf *: move config file option mem-quota-query to sysvar (#34141)
ref pingcap/tidb#33769
2022-04-26 03:58:50 +08:00