Replies: 2 comments 1 reply
-
This is a good improvement for usability. How long would this take to implement? On another note: is there a nicer way to display this in the docs, to serve it even better to users? Optimizing the docs on CLI commands for usability could be an viable fix for now. What do you think @aronchick & @seanmtracey ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I like this a LOT. I think @MichaelHoepler's question is the key one, how long? Questions:
Other than that, this is cool! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
At present there are different types of nodes, requester and compute. These types are best described as additive, where functionalities are combined, and commutative, where the order of combination does not change the outcome. Users select which type of node to run by passing a value to the
--node-type
flag. If the flag is not provided, its default value isrequester
.bacalhau serve --node-type=requester
/bacalhau serve
bacalhau serve --node-type=compute
bacalhau serve --node-type=requester,compute
/bacalhau serve --node-type=compute,requester
Problem
While Compute and Requester nodes share some configuration, they also have configuration unique to their respective types. This leads to the
serve
command have over 60 flags!! Some of the flags configure compute nodes, others requesters, while other apply to both. From the perspective of a user it's not easy to identify which flags go with which node types.Proposal
Introduce a
bacalhau serve compute
andbacalhau serve requester
command with the following criteriaserve
command. For example:--labels
--port
--host
--name
--name-provider
--tls-*
serve compute
command:--allow-listed-local-paths
--default-publisher/engine/storages
--local-publisher-*
--orchestrators
--max-job-execution-timeout
--min-job-execution-timeout
serve requester
command:--advertised-address
--job-negotiation-timeout
--network-port
serve
command.bacalhau serve compute
andbacalhau serve requester
commands.The result should look similar to:
Beta Was this translation helpful? Give feedback.
All reactions