First, Brief introduction
Viewed documents: http://www.actionsky.com/mysql-57-semi-sync-intro/
Where the semi-synchronous copy is explained in great detail.
Second, the simple configuration
Semi-synchronous replication is the main theory of mastering, this configuration is just a few simple parameters.
Semi-synchronous replication or in the case of async is correct.
>master:
>>install plugin rpl_semi_sync_master soname ' semisync_master.so ';
>> See if the added plugin was successful:
>>show plugins;
>>
>>select plugin_name,plugin_status from Information_schema.plugins where plugin_name like '%semi% ';
>>
>set Global Rpl_semi_sync_master_enabled=on;
>
>slave:
>install plugin rpl_semi_sync_slave soname ' semisync_slave.so ';
>
>set Global Rpl_semi_sync_slave_enabled=on;
>
Test:
The slave io thread is closed, and this happens when master updates the data.
Wait for the slave server again for 10 seconds,
Start slave io_thread;
View data,
MySQL Semi-synchronous replication