For two hosts, everything is simple: I specify the first as the first server for the first one, and the first for the second (with the help of the SQL command change master to master_host ..).
There is a need to configure replication for a system of 4 hosts. Tell me how to implement it.