nodepool/tools/fake.yaml
James E. Blair a5a78ef441 Use a sensible SQLAlchemy session model
The existing db session strategy was inherited from a bunch of
shell scripts that ran once in a single thread and exited.

The surprising thing is that even worked at all.  This change
replaces that "strategy" with one where each thread clearly
begins a new session as a context manager and passes that around
to functions that need the DB.  A thread-local session is used
for convenience and extra safety.

This also adds a fake provider that will produce fake images and
servers quickly without needing a real nova or jenkins.  This was
used to develop the database change.

Also some minor logging changes and very brief developer docs.

Change-Id: I45e6564cb061f81d79c47a31e17f5d85cd1d9306
2013-08-16 20:21:33 -07:00

35 lines
679 B
YAML

script-dir: .
dburi: 'mysql://nodepool@localhost/nodepool'
cron:
cleanup: '*/1 * * * *'
update-image: '14 2 * * *'
zmq-publishers:
- tcp://localhost:8888
providers:
- name: fake-provider
username: 'fake'
password: 'fake'
auth-url: 'fake'
project-id: 'fake'
max-servers: 96
images:
- name: nodepool-fake
base-image: 'Fake Precise'
min-ram: 8192
setup: prepare_node_devstack.sh
targets:
- name: fake-jenkins
jenkins:
url: https://jenkins.example.org/
user: fake
apikey: fake
images:
- name: nodepool-fake
providers:
- name: fake-provider
min-ready: 6