cluster upstream having dynamic port

i have two kong nodes on different servers. sharing the same postgres dataset.

the services on startup make the register to kong.
the services have dynamic port.

after starup i have multi targets by upstream in both servers, all with different port.

have active healty.
but when kong on server one run health check, mark the targets on server two unhealthy and contrariwise.

i try change target host, from “localhost” to “ip” of server, but give “DNS_ERROR”.

I’m missing some config?

in case of targets with dynamic port for same upstream on different servers,
should i setup different dataset?