Updates Deckhand to use alembic to manage database upgrades.
Moves from creating tables at startup of Deckhand to the
db-sync job.
Change-Id: I6f4cb237fadc46fbee81d1c33096f48a720f589f
Changes the entrypoint.sh options for uwsgi to include:
-b 32768 : for larger header/url handling
--die-on-term : for more 'normal' handling of SIGTERM
--lazy-apps : to delay init of python until after forking workers
--master : to provide a master process for handling request dispatch
The purpose of these changes is intended to avoid some crash behavior
that is occuring when the process being forked has an open db connection.
The --lazy-apps option should delay initialization. The other options are
recommended by uwsgi documentation, specicially the --master option.
The larger buffer size is not strictly recommended, but matters when large
headers are included.
The die-on-term option should provide better behavior in the container
environment.
Related-Change: I60adeffff5461fdda957124232bc5a606baae413
Change-Id: I70510246576a8fb6aa216e7c9c7e97c1c9ab791c
This sets multiple threads in Deckhand's chart config (4)
and set workers to just 1.
Deckhand's database is not configured to work with multiprocessing.
Currently there is a data race on acquiring shared SQLAlchemy
engine pooled connection strings when workers > 1. As a
workaround, we use multiple threads but only 1 worker. For more
information, see:
https://github.com/att-comdev/deckhand/issues/20
Change-Id: I60adeffff5461fdda957124232bc5a606baae413
This PS fixes Deckhand currently wrongly substituting the secret
reference Barbican returns into documents, rather than the secret
payload itself.
Closes #19
Change-Id: I1d4eed85ed336e83a777b4343f37b10c91038342
When testing Promenade integration, I found that it was taking more than
the default 60 second timeout to render documents.
Change-Id: Id0ee7ea30b901a60eb95df06a3d25ce4c8689a8a
We are seeing race conditions happening when both drydock and
armada try to retrieve rendered document from deckhand.
This p.s. is meant to prevent 'connection refused' kind of errors
from occuring in such situation.
Change-Id: I9ceca37a1d214fd1a4fe4719db829625289b8d95
1) Add Dockerfile
2) Add entrypoint.sh
3) Add uwsgi in requirements.txt and remove it from
tox.ini
Change-Id: Ie9086335b5e6403e5b1e46981db110894606b9d1