During the last few days, Josh and I have finished the work on how workflows and long running jobs are processed in Matterhorn. Until now, jobs that were submitted to a certain node in a multi-node setup were immediately executed on that initial node. In addition, workflows started on a certain node were executed on that one node (while its jobs were already distributed over the multi node system).
This had multiple disadvantages: [ 1 ] All context information on the workflow and job were in memory, meaning that if a server "hosting" a workflow went down (or was taken down for maintenance), that workflow and all it's associated long running jobs were lost. [ 2 ] There was no central way to manage the maximum load on a single host or in the system overall, which could lead to a massive overload, e. g. in import scenarios. [ 3 ] In implementations close to institutional developers (e. g. operation handlers, service implementations), there was heavy use of Callable and Future constructs in order to guarantee asynchronous execution. This made it much more challenging to start implementing (aka barrier to entry) [ 4 ] Every service implementation needed its own thread pool and thread pool configuration, which led to a cluttered config file and a bad experience for system administrators. [ 5 ] There was no safe way to figure out when a job or workflow had entered a current state. This made our tests prone to failure since Thread.sleep() was used as a workaround, which is not guarantee to work and is implemented differently on different platforms. [ 6 - 100 ] Many more reasons exist, can't list them all :-) All these problems have (hopefully) been solved in revision 9554. The result is a more lightweight approach to load balancing, a first implementation of failover and a larger amount of lines of code that we got rid of. System administrators will soon be able to shut down parts of their Matterhorn infrastructure for (e. g. for maintenance) without failing their currently running workflows. In addition, this work enables quick(er) wins in some other areas as well, such as restarting failed workflows on either the workflow or the operation level. Enjoy your weekend, Josh & Tobias _______________________________________________ Matterhorn mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn To unsubscribe please email [email protected] _______________________________________________
