Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added power sources to OpenDC #258

Merged

Conversation

DanteNiewenhuis
Copy link
Contributor

Summary

This PR introduces the first implementation of Power sources into OpenDC.

Each Cluster has a single Power Source that provides the energy to all hosts in the cluster.

Power Source metrics are exported to a new "powerSource.parquet" file that is similar to "host.parquet"

In the current version, carbon emission is not yet working for power sources.

Implementation Notes ⚒️

This PR introduces several new files to support Power Sources:

  • SimPowerSource contains the logic of the power source, HostsProvisioningStep now creates all clusters, their power source, and the Hosts.

  • The topology file is extended with the ability to add power sources. However, in the current version Power Sources have unlimited power.

  • For exporting power source information, several files had to be added. PowerSourceTableReader, and PowerSourceTableReaderImpl are used to create export information. All other files related to exporting are updated to support power sources.

External Dependencies 🍀

N / A

Breaking API Changes ⚠️

A topology is now a list of Clusters, and not a list of Hosts

In the current form each Cluster has a single power source that is connected to all hosts in that cluster
In the current form each Cluster has a single power source that is connected to all hosts in that cluster
@DanteNiewenhuis DanteNiewenhuis merged commit 7511fb7 into atlarge-research:master Oct 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants