JmPotato
7793c676c4
feat(resourcecontrol): refine request bypass logic for internal analyze and system requests ( #1772 )
...
ref tidbcloud/cloud-storage-engine#3703
Signed-off-by: JmPotato <github@ipotato.me>
Co-authored-by: glorv <glorvs@163.com>
2025-10-27 06:44:10 +00:00
zyguan
c0b6188ffd
client: support interceptor in SendRequestAsync ( #1735 )
...
Signed-off-by: zyguan <zhongyangguan@gmail.com>
2025-08-22 07:58:38 +00:00
zyguan
557a4986e4
client: merge ClientAsync into Client ( #1664 )
...
Signed-off-by: zyguan <zhongyangguan@gmail.com>
2025-07-08 03:13:06 +00:00
zyguan
70e1ca6d5c
client: implement SendRequestAsync for RPCClient ( #1604 )
...
ref tikv/client-go#1586
Signed-off-by: zyguan <zhongyangguan@gmail.com>
2025-03-20 15:22:29 +00:00
zyguan
e9d868c0a1
client: refactor intercepted client ( #1557 )
...
Signed-off-by: zyguan <zhongyangguan@gmail.com>
2025-01-16 09:20:58 +00:00
ShuNing
70049ae310
mod: update pd client ( #1490 )
...
Signed-off-by: nolouch <nolouch@gmail.com>
2024-11-11 09:02:27 +00:00
glorv
e80e9ca1fe
resource_control: add ru details in ExecDetails ( #1070 )
...
* collecting the RU information by pasing point through context.Value (#1032 )
Signed-off-by: zzm <zhouzemin@pingcap.com>
* add ruWaitDuration to RUDetails and update pd-client
Signed-off-by: glorv <glorvs@163.com>
---------
Signed-off-by: zzm <zhouzemin@pingcap.com>
Signed-off-by: glorv <glorvs@163.com>
Co-authored-by: zzm <zhouzemin@pingcap.com>
2023-12-04 15:40:48 +08:00
glorv
1c2351c281
resource_control: set override_priority with resource group priority by default ( #1060 )
...
* set override_priority with resource group priority
Signed-off-by: glorv <glorvs@163.com>
* update go.mod
Signed-off-by: glorv <glorvs@163.com>
* fix typo
Signed-off-by: glorv <glorvs@163.com>
* fix
Signed-off-by: glorv <glorvs@163.com>
---------
Signed-off-by: glorv <glorvs@163.com>
2023-11-16 13:17:30 +08:00
ShuNing
45894d9d36
[pick] resource_control: bypass some internal urgent request ( #938 )
...
* resource_control: bypass some internal urgent request (#884 )
Signed-off-by: nolouch <nolouch@gmail.com>
* resourcecontrol: fix nil pointer (#900 )
Signed-off-by: nolouch <nolouch@gmail.com>
---------
Signed-off-by: nolouch <nolouch@gmail.com>
2023-08-11 03:40:06 -06:00
Hu#
76d6d93e98
resource_manager: ignore ru metrics for background request ( #872 )
...
Signed-off-by: husharp <jinhao.hu@pingcap.com>
Co-authored-by: disksing <i@disksing.com>
2023-07-26 15:13:54 +08:00
glorv
864a5fc0c4
make ResourceControlInterceptor atomic ( #848 )
...
Signed-off-by: glorv <glorvs@163.com>
2023-06-21 11:10:26 +08:00
glorv
0b4b0ca00e
kvrpc: deduplicate chained intercept by name ( #832 )
...
* dedup chained interceptor
Signed-off-by: glorv <glorvs@163.com>
2023-06-13 20:21:06 -07:00
Connor
35c1ee47c4
Set resource group penalty ( #772 )
...
* Set resource group penalty
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2023-04-19 20:39:20 +08:00
BornChanger
d19741b3ed
internal: treat default resource group normally ( #708 )
...
Signed-off-by: BornChanger <dawn_catcher@126.com>
2023-03-16 16:06:03 +08:00
ShuNing
ad4d1554b3
resource_control: consider default as a normal group ( #741 )
...
Signed-off-by: nolouch <nolouch@gmail.com>
2023-03-16 15:56:37 +08:00
JmPotato
9d950905d7
Introduce the RURuntimeStats ( #732 )
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-03-16 10:19:36 +08:00
Yongbo Jiang
e2da552702
*: Update pd client ( #722 )
...
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Co-authored-by: disksing <i@disksing.com>
2023-02-28 17:15:02 +08:00
disksing
9b3ecc1dca
*: update pd client ( #694 )
...
Signed-off-by: disksing <i@disksing.com>
2023-02-07 12:00:04 +08:00
JmPotato
313152f32c
Simplify the code
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-20 10:03:23 +08:00
JmPotato
2a19c65068
Export the switch
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 17:18:56 +08:00
JmPotato
8553f26149
Fix the test
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 16:55:26 +08:00
JmPotato
08694efec4
Fix the check
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 16:31:47 +08:00
JmPotato
320af6501e
Introduce the switch
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 16:14:47 +08:00
JmPotato
494bebd702
Rename
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 11:50:30 +08:00
JmPotato
35b648cf98
Address the comments
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-18 20:15:50 +08:00
JmPotato
6ee294fedf
Introduce the resource control client
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-18 17:14:24 +08:00
Yexiang Zhang
6165dbaa95
introduce RPC interceptor mechanism ( #389 )
...
* Add interceptor mechanism for tikv RPC
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Rename comment
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Modify comments
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix ineffectual assignment
Signed-off-by: mornyx <mornyx.z@gmail.com>
* add AddInterceptor for KVTxn and KVSnapshot
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Separate intercepor package
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Add comments
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Add order test
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix integration tests
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix integration tests
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Move interceptor call from client to client_collapse
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Add comments
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix comment
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Add client_interceptor
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Modify comment
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Add ut
Signed-off-by: mornyx <mornyx.z@gmail.com>
2021-12-18 13:03:06 +08:00