Skip to main content

GreenDIRAC is a DIRAC extension for the GreenDIGIT project

Project description

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: ...").

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greendirac-0.1.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greendirac-0.1.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file greendirac-0.1.1.tar.gz.

File metadata

  • Download URL: greendirac-0.1.1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for greendirac-0.1.1.tar.gz
Algorithm Hash digest
SHA256 214ef0163aa2764e83de98b41effee60fd627b1f9864ece76cd3c6f469ca7dfe
MD5 4e9b338233a9f76dbe034c3a59603b1a
BLAKE2b-256 ee46211523b323327d954cea8d0ded86376372d9233713a480f8615f808a4936

See more details on using hashes here.

File details

Details for the file greendirac-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: greendirac-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for greendirac-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ff7a4053bb20211e50473d64adea3ef6b3bc8eac523c1fc996e5ca78080114
MD5 3b57681a1f78439cf9d0684e4802e448
BLAKE2b-256 800f51308a64cf7189745d60cf3283124da621c4b16dadc6f1440c911b50d1a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page