Make sure you have set the application_name on each standby node. Decide the order of servers to be listed in the synchronous_standby_names parameter. Note that the standbys named must be directly attached standby nodes or else their names will be ignored. Synchronous replication is not possible for cascaded nodes, though cascaded standbys may be connected downstream. An example for a simple four node config of nodeA (master), nodeB, nodeC, and nodeD (standbys) would be set on nodeA as follows:
synchronous_standby_names = 'nodeB, nodeC, nodeD'
If you want to receive replies from the first two of the nodes in a list then we would specify this using the following special syntax:
synchronous_standby_names = '2 (nodeB, nodeC, ...