Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Handle swarm node role change in vFile plugin #1732

Closed
luomiao opened this issue Aug 10, 2017 · 1 comment
Closed

Handle swarm node role change in vFile plugin #1732

luomiao opened this issue Aug 10, 2017 · 1 comment

Comments

@luomiao
Copy link
Contributor

luomiao commented Aug 10, 2017

Currently the vFile plugin proceeds with the role of the node when the plugin is installed.

However the role of a node can change.
A helper thread is needed in each plugin to handle the change of the role.
For example, when a node is promoted from worker to manager, it should join the etcd cluster and start watcher. On the other hand, when a node is demoted to worker, it should leave the etcd cluster and stop watcher.
The helper thread should regularly check the status of the node.

Question: can the plugin get notified when a node is promoted/demoted?

@luomiao luomiao self-assigned this Aug 10, 2017
@luomiao luomiao added the P2 label Aug 23, 2017
@luomiao luomiao changed the title Handle swarm node role change in vShared plugin Handle swarm node role change in vFile plugin Aug 29, 2017
@lipingxue lipingxue mentioned this issue Sep 11, 2017
12 tasks
@luomiao luomiao added this to the Sprint - Thor milestone Sep 28, 2017
@shuklanirdesh82
Copy link
Contributor

good to have for vFile beta release

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants