Skip to main content

Simulator for modeling energy consumption in cloud, fog, and edge computing environments

Project description

LEAF PyPI version Supported versions License

LEAF is a simulator for Large Energy-Aware Fog computing environments. It enables then modeling of complex application graphs in distributed, heterogeneous, and resource-constrained infrastructures. A special emphasis was put on the modeling of energy consumption (and soon carbon emissions).

Please visit the official documentation for more information and examples on this project.

This Python implementation was ported from the original Java protoype. All future development will take place in this repository.


You can use LEAF either by directly cloning this repository or installing the latest release via pip:

$ pip install leafsim

What can I do with it?

LEAF enables a high-level modeling of cloud, fog and edge computing environments. It builds on top of networkx, a library for creating and manipulating complex networks, and SimPy, a process-based discrete-event simulation framework.

Besides allowing research on scheduling and placement algorithms on resource-constrained environments, LEAF puts a special focus on:

  • Dynamic networks: Simulate mobile nodes which can join or leave the network during the simulation.
  • Power consumption modeling: Model the power usage of individual compute nodes, network traffic and applications.
  • Energy-aware algorithms: Implement dynamically adapting task placement strategies, routing policies, and other energy-saving mechanisms.
  • Scalability: Model the execution of thousands of compute nodes and applications in magnitudes faster than real time.

Please visit the official documentation for more information and examples on this project.


The paper behind LEAF is accepted for publication:

Project details

Download files

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

Files for leafsim, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size leafsim-0.1.3.tar.gz (1.0 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page