Currently, all worker tasks are registered in Mesos-DNS using INTEGRATION_MESOS_ALLUXIO_WORKER_NAME. This makes it impossible to resolve FQDN of individual worker tasks (indeed all tasks are registered under the same name). For example: alluxioworker.alluxio.mesos
It would be good to:
(1) Append taskId to worker task names. This would properly register tasks in Mesos-DNS.
(2) Expose the FQDN of worker tasks in an environment variable to be consumed by alluxio-worker-mesos.sh. This would allow to run worker tasks with "alluxio.worker.hostname, alluxio.worker.web.hostname, and alluxio.worker.data.hostname" set to task FQDN. This is especially useful in environments where regular DNS is not setup. In such environments, worker tasks are registered with Alluxio master using wrong/non-resolvable hostname.