Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/
Expand Down Expand Up @@ -128,7 +125,7 @@ venv.bak/
.ropeproject

# mkdocs documentation
/site
_site/

# mypy
.mypy_cache/
Expand All @@ -151,6 +148,9 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/

# Documentation
docs/_build/

# VSCode
.vscode/

Expand All @@ -159,7 +159,6 @@ cython_debug/

# personal
*.DS_Store
docs/source/api/reference/*

# graphify
.graphifyignore
Expand Down
13 changes: 4 additions & 9 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ build:
jobs:
build:
html:
- >-
uv run --no-sync --no-dev
make -C docs html
BUILDDIR="$READTHEDOCS_OUTPUT"
O="-T --keep-going -D language=en"
- uv run --no-sync --no-dev zensical build --strict
post_build:
- mkdir -p "$READTHEDOCS_OUTPUT/html/"
- cp -r _site/. "$READTHEDOCS_OUTPUT/html/"

python:
install:
- method: uv
command: sync
groups:
- docs

sphinx:
configuration: docs/conf.py
fail_on_warning: true
11 changes: 8 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,23 @@ uv run pytest tests/unit/simulation/test_config.py

## Documentation

The documentation is built with Sphinx, treating warnings as errors:
The documentation is built with [Zensical](https://zensical.org/) in strict mode, so warnings such as broken links fail the build:

```bash
make docs
```

The pages are written to `docs/_build/html`. To find classes missing from the documentation, run:
The pages are written to `_site/`. Pages live in `docs/` as Markdown, and the API reference is generated from the docstrings, which use Google style with Markdown. To preview with live reload on port 8000, run:

```bash
uv run --group docs make -C docs coverage
make docs-serve
```

The API pages and navigation are generated automatically by `api-autonav` and
`mkdocstrings` from the Python modules and Google-style docstrings. Edit the
docstrings to update the reference; no generated reference pages are committed.
The Changelog page includes the root `CHANGELOG.md` directly at build time.

## Pre-commit Hooks

The configured pre-commit hooks check formatting, linting, types, and basic file hygiene:
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ patch:
uv run cz bump --increment patch

docs:
uv run --group docs $(MAKE) -C docs html
uv run --group docs zensical build --strict

docs-serve:
uv run --group docs zensical serve

verify:
uvx twine check --strict dist/*
Expand All @@ -24,4 +27,4 @@ build:
publish: build verify
uv publish -v

.PHONY: setup check bump patch docs verify build publish
.PHONY: setup check bump patch docs docs-serve verify build publish
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ ECLYPSE is designed for researchers and developers evaluating placement strategi

## Key features

- **Build scenarios:** represent infrastructures and applications as resource-aware graphs, starting from [built-in builders](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/builders.html) or custom topologies.
- **Control placement:** use built-in or custom [placement strategies](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/placement-strategy.html) to map services onto infrastructure nodes.
- **Model change:** define [update policies](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/update-policy.html) and [events](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/events.html) for evolving resources, failures, workloads, and topology.
- **Inspect results:** collect built-in or custom metrics and query [reports](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/inspect-results.html) as dataframes.
- **Run implemented services:** move from abstract scenarios to [remote emulation](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/remote-emulation.html).
- **Build scenarios:** represent infrastructures and applications as resource-aware graphs, starting from [built-in builders](https://eclypse.readthedocs.io/en/latest/overview/concepts/builders/) or custom topologies.
- **Control placement:** use built-in or custom [placement strategies](https://eclypse.readthedocs.io/en/latest/overview/concepts/placement-strategy/) to map services onto infrastructure nodes.
- **Model change:** define [update policies](https://eclypse.readthedocs.io/en/latest/overview/concepts/update-policy/) and [events](https://eclypse.readthedocs.io/en/latest/overview/concepts/events/) for evolving resources, failures, workloads, and topology.
- **Inspect results:** collect built-in or custom metrics and query [reports](https://eclypse.readthedocs.io/en/latest/overview/getting-started/inspect-results/) as dataframes.
- **Run implemented services:** move from abstract scenarios to [remote emulation](https://eclypse.readthedocs.io/en/latest/overview/getting-started/remote-emulation/).

## Simulation and emulation

**Local simulation** models services as application graph nodes, without requiring service implementations. Use it to study placement, resource evolution, and deployment behaviour.

**Remote emulation** executes implemented services through Ray, with MPI-style message passing or REST-style communication. It requires Ray, remote-capable services, and remote execution configuration. See the [emulation guide](https://eclypse.readthedocs.io/en/latest/source/overview/advanced/emulation/index.html) for setup and communication details.
**Remote emulation** executes implemented services through Ray, with MPI-style message passing or REST-style communication. It requires Ray, remote-capable services, and remote execution configuration. See the [emulation guide](https://eclypse.readthedocs.io/en/latest/overview/advanced/emulation/) for setup and communication details.

## Installation

Expand All @@ -42,7 +42,7 @@ Or add it to a uv project:
uv add eclypse
```

See the [installation guide](https://eclypse.readthedocs.io/en/latest/source/overview/install.html) for environment setup. The quickstart uses only the base package; remote emulation and other optional features may need additional dependencies.
See the [installation guide](https://eclypse.readthedocs.io/en/latest/overview/install/) for environment setup. The quickstart uses only the base package; remote emulation and other optional features may need additional dependencies.

## Quickstart

Expand Down Expand Up @@ -106,24 +106,24 @@ Service report empty: False

The application dataframe preview follows. `RandomStrategy` is a baseline, not a guarantee of feasible placement: this scenario can log `Path not found` and `Resetting placement` warnings. Non-empty reports confirm metric collection, not successful deployment; inspect the metric values when comparing strategies. Reports are written under `~/quickstart-results` in your home directory; if that directory already exists, ECLYPSE chooses a timestamped path instead. The default report backend returns pandas dataframes.

To adapt this experiment, replace `RandomStrategy` with your placement strategy, change the infrastructure builder, or add update policies. Continue with [running a local simulation](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/minimal-local-run.html) and [inspecting results](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/inspect-results.html).
To adapt this experiment, replace `RandomStrategy` with your placement strategy, change the infrastructure builder, or add update policies. Continue with [running a local simulation](https://eclypse.readthedocs.io/en/latest/overview/getting-started/minimal-local-run/) and [inspecting results](https://eclypse.readthedocs.io/en/latest/overview/getting-started/inspect-results/).

## Examples

Follow these examples in order, or choose the scenario closest to your experiment:

- [Off-the-shelf](https://eclypse.readthedocs.io/en/latest/source/overview/examples/off_the_shelf.html): compose a local simulation from built-in builders, policies, and placement logic.
- [User distribution](https://eclypse.readthedocs.io/en/latest/source/overview/examples/user_distribution.html): add a custom metric and update policy driven by changing user distributions.
- [Grid analysis](https://eclypse.readthedocs.io/en/latest/source/overview/examples/grid_analysis.html): compare topologies, policies, and strategies with a Ray Tune sweep.
- [Sock Shop](https://eclypse.readthedocs.io/en/latest/source/overview/examples/sock_shop.html): explore a microservices application with MPI and REST variants.
- [Off-the-shelf](https://eclypse.readthedocs.io/en/latest/overview/examples/off_the_shelf/): compose a local simulation from built-in builders, policies, and placement logic.
- [User distribution](https://eclypse.readthedocs.io/en/latest/overview/examples/user_distribution/): add a custom metric and update policy driven by changing user distributions.
- [Grid analysis](https://eclypse.readthedocs.io/en/latest/overview/examples/grid_analysis/): compare topologies, policies, and strategies with a Ray Tune sweep.
- [Sock Shop](https://eclypse.readthedocs.io/en/latest/overview/examples/sock_shop/): explore a microservices application with MPI and REST variants.

Runnable source is available in [`examples/`](examples/). Individual examples may need additional dependencies or remote setup; check their guides before running them.

## Documentation

- [Getting started](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/index.html): installation, first run, results, and remote emulation.
- [Core concepts](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/index.html): topology, assets, builders, placement, policies, and events.
- [API reference](https://eclypse.readthedocs.io/en/latest/source/api/index.html): public modules and interfaces.
- [Getting started](https://eclypse.readthedocs.io/en/latest/overview/getting-started/): installation, first run, results, and remote emulation.
- [Core concepts](https://eclypse.readthedocs.io/en/latest/overview/concepts/): topology, assets, builders, placement, policies, and events.
- [API reference](https://eclypse.readthedocs.io/en/latest/reference/eclypse/): public modules and interfaces.
- [Changelog](CHANGELOG.md): release history.

## Contributing
Expand Down
27 changes: 0 additions & 27 deletions docs/Makefile

This file was deleted.

Loading
Loading