服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Linux - 烂sql导致clickhouse集群memory_tracking直线飙升触发熔断

烂sql导致clickhouse集群memory_tracking直线飙升触发熔断

2023-06-28 18:05未知服务器之家 Linux

版 本 v e r s i o n 1 9 . 1 7 . 4 . 1 1 c l i c k h o u s e 集 群 , 主 要 存 日 志 数 据 与 监 控 数 据 。 架 构 为 4 台 主 机 1 2 个 实 例 数 , 数 据 为 单 副 本 。 近 日 , 该 c l i c k h o u s e 集 群 有 一 台 物 理 机 的 硬 件 ( 电 池 ) 损

v e r s i o n 1 9 . 1 7 . 4 . 1 1 c l i c k h o u s e 4 1 2

c l i c k h o u s e D B : : E x c e p t i o n : M e m o r y l i m i t ( t o t a l ) e x c e e d e d : w o u l d u s e 1 1 1 . 7 6 G i B ( a t t e m p t t o a l l o c a t e c h u n k o f 5 7 6 6 8 8 0 b y t e s ) , m a x i m u m : 1 1 1 . 7 6 G i B

c l i c k h o u s e _ m e m o r y _ t r a c k i n g 使 2 0 2 3 . 0 6 . 2 6 1 7 : 5 7 c l i c k h o u s e c l i c k h o u s e _ m e m o r y _ t r a c k i n g 线 0 使 m a x _ m e m o r y _ u s a g e _ f o r _ a l l _ q u e r i e 1 2 0 G 使 1 2 0 G M e m o r y l i m i t ( t o t a l ) e x c e e d e d

烂sql导致clickhouse集群memory_tracking直线飙升触发熔断 烂sql导致clickhouse集群memory_tracking直线飙升触发熔断

c l i c k h o u s e _ g l o b a l _ t h r e a d _ a c t i v e 5

烂sql导致clickhouse集群memory_tracking直线飙升触发熔断 烂sql导致clickhouse集群memory_tracking直线飙升触发熔断

c l i c k h o u s e _ q u e r y

烂sql导致clickhouse集群memory_tracking直线飙升触发熔断 烂sql导致clickhouse集群memory_tracking直线飙升触发熔断

2023-06-26 17:50:00 ~ 2023-06-26 18:08:00 这 c l i c k h o u s e

selectquery_start_time,query_duration_ms,address,read_rows,queryfromsystem.query_logwhereevent_timebetweentoDateTime('2023-06-2617:50:00')andtoDateTime('2023-06-2618:08:00')orderbyread_rowsdesclimit10

s e l e c t * f r o m x x 1 U N I O N A L L s e l e c t * f r o m x x 2 s q l 1 8 2 U N I O N A L L 3 0 0 亿

烂sql导致clickhouse集群memory_tracking直线飙升触发熔断 烂sql导致clickhouse集群memory_tracking直线飙升触发熔断

c l i c k h o u s e D B : : E x c e p t i o n : C a n n o t s c h e d u l e a t a s k ( v e r s i o n 1 9 . 1 7 . 4 . 1 1 ( o f f i c i a l b u i l d ) ) ( f r o m 1 7 2 . 2 6 . 1 8 5 . 1 8 6 : 5 1 7 0 8 ) ( i n q u e r y : S E L E C T a p i F R O M i o v _ l o g . t _ i o v _ g w _ l o g _ l o c a l _ 2 0 2 3 0 1 2 7 ) , S t a c k t r a c e 1 7 2 . 2 6 . 1 8 5 . 1 8 6

2023.06.2617:57:30.120612[34959]{a6ee5760-0b1c-410d-a6de-a5016425fe68}<Error>executeQuery:Code:439,e.displayText()=DB::Exception:Cannotscheduleatask(version19.17.4.11(officialbuild))(from172.26.185.186:51708)(inquery:SELECTapiFROMiov_log.t_iov_gw_log_local_20230127),Stacktrace:

便

烂sql导致clickhouse集群memory_tracking直线飙升触发熔断 烂sql导致clickhouse集群memory_tracking直线飙升触发熔断


1 7 2 . 2 6 . 1 8 5 . 1 8 6 - > 1 7 2 . 2 6 . 1 8 5 . 1 8 6 s q l 1 8 2 U N I O N A L L 3 0 0 亿 - > 1 7 2 . 2 6 . 1 8 5 . 1 8 6 c l i c k h o u s e _ l o c a l _ t h r e a d 线 - > c l i c k h o u s e _ g l o b a l _ t h r e a d _ a c t i v e 线 - > c l i c k h o u s e _ m e m o r y _ t r a c k i n g - > m a x _ m e m o r y _ u s a g e _ f o r _ a l l _ q u e r i e - > M e m o r y l i m i t ( t o t a l ) e x c e e d e d - > c l i c k h o u s e


1 c l i c k h o u s e _ g l o b a l _ t h r e a d _ a c t i v e 线

2 c l i c k h o u s e _ m e m o r y _ t r a c k i n g 使

3 m a x _ m e m o r y _ u s a g S Q L 使

4 s q l


延伸 · 阅读

精彩推荐