doc: bitbake-user-manual: expand BB_HASHSERVE and document BB_HASHSERVE_UPSTREAM
PATCH v2 1/1 doc: bitbake-user-manual: expand BB_HASHSERVE and document BB_HASHSERVE_UPSTREAM
In reply to a message not in the archive--- .../bitbake-user-manual-ref-variables.rst | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +21 -2
@@ -374,12 +374,31 @@ overview of their function and contents. Specifies the Hash Equivalence server to use. If set to ``auto``, BitBake automatically starts its own server - over a UNIX domain socket. + over a UNIX domain socket. An option is to connect this server + to an upstream one, by setting :term:`BB_HASHSERVE_UPSTREAM`. - If set to ``host:port``, BitBake will use a remote server on the + If set to ``unix://path``, BitBake will connect to an existing a + hash server available over a UNIX domain socket. + + If set to ``host:port``, BitBake will connect to a remote server on the specified host. This allows multiple clients to share the same hash equivalence data. + This last kind of server can be started manually through + the ``bin/bitbake-hashserv`` script provided by BitBake, + which supports UNIX domain sockets too. + + :term:`BB_HASHSERVE_UPSTREAM` + Specifies an upstream Hash Equivalence server. + + This optional setting is only useful when a local Hash Equivalence + server is started (setting :term:`BB_HASHSERVE` to ``auto``), + and you wish the local server to query an upstream server for + Hash Equivalence data. + + Example usage:: + BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687" + :term:`BB_INVALIDCONF` Used in combination with the ``ConfigParsed`` event to trigger re-parsing the base metadata (i.e. all the recipes). The
Signature · 1 line
2.25.1
Review
Quoted 5 lines · Michael Opdenacker
If set to ``auto``, BitBake automatically starts its own server
(quoted diff) +2
-1- over a UNIX domain socket. + over a UNIX domain socket. An option is to connect this server + to an upstream one, by setting :term:`BB_HASHSERVE_UPSTREAM`.
This new iteration just adds a reference to BB_HASHSERVE_UPSTREAM when BB_HASHSERVE = "auto"
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Michael,
Quoted 10 lines · Michael Opdenacker
Signed-off-by Michael Opdenacker <[email protected]>---
.../bitbake-user-manual-ref-variables.rst| 23 +++++++++++++++++--1 file changed, 21 insertions(+), 2 deletions(-)doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0
-0
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 380
Quoted 9 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +3
-2@@ -374,12 +374,31 @@ overview of their function and contents. Specifies the Hash Equivalence server to use. If set to ``auto``, BitBake automatically starts its own server - over a UNIX domain socket. + over a UNIX domain socket. An option is to connect this server + to an upstream one, by setting :term:`BB_HASHSERVE_UPSTREAM`. - If set to ``host:port``, BitBake will use a remote server on the + If set to ``unix://path``, BitBake will connect to an existing a
s/a//
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 387
Quoted 7 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +4
-0+ hash server available over a UNIX domain socket. + + If set to ``host:port``, BitBake will connect to a remote server on the specified host. This allows multiple clients to share the same hash equivalence data. + This last kind of server can be started manually through
s/This last kind of server/The remote server/
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 399
Quoted 12 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +12
-0+ the ``bin/bitbake-hashserv`` script provided by BitBake, + which supports UNIX domain sockets too. + + :term:`BB_HASHSERVE_UPSTREAM` + Specifies an upstream Hash Equivalence server. + + This optional setting is only useful when a local Hash Equivalence + server is started (setting :term:`BB_HASHSERVE` to ``auto``), + and you wish the local server to query an upstream server for + Hash Equivalence data. + + Example usage::
Do we not need a newline after the ::?
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 401
Quoted 2 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +2
-0+ BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687" +
Is this the address of an actual hashserver? Is this supposed to be used? Is it able to handle many requests? Basically asking if we should have a real hashserver here?
Cheers,
Quentin
Hi Quentin,
Many thanks for the review!
Quoted 5 lines · Quentin Schulz
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 380
Quoted 4 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +1
-1- If set to ``host:port``, BitBake will use a remote server on the + If set to ``unix://path``, BitBake will connect to an existing as/a//
Fixed.
Quoted 5 lines
+ This last kind of server can be started manually through
s/This last kind of server/The remote server/
Much better, adopted!
Quoted 5 lines
(quoted diff) +2
-0+ + Example usage::Do we not need a newline after the ::?
Oops yes, otherwise the rendering is different.
Quoted 4 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 401
Quoted 3 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +2
-0+ BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687" +Is this the address of an actual hashserver? Is this supposed to be used? Is it able to handle many requests? Basically asking if we should have a real hashserver here?
Yes, that's the server proposed in Poky's meta-poky/conf/local.conf.sample file, though it is commented out by default.
We talked about that in a meeting, and if I recall correctly, we agreed to document its usage, but not turn it on by default. Effectively, if everyone starts using it at the same time, runs could become slower than if the corresponding artifacts were built locally.
There's a proper warning in my patch, anyway.
Don't hesitate to disagree, that's not too late!
Thanks again
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com