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.0.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.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: greendirac-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e3a5c5c09def428eb68dd2db3ac7ad66b89ce66e38f864cfc93daaca839d9fc1
MD5 28d3bfefd58a5d9a69b234c46a63279d
BLAKE2b-256 26a7bc0864475a0b5471b89d008bb60908460195641cfdc036ba66cedfd5179d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: greendirac-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 219e68fb93e0c341c3696b9de1449026cc1e0d9784cf67f8a008e179d3502197
MD5 308a2aaa51b09e11b5094d8a3b347202
BLAKE2b-256 f20b5363546a6f18e8d199378bd845be307ab7955c368941a91371acba42a064

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