How oar-team/oar works
OAR is an HPC cluster resource manager and batch scheduler. A user submits or manages a job through command-line tools or the REST API; server-side admission and lifecycle modules manage it, and the scheduler selects resources and records planned execution in the database. The runner and node services carry out jobs, while monitoring and Gantt views expose cluster state. The graph emphasizes documented capabilities and the sampled C++ scheduler implementation; many Perl server modules and integration details are represented at directory level because their source was not excerpted.
Main entry points: database Job and resource DB · Oar_sched_gantt_with_timesharing_and_fairsharing.cc Gantt scheduler · Oar_iolib.cc Scheduler DB access · oarsub Job commands
Components 20
Job access
- Job commands
sources/core/qfunctions/oarsub - REST API
sources/api
Server control
- Admission rules
- Almighty server
sources/core/modules/almighty.pl - Job lifecycle
sources/core/modules - Node state
sources/core/modules/node_change_state.pl - Job and resource DB
sources/core/database
Scheduling
- Gantt scheduler
sources/extra/cpp-scheduler/Oar_sched_gantt_with_timesharing_and_fairsharing.cc - Scheduler DB access
sources/extra/cpp-scheduler/Oar_iolib.cc - Gantt allocation
sources/extra/cpp-scheduler/Gantt_hole_storage.cc - Resource tree
sources/extra/cpp-scheduler/Oar_resource_tree.cc - Scheduler configuration
sources/extra/cpp-scheduler/Oar_conflib.cc
Execution
- Job runner
sources/core/modules/runner/bipbip.in - Node service
sources/core/scripts/oar-node-service - Resource controls
sources/core/tools
Monitoring
- Status commands
sources/core/qfunctions/oarstat - Monika interface
sources/visualization_interfaces/Monika - Gantt visualization
sources/visualization_interfaces/DrawGantt-SVG - Accounting
sources/core/qfunctions/oaraccounting
Other components
- Users
Connections 20
- Users → Job commands: submit or manage
README - Users → REST API: submit via API
- Job commands → Admission rules: request admission
- REST API → Admission rules: request admission
- Admission rules → Job and resource DB: persist jobs
- Almighty server → Job lifecycle: dispatches modules
- Job lifecycle → Job and resource DB: updates job state
- Node state → Job and resource DB: updates resources
- Gantt scheduler → Scheduler configuration: loads settings
sources/extra/cpp-scheduler/Oar_sched_gantt_with_timesharing_and_fairsharing.cc - Gantt scheduler → Scheduler DB access: loads resources
sources/extra/cpp-scheduler/Oar_sched_gantt_with_timesharing_and_fairsharing.cc - Gantt scheduler → Gantt allocation: checks allocations
sources/extra/cpp-scheduler/Oar_sched_gantt_with_timesharing_and_fairsharing.cc - Gantt scheduler → Resource tree: builds resource requests
- Gantt scheduler → Scheduler DB access: records schedule
- Scheduler DB access → Job and resource DB: queries scheduling data
sources/extra/cpp-scheduler/Oar_iolib.cc - Job runner → Node service: starts jobs
- Node service → Resource controls: controls node resources
- Status commands → Job and resource DB: reads status
- Monika interface → Job and resource DB: displays cluster state
- Gantt visualization → Job and resource DB: renders schedule
- Accounting → Job and resource DB: reads usage