Skip to content

electricitymaps/carbon-aware-scheduler

Repository files navigation

carbon-aware-scheduler

A cloud carbon aware scheduler using the carbon aware sdk

Initial infrastructure setup

First export the following environment variables:

export TF_VAR_region=<your gcp region>
export TF_VAR_project_id=<your gcp project id>

Then run the following commands:

terraform init
terraform plan
terraform apply

Running the scheduler

First export the following environment variables:

export CARBON_AWARE_TASK_BUCKET=<your gcp bucket>
export CARBON_AWARE_PUBSUB_SUBSCRIPTION=<your gcp pubsub subscription>
export GCP_PROJECT_ID=<your gcp project id>

Building and deploying

We wrote a simple dockerfile to build the image and an earthfile to push it to the registry.

earthly --platform=linux/amd64 --push +build --REGISTRY_REPOSITORY=<your gcp registry repository>

About

A cloud carbon aware scheduler using the carbon aware sdk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages