File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2635,6 +2635,39 @@ sub get_replication_status {
26352635 goodprint " This replication slave is up to date with master." ;
26362636 }
26372637 }
2638+ # Parallel replication checks (MariaDB specific)
2639+ if ( $myvar {' version' } =~ / MariaDB/i ) {
2640+ my $parallel_threads =
2641+ $myvar {' slave_parallel_threads' } // $myvar {' replica_parallel_threads' }
2642+ // 0;
2643+ if ( $parallel_threads > 1 ) {
2644+ goodprint
2645+ " Parallel replication is enabled with $parallel_threads threads." ;
2646+
2647+ # Check parallel mode for MariaDB 10.5+
2648+ if ( mysql_version_ge( 10, 5 ) ) {
2649+ my $parallel_mode =
2650+ $myvar {' slave_parallel_mode' } // $myvar {' replica_parallel_mode' }
2651+ // ' ' ;
2652+ if ( $parallel_mode eq ' optimistic' ) {
2653+ goodprint
2654+ " Parallel replication mode is set to 'optimistic'." ;
2655+ }
2656+ else {
2657+ badprint
2658+ " Parallel replication mode is not 'optimistic' (recommended for MariaDB 10.5+)." ;
2659+ push ( @adjvars , " replica_parallel_mode=optimistic" );
2660+ }
2661+ }
2662+ infoprint
2663+ " Ensure binlog_format=ROW is set on the master for parallel replication to work effectively." ;
2664+ }
2665+ else {
2666+ badprint " Parallel replication is disabled." ;
2667+ push ( @adjvars ,
2668+ " replica_parallel_threads (set to number of vCPUs)" );
2669+ }
2670+ }
26382671}
26392672
26402673# https://endoflife.date/mysql
You can’t perform that action at this time.
0 commit comments