Skip to main content

GreenDIRAC

GreenDIRAC is a DIRAC extension built for the GreenDIGIT Project. It enriches DIRAC workload management with sustainability data—power usage effectiveness (PUE) and carbon intensity (CI)—so scheduling and reporting tools can account for the environmental cost of running jobs.

What GreenDIRAC adds

  • Registers itself as a DIRAC extension so the agents and configuration entries are available alongside standard DIRAC deployments.
  • Uses the collected metrics to prefer greener queues when dispatching jobs and to record energy/emissions for completed workloads.

Core agents

  • Green-aware Site Director – augments queue information with PUE, CI and then computes a green score that ranks queues from greenest to least green before scheduling.
  • GreenReportingAgent – collects finished job records, queries CIM/CI services for sustainability data, computes energy/emissions figures, and persists the metrics to DIRAC databases and ElasticSearch when enabled.

Local CIM configuration

CIMClient reads credentials and API endpoints from: src/GreenDIRAC/WorkloadManagementSystem/Client/cim.conf

Required sections and keys:

  • [CIM]: EMAIL, PASSWORD, API_BASE, METRICS_URL
  • [KPI]: API_BASE
  • [Defaults]: PUE, CI, ENERGY_WH
  • [Runtime]: TOKEN_MAX_AGE_H, CACHE_TTL, TOKEN_TIMEOUT_S, PUE_TIMEOUT_S, CI_TIMEOUT_S, SUBMIT_TIMEOUT_S

If cim.conf is missing, CIMClient fails at startup with RuntimeError("CIMClient config file not found: ...").

Metadata

Release files for greendirac 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for greendirac 0.1.1
File Size Uploaded
greendirac-0.1.1.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for greendirac 0.1.1
File Interpreter ABI Platform
greendirac-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / greendirac-0.1.1.tar.gz

Download URL greendirac-0.1.1.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
214ef0163aa2764e83de98b41effee60fd627b1f9864ece76cd3c6f469ca7dfe
BLAKE2b-256 checksum
How to use checksums
ee46211523b323327d954cea8d0ded86376372d9233713a480f8615f808a4936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / greendirac-0.1.1-py3-none-any.whl

Download URL greendirac-0.1.1-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3ff7a4053bb20211e50473d64adea3ef6b3bc8eac523c1fc996e5ca78080114
BLAKE2b-256 checksum
How to use checksums
800f51308a64cf7189745d60cf3283124da621c4b16dadc6f1440c911b50d1a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page