-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass set of node-ids in jobs so that anyone from the list can pick it #102
Comments
Being taken care as part of #104 |
Currently, the node-agents pick up jobs based on round robin method, and in future with node tagging, the tags will also be used to map jobs to node agents. Why do we need this? |
@r0h4n as per discussion with @brainfunked last week, we may need to target job to a set of nodes and any one from that list can pick as process. It could case like we want the job to be picked by any of the mons in the ceph cluster, and in tha case task can populate node_ids value to the set of ids of mons in the cluster and create job in queue. @brainfunked @nnDarshan comments? |
We need restrict the distribution of the jobs such that they would be picked up by one of the nodes in a specific group. This came to originate from the import and create cluster workflows. In these workflows, it is necessary to enable the user to select specific targets for jobs to be executed upon. Some additional thoughts. With the bridges, they should all have hardcoded logic to decide which instance should pick up a particular job.. Rather than tying this to a specific node, in case of bridges, the logic should be purely role based, where currently, the roles are all hardcoded in the bridges (not explicitly, but based on the logic that distributes the jobs among bridges using the metadata of the job). The reason behind this is that this is an implementation detail hard-bound to a specific storage system. The entity invoking a job (user, node agent, whomsoever) must not need to know how it gets implemented on the storage system side. Hence, I think this patch should apply only to the node agents and not the bridges. As is already the case, the bridges should have hardcoded logic to decide which instance picks up a particular job. |
Enable job execution framework in tendrl to set set of node-ids in the job submitted to central store. One of the agents running on the storage nodes, would pick the job if their node-id falls in this list. This enables targeting a job to a set of nodes rather than to a specific node (of course the list can have only one entry and a job can be targeted to a specific node as well :)
The text was updated successfully, but these errors were encountered: