Per design in YARN-2928, implement ATS writer service discovery. This is essential for off-node clients to send writes to the right ATS writer. This should also handle the case of AM failures.
[Event producers] Implement MapReduce AM writing MR events/counters to v2 ATS
[Event producers] Implement NM writing container lifecycle events to ATS
[Collector wireup] Work-preserving restarting of per-node timeline collector