Primary and secondary are usually peers, where the secondary takes over when the primary isn’t functioning. Which isn’t the same relationship, as the master/slave terminology indicates that if the master fails, the slave will also fail.
Parent/child is probably a better way to describe this kind of relationship.