summaryrefslogtreecommitdiff
path: root/scheduler/status_server.py
AgeCommit message (Collapse)AuthorFilesLines
2011-02-21Trying to shutdown the scheduler in a nicer waylmr1-0/+5
Signed-off-by: Jean-Marc Eurin <jmeurin@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@5256 592f7852-d20e-0410-864c-8624ca9c26a4
2010-02-19Refactor scheduler models into a separate module, scheduler_models. This ↵jamesren1-3/+3
module doesn't depend on monitor_db, only the other way around. The separation and isolation of dependencies should help us organize the scheduler code a bit better. This was made possible largely by the many changes we made late last year to improve statelessness of the scheduler. It was motivated here by my work on pluggable metahost handlers, which will need to depend on scheduler models. Without this separation, we'd end up with circular dependencies. Also includes some fixes for metahost schedulers. Signed-off-by: Steve Howard <showard@google.com> Property changes on: scheduler/scheduler_models.py git-svn-id: svn://test.kernel.org/autotest/trunk@4252 592f7852-d20e-0410-864c-8624ca9c26a4
2010-01-15* fix a bug with restricted drone users config parsingshoward1-2/+7
* display allowed users in the status server * ensure drone users reparse correctly * fix a bug in max_runnable_processes introduced by user restrictions (could pass empty set to max()) Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@4121 592f7852-d20e-0410-864c-8624ca9c26a4
2009-06-10convert a few straggling print statements in the scheduler code to logging callsshoward1-3/+3
Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@3235 592f7852-d20e-0410-864c-8624ca9c26a4
2009-01-20Make maximum process throttling configurable on a per-drone basis.showard1-6/+7
Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2660 592f7852-d20e-0410-864c-8624ca9c26a4
2009-01-13Set CLOEXEC on the listening socket FD for the scheduler's status_server, so ↵showard1-1/+5
that child processes won't inherit the handle. Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2625 592f7852-d20e-0410-864c-8624ca9c26a4
2009-01-13Add capability to "phase out" drones. You can disable a drone in the global ↵showard1-2/+19
config using "<drone hostname>_disabled: 1". Then, from the scheduler web interface, you can reload the config, causing the scheduler to stop scheduling new jobs on the drone but to see all existing jobs to completion. This allows us to safely remove drones from the system without any loss of work. Also moves some initialization lines in monitor_db.main() inside the try-except, so that exceptions there will be reported via email and the status server will still be shut down. Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2624 592f7852-d20e-0410-864c-8624ca9c26a4
2009-01-08Make the status server smart enough to shut down cleanly when the scheduler ↵showard1-9/+22
exits. Some of this code is taken from tcpserver/tcpcommon.py. I'm not sure where we'd put the common code for these, or if it's too early for that. Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2610 592f7852-d20e-0410-864c-8624ca9c26a4
2009-01-07* move some scheduler config options into a separate module, scheduler_configshoward1-0/+84
* add a little embedded HTTP server to the scheduler, defined in status_server.py, running in a separate thread. this displays loaded config values and allows reloading of those config values at runtime. in the future we can extend this to do much more. * make global_config handles empty values as nonexistent values by default. otherwise, we would have to both pass a default= and check for value == '' separately. Now, we just pass default= and it's all taken care of. Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2608 592f7852-d20e-0410-864c-8624ca9c26a4