poky/bitbake/lib
Joshua Watt 20f032338f bitbake: bitbake: Rework hash equivalence
Reworks the hash equivalence server to address performance issues that
were encountered with the REST mechanism used previously, particularly
during the heavy request load encountered during signature generation.
Notable changes are:

1) The server protocol is no longer HTTP based. Instead, it uses a
   simpler JSON over a streaming protocol link. This protocol has much
   lower overhead than HTTP since it eliminates the HTTP headers.
2) The hash equivalence server can either bind to a TCP port, or a Unix
   domain socket. Unix domain sockets are more efficient for local
   communication, and so are preferred if the user enables hash
   equivalence only for the local build. The arguments to the
   'bitbake-hashserve' command have been updated accordingly.
3) The value to which BB_HASHSERVE should be set to enable a local hash
   equivalence server is changed to "auto" instead of "localhost:0". The
   latter didn't make sense when the local server was using a Unix
   domain socket.
4) Clients are expected to keep a persistent connection to the server
   instead of creating a new connection each time a request is made for
   optimal performance.
5) Most of the client logic has been moved to the hashserve module in
   bitbake. This makes it easier to share the client code.
6) A new bitbake command has been added called 'bitbake-hashclient'.
   This command can be used to query a hash equivalence server, including
   fetching the statistics and running a performance stress test.
7) The table indexes in the SQLite database have been updated to
   optimize hash lookups. This change is backward compatible, as the
   database will delete the old indexes first if they exist.
8) The server has been reworked to use python async to maximize
   performance with persistently connected clients. This requires Python
   3.5 or later.

(Bitbake rev: 2124eec3a5830afe8e07ffb6f2a0df6a417ac973)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-18 17:52:01 +01:00
..
bb bitbake: bitbake: Rework hash equivalence 2019-09-18 17:52:01 +01:00
bblayers bitbake: bitbake: Add initial pass of SPDX license headers to source code 2019-05-04 10:44:04 +01:00
bs4 bitbake: bitbake: Fix Deprecated warnings from regexs 2019-01-16 15:35:07 +00:00
hashserv bitbake: bitbake: Rework hash equivalence 2019-09-18 17:52:01 +01:00
layerindexlib bitbake: layerindexlib: Fix parsing of recursive layer dependencies 2019-08-13 09:38:26 +01:00
ply bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
progressbar bitbake: bitbake: Add initial pass of SPDX license headers to source code 2019-05-04 10:44:04 +01:00
prserv bitbake: prserv: Use a memory journal 2019-08-06 11:21:31 +01:00
simplediff bitbake: lib/bb/siggen: show word-diff for single-line values containing spaces 2017-04-10 23:00:32 +01:00
toaster bitbake: toaster: Sync list of fs_types with oe-core 2019-07-27 22:46:08 +01:00
codegen.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
pyinotify.py bitbake: bitbake: lib: Cleanup /usr/bin/env python 2019-06-28 13:29:04 +01:00