I am using Mesos for container orchestration and get task history from Mesos using /task endpoint.
Mesos is running in a 7 nodes cluster and zookeeper is running in a 3 node cluster. I hope, Mesos uses Zookeeper to store the task History. We lost history sometimes when we restart Mesos. Does it store in memory? I am trying to understand what is happening here.
My questions are,
To answer your questions:
replicated_log
(details here). The default is set to use the replicated_log
, to store state completely in memory without the replicated_log
you would have to specify this in your Mesos flags seen here in the configuration page as --registry=in_memory
--max_completed_frameworks=VALUE
, --max_completed_tasks_per_framework=VALUE
, and --max_unreachable_tasks_per_framework=VALUE
as described in the previous document./tasks
endpoint is lost every time a Mesos Master is restarted. However, the /state
endpoint will still contain all task status changes over time.**Edited to reflect information about the /tasks endpoint, not the /state endpoint.