Ryan Leung
8fc4035ee8
*: move api tests to tests package ( #9204 )
...
ref tikv/pd#7969
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2025-04-21 07:08:20 +00:00
Ryan Leung
0be48d5804
*: migrate to golangci-lint v2 ( #9184 )
...
close tikv/pd#9186
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2025-04-21 03:43:14 +00:00
Ryan Leung
e907aac6fc
*: enable gci ( #8925 )
...
ref tikv/pd#4322
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
2024-12-17 07:23:16 +00:00
lhy1024
4e48f5b13d
mcs: add store and region interface in scheduling server ( #7754 )
...
ref tikv/pd#5839
Signed-off-by: lhy1024 <admin@liudos.us>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
2024-01-31 07:34:53 +00:00
lhy1024
dff99fd4a1
*: decouple operator handler and server ( #7089 )
...
ref tikv/pd#5839
Signed-off-by: lhy1024 <admin@liudos.us>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
2023-09-19 06:31:42 +00:00
Ryan Leung
01b8f34a40
*: update the swagger dependency ( #5183 )
...
close tikv/pd#5160
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-06-21 12:18:36 +08:00
Yongbo Jiang
6d4d8a5f23
api: Refactor service label and Traverse routes to get it ( #4683 )
...
close tikv/pd#4681
Traverse routes to get all service labels
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-03-14 10:37:51 +08:00
disksing
20b00a7c49
*: fix license ( #3996 )
...
Signed-off-by: disksing <i@disksing.com>
2021-08-17 18:48:00 +08:00
Ryan Leung
2b2d88636d
fix some lints ( #3980 )
...
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2021-08-13 01:13:56 +08:00
disksing
69209e0a3e
api: save cluster in request context ( #3756 )
...
Signed-off-by: disksing <i@disksing.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2021-06-15 10:24:36 +08:00
xhe
371f6e88aa
api: refactor, only check the existence in middleware ( #3313 )
...
Signed-off-by: xhe <xw897002528@gmail.com>
2020-12-30 15:32:46 +08:00
Howard Lau
3d5895b0d0
*: fix missing calls to .Error() ( #2870 )
...
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-09-01 13:46:21 +08:00
Ryan Leung
bcfa77a7a5
*: unify error handling by removing pkg/errors ( #2644 )
...
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2020-08-20 16:49:26 +08:00
混沌DM
b97439232d
*: update copyright ( #2774 )
...
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
2020-08-17 17:33:53 +08:00
ShuNing
5f3188873f
*: update import path ( #2772 )
...
* *: update import path
Signed-off-by: nolouch <nolouch@gmail.com>
2020-08-17 14:59:10 +08:00
loxp
838ede3139
doc: add swagger support ( #2276 )
2020-04-01 11:27:14 +08:00
Shafreeck Sea
3b82b56553
mod: fix mod using Semantic Import Versioning for master ( #2120 )
...
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
2020-02-21 19:55:38 +08:00
Ryan Leung
4f1f8677cf
*: split cluster into a package ( #1906 )
...
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2019-12-04 19:12:42 +08:00
disksing
5cfd3b1d62
api: use middleware to get raftCluster ( #1908 )
...
Signed-off-by: disksing <i@disksing.com>
2019-11-07 16:15:41 +08:00
Ryan Leung
561d00414f
*: unify get store function everywhere ( #1671 )
...
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2019-08-19 15:41:48 +08:00
Ryan Leung
fa508a1acf
server: refactor cluster related logic ( #1654 )
...
* refactor cluster related logic
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2019-08-08 15:26:01 +08:00
Greg Weber
47a950e664
switch from juju/errors to pkg/errors ( #1210 )
...
* switch from juju/errors to pkg/errors
pkg/errors maintains a stack trace and its not slower
* Gopkg changes for juju/errors -> pkg/errors
2018-08-24 12:47:15 -07:00
Connor
e94ccf5f91
*: new store region score function for balance ( #1014 )
2018-04-19 15:20:48 +08:00
Connor
72d22255f3
export some structs ( #972 )
2018-03-03 21:59:39 +08:00
Connor
02977614b3
core, api: store labels case-insensitive ( #794 )
2017-10-13 04:31:41 -05:00
disksing
09468416c4
*: add some store states. ( #775 )
2017-09-29 15:18:08 +08:00
disksing
d092c8f1f7
*: refactor storeInfo. ( #712 )
2017-08-28 11:30:46 +08:00
ShuNing
07d2fc1c64
*:record raft cluster bootstrap time ( #645 )
2017-05-22 16:49:18 +08:00
Huachao Huang
201fa24a10
server: balance according to region count ( #506 )
...
* server: balance according to region count
We will adjust the balance speed and threshold according to the leader count and
region count, so that we can remove some dumb configurations.
* server: update diff formula and interval control
* adjust balance limit according to standard deviation
2017-02-24 14:12:12 +08:00
ShuNing
5723fd66ee
server/api: add label api ( #517 )
...
* server/api: add label api
2017-02-17 14:26:13 +08:00