Distributed package management using meta-scheduling
A system for package management includes an interface and a processor. The interface is to receive an indication to install a package. The processor is to determine a configured package using a set local configuration properties and using the package and to launch, using a metascheduler, a set of subschedulers to install a plurality of applications of the configured package.
1. A method, comprising:
receiving, at a cluster manager, an indication to install a package;
determining, using a processor, a configured package using a local configuration property for the package;
providing instructions from the cluster manager to a meta-scheduler to schedule installation of the configured package;
performing the installation by a sub-scheduler after the meta-scheduler schedules the installation, the sub-scheduler located at each node of a cluster and providing instructions to an agent;
performing, by an agent located on a node, for an installation task to install at least a portion of the configured package at the node to provision software services provided by the package, wherein the agent reports success or failure to the sub-scheduler; and
providing, by the sub-scheduler, a report regarding the installation, wherein the meta-scheduler takes a remedial action regarding the installation based upon the report in order to take the remedial action.
2. The method of claim 1 , wherein the sub-scheduler installs an application of a plurality of applications of the configured package on one or more nodes of the cluster.
3. The method of claim 1 , wherein the agent performs the installation task and generates a task result that is provided to the sub-scheduler, the meta-scheduler, or a cluster manager.
4. The method of claim 1 , wherein the remedial action kills an existing sub-scheduler process for the installation and re-starts a sub-scheduler process.
5. The method of claim 1 , wherein the remedial action re-starts the meta-scheduler.
6. The method of claim 1 , wherein the sub-scheduler restarts the installation of an application.
7. The method of claim 1 , wherein both the meta-scheduler and the sub-scheduler are hierarchically higher than the agent for the installation in that the meta-scheduler is integrated with the sub-scheduler on the node for execution of the installation task by the agent as directed by the meta-scheduler or the sub-scheduler.
8. A system, comprising:
a processor;
a memory for holding programmable code; and
wherein the programmable code includes instructions which, when executed by the processor, causes the processor to execute a set of acts, the set of acts comprising:
receiving, at a cluster manager, an indication to install a package;
determining, using a processor, a configured package using a local configuration property for the package;
providing instructions from the cluster manager to a meta-scheduler to schedule installation of the configured package;
performing the installation by a sub-scheduler after the meta-scheduler reschedules the installation, the sub-scheduler located at each node of a cluster and providing instructions to an agent;
performing, by the agent located on a node, an installation task to install at least a portion of the configured package at the node to provision software services provided by the package, wherein the agent reports success or failure to the sub-scheduler; and
providing, the sub-scheduler, a report regarding the installation, wherein the meta-scheduler takes a remedial action regarding the installation based upon the report in order to take the remedial action.
9. The system of claim 8 , wherein the sub-scheduler installs an application of a plurality of applications of the configured package on one or more nodes of the cluster.
10. The system of claim 8 , wherein the agent performs the installation task and generates a task result that is provided to the sub-scheduler, the meta-scheduler, or a cluster manager.
11. The system of claim 8 , wherein the remedial action kills an existing sub-scheduler process for the installation and re-starts a sub-scheduler process.
12. The system of claim 8 , wherein the remedial action re-starts the meta-scheduler.
13. The system of claim 8 , wherein the sub-scheduler restarts the installation of an application.
14. A computer program product comprising a non-transitory computer readable medium, the computer readable medium having stored thereon a sequence of instructions which, when executed by a processor, executes at least:
receiving, at a cluster manager, an indication to install a package;
determining, using a processor, a configured package using a local configuration property for the package;
providing instructions from the cluster manager to a meta-scheduler to schedule installation of the configured package;
performing the installation by the sub-scheduler the meta-scheduler schedules the installation, the sub-scheduler located at each node of c cluster and providing instructions to an agent;
performing, by the agent located on a node, an installation task to install at least a portion of the configured package at the node to provision software services provided by the package, wherein the agent reports success or failure to the sub-scheduler; and
providing, by the sub-scheduler, a report regarding the installation, wherein the meta-scheduler takes a remedial action regarding the installation based upon the report in order to take the remedial action.
15. The computer program product of claim 14 , wherein the sub-scheduler installs an application of a plurality of applications of the configured package on one or more nodes of the cluster.
16. The computer program product of claim 14 , wherein the agent performs the task and generates a task result that is provided to the sub-scheduler, the meta-scheduler, or a cluster manager.
17. The computer program product of claim 14 , wherein the remedial action kills an existing sub-scheduler process for the installation and re-starts a sub-scheduler process.
18. The computer program product of claim 14 , wherein the remedial action re-starts the meta-scheduler.
19. The computer program product of claim 14 , wherein the sub-scheduler restarts installation of an application.