From the spring doc, I see we can have peer eureka server together, so for Eureka1, in application.yml, I can have:
spring: profiles: peer1 eureka: insta
Use a comma separated list of peers in eureka.client.serviceUrl.defaultZone.
eureka.client.serviceUrl.defaultZone
eureka.client.serviceUrl.defaultZone=http://<peer1host>:<peer1port>/eureka,http://<peer2host>:<peer2port>/eureka