File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ # SYSTEM TRANSFER LEADER
2
+ Transfer the leader of a materialized view to another node in the cluster.
3
+
4
+ ``` sql
5
+ SYSTEM TRANSFER LEADER [db.]materialized_view_name shard_id FROM source_node_id TO target_node_id;
6
+ ```
7
+
8
+ For example:
9
+
10
+ ``` sql
11
+ SYSTEM TRANSFER LEADER mv1 0 FROM 3 TO 1 ;
12
+ ```
13
+
14
+ ::: info
15
+ This feature is only available in Timeplus Enterprise v2.5.x or above. This SQL need to be run on the lead node of the cluster.
16
+ :::
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ const sidebars = {
351
351
"sql-show-streams" ,
352
352
"sql-system-pause" ,
353
353
"sql-system-resume" ,
354
+ "sql-system-transfer-leader" ,
354
355
"sql-truncate-stream" ,
355
356
"sql-use" ,
356
357
] ,
You can’t perform that action at this time.
0 commit comments