perfsonar / pscheduler

The perfSONAR Scheduler
Apache License 2.0
55 stars 32 forks source link

new pscheduler 'availability' command #305

Open bltierney opened 7 years ago

bltierney commented 7 years ago

It would be very useful to have pscheduler command to query roughly how busy a host is? something like ‘pscheduler availability —host=hostname’ that would return a %percent remaining free time for tests that require 'exclusive' access.

This could then be used by various GUIs to indicate how busy the host is before adding it to a test mesh.

marian-babik commented 7 years ago

+1 for WLCG, it would great to have this available via API, so we're able to tune up/down our central meshes based on how busy the hosts are. We now rely on calculating this manually, which works fine if all tests are centrally defined (via meshconfig), but doesn't if sites add (significant number of) their own custom tests locally.

mfeit-internet2 commented 7 years ago

@marian-babik All operations involving pScheduler's timeline are done through its REST API, so what you want will be available by pulling the schedule and analyzing it. For the moment, the API isn't formally documented, and that's something I hope to get to after 4.0 is out the door.

There's a lot of power hidden by meshconfig and its limitations, but we didn't have the horsepower to do a major overhaul in this release and opted instead to leave the front side of it the same and have it talk to pScheduler from the back. (We may consider a complete replacement for a future release.)

pScheduler is reasonably intelligent, and the best thing to do is give it enough leeway to do its work. I recommend the following:

mfeit-internet2 commented 9 months ago

After discussion: