Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaneb/heat-convergence-prototype
A Prototype for Heat's new "convergence" architecture
https://github.com/zaneb/heat-convergence-prototype
Last synced: 30 days ago
JSON representation
A Prototype for Heat's new "convergence" architecture
- Host: GitHub
- URL: https://github.com/zaneb/heat-convergence-prototype
- Owner: zaneb
- License: apache-2.0
- Created: 2014-10-22T13:14:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T20:41:19.000Z (about 6 years ago)
- Last Synced: 2024-08-01T20:46:13.770Z (3 months ago)
- Language: Python
- Size: 133 KB
- Stars: 5
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Heat Convergence Prototype
==========================This is a simple prototype to help prove the concepts behind the proposed new
"Convergence" architecture for OpenStack Heat.It uses a trivial in-memory datastore and an event loop within a single process
to simulate multiple processes with asynchronous message passing. Note that it
**cannot** simulate race conditions or other concurrency errors, since only one
event is ever processed at a time.Debugging
---------Run the code by typing `python -m converge`. Note that when run directly like
this, the test assertions in the scenarios are ignored (a warning is logged).
This mode is useful for debugging and becoming familiar with the code because
it displays all of the log messages that allow you to follow the execution.```
Usage: /usr/bin/python -m converge [options] SCENARIOSAn OpenStack Heat convergence algorithm simulator.
Options:
-h, --help show this help message and exit
-d DIR, --scenario-directory=DIR
Directory to read scenarios from
-p, --pdb Enable debugging with pdb
```To run a specific subset of the test scenarios, append their names to the
command line (e.g. `python -m converge basic_create`).To automatically set debugger breakpoints at the beginning of each asynchronous
task, pass the `--pdb` option on the command line.Verification
------------The unit tests can also be used to not only run the scenarios but verify the
correctness of the results. To do this, run:```
python -m unittest test_converge
```You can also use some other testrunners, including and maybe not even limited
to Nose:```
nosetests test_converge
```