https://github.com/steveb/tenkspoons
Single threaded fake workload generator for the Ironic Bare Metal service.
https://github.com/steveb/tenkspoons
Last synced: about 1 year ago
JSON representation
Single threaded fake workload generator for the Ironic Bare Metal service.
- Host: GitHub
- URL: https://github.com/steveb/tenkspoons
- Owner: steveb
- License: apache-2.0
- Created: 2022-10-19T03:25:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T04:31:35.000Z (over 3 years ago)
- Last Synced: 2025-04-03T05:27:16.738Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TenKSpoons
==========
Single threaded fake workload generator for the Ironic Bare Metal service.
This tool repeatedly creates and deploys a fake node, toggles the power state,
then undeploys and deletes. Metrics are exposed on port 8000 which can be viewed
in a browser and consumed by Prometheus.
Environment Variables
---------------------
- OS_CLOUD: valid key for openstacksdk clouds.yaml for a cloud containing a
baremetal endpoint
- TENKSPOONS_NAME: base name of created nodes, defaults to `tenkspoons`
- TENKSPOONS_SUFFIX_LENGTH: length of random suffix to add to end of node name,
defaults to `5`. If set to `0` and node `TENKSPOONS_NAME` already exists then
actions will be performed on that node (apart from create and delete).
Running as a script
-------------------
Create a virtualenv and run the following:
```
pip install -r requirements.txt
export OS_CLOUD=mycloud
./tenkspoons
# Ctrl-c to exit, view metrics at http://localhost:8000/
```
Build a container
-----------------
```
buildah bud -t quay.io/steveb/tenkspoons:main-latest .
```
Running locally as a container
------------------------------
Container builds are up to date with the main branch
```
podman run --net=host -ti --rm --env OS_CLOUD=tenkspoons --volume ~/.config/openstack:/etc/openstack quay.io/steveb/tenkspoons:main-latest
# Ctrl-c to exit, view metrics at http://localhost:8000/
```