diff --git a/doc/design/dist/README.md b/doc/design/dist/README.md index 73cd7449684c0f4c0eeb3ade5f4e059a9a75e63a..1788208bcabca30f66cb1c80e80f6b824c0d9579 100644 --- a/doc/design/dist/README.md +++ b/doc/design/dist/README.md @@ -116,7 +116,7 @@ When the master is started by the Kubernetes, it executes the following steps at 1. Grabs a unique *master* lock in etcd, which prevents concurrent master instantiations. 1. Recovers the task queues from etcd if they already exist, otherwise, the master will create them. 1. Watches the trainer prefix keys `/trainer/` on etcd to find the live trainers. -1. Starts dispatching the tasks to the trainers. +1. Starts dispatching the tasks to the trainers, and updates task queue using an etcd transaction to ensure lock is held during the update. The master process will kill itself if its etcd lease expires.