Use time + hostname to avoid race condition between same service getting published at the same time on different servers

Change-Id: Iac3479844f69db298bf418247de3f2a9746d9bc3
Merge "Use time + hostname to avoid race condition between same service getting published at the same time on different servers"