RFC Bitbake Hash Server WebSockets and Alternate Database Backend
Get series with b4
b4 am [email protected]Versions newest first
- v2 RFC Latest12 patches 0 repliesNew
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | asyncrpc: Abstract socketsbitbake/ bitbake/ bitbake/ +7 more | +378 | 0 replies | |
| 2/12 | hashserv: Add remove APIbitbake/ bitbake/ bitbake/ | +66 | 0 replies | |
| 3/12 | bitbake-hashclient: Add remove subcommandbitbake/ | +13 | 0 replies | |
| 4/12 | hashserv: Add websocket connection implementationbitbake/ bitbake/ bitbake/ +3 more | +137 | 0 replies | |
| 5/12 | asyncrpc: Add context manager APIbitbake/ bitbake/ bitbake/ | +33 | 0 replies | |
| 6/12 | hashserv: tests: Add external database testsbitbake/ | +44 | 0 replies | |
| 7/12 | asyncrpc: Prefix log messages with client infobitbake/ bitbake/ | +22 | 0 replies | |
| 8/12 | bitbake-hashserv: Allow arguments from environmentbitbake/ | +55 | 0 replies | |
| 9/12 | hashserv: Abstract databasebitbake/ bitbake/ bitbake/ | +405 | 0 replies | |
| 10/12 | hashserv: Add SQLalchemy backendbitbake/ bitbake/ bitbake/ +2 more | +326 | 0 replies | |
| 11/12 | contrib: Update hashserv Dockerfilebitbake/ bitbake/ | +29 | 0 replies | |
| 12/12 | contrib: hashserv: Add docker-composebitbake/ bitbake/ | +47 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [bitbake-devel][RFC v2 00/12] Bitbake Hash Server WebSockets and Alternate Database Backend
This patch series reworks the bitbake asyncrpc API to add a WebSockets implementation for both the client and server. The hash equivalence server is updated to allow using this new API (the PR server can also be updated in the future if desired).
In addition, the database backed for the hash equivalence server is abstracted so that sqlalchemy can optionally be used instead of sqlite. This allows using "big metal" databases as the backend, which allows the hash equivalence server to scale to a large number of queries.
Note that both websockets and sqlalchemy require 3rd party python modules to function. However, these modules are optional unless the user desires to use the APIs.
Joshua Watt (12):
asyncrpc: Abstract sockets
hashserv: Add remove API
bitbake-hashclient: Add remove subcommand
hashserv: Add websocket connection implementation
asyncrpc: Add context manager API
hashserv: tests: Add external database tests
asyncrpc: Prefix log messages with client info
bitbake-hashserv: Allow arguments from environment
hashserv: Abstract database
hashserv: Add SQLalchemy backend
contrib: Update hashserv Dockerfile
contrib: hashserv: Add docker-compose
bitbake/bin/bitbake-hashclient | 49 +- bitbake/bin/bitbake-hashserv | 87 ++- bitbake/contrib/hashserv/Dockerfile | 33 +- bitbake/contrib/hashserv/docker-compose | 11 + bitbake/contrib/hashserv/docker-compose.yaml | 36 ++ bitbake/contrib/hashserv/requirements.txt | 5 + bitbake/lib/bb/asyncrpc/__init__.py | 32 +- bitbake/lib/bb/asyncrpc/client.py | 100 ++-- bitbake/lib/bb/asyncrpc/connection.py | 146 ++++++ bitbake/lib/bb/asyncrpc/exceptions.py | 17 + bitbake/lib/bb/asyncrpc/serv.py | 349 +++++++----- bitbake/lib/hashserv/__init__.py | 137 ++--- bitbake/lib/hashserv/client.py | 40 +- bitbake/lib/hashserv/server.py | 525 +++++++------------ bitbake/lib/hashserv/sqlalchemy.py | 268 ++++++++++ bitbake/lib/hashserv/sqlite.py | 229 ++++++++ bitbake/lib/hashserv/tests.py | 123 ++++- bitbake/lib/prserv/client.py | 8 +- bitbake/lib/prserv/serv.py | 37 +- 19 files changed, 1495 insertions(+), 737 deletions(-) create mode 100755 bitbake/contrib/hashserv/docker-compose create mode 100644 bitbake/contrib/hashserv/docker-compose.yaml create mode 100644 bitbake/contrib/hashserv/requirements.txt create mode 100644 bitbake/lib/bb/asyncrpc/connection.py create mode 100644 bitbake/lib/bb/asyncrpc/exceptions.py create mode 100644 bitbake/lib/hashserv/sqlalchemy.py create mode 100644 bitbake/lib/hashserv/sqlite.py
Signature · 1 line
2.34.1