-
Notifications
You must be signed in to change notification settings - Fork 15
iroh start command #166
Comments
How do we know whether to start iroh one or iroh cloud? Or do we go for just starting iroh one for now? |
I slightly prefer Related to this: in #175 we discussed implicitly starting the iroh services if we use other commands. I don't know whether it'd shut down after command completion or continue running in the background as a service for other commands to use. I think the latter may be rather too confusing, though. |
I'll note that iroh-one currently defines a bunch of options already to start it, and currently it errors out if you don't supply The other options are something to review in the near future. |
Great question. We've decided to skip trying to figure out what starting iroh cloud from a single command would be because deploying cloud is super involved and platform dependent. So start will only apply to iroh one for the foreseeable future.
See, I think you're right, and yet many folks in web3 will scream at us because "it's not a server! decentralize!". We'll have to leave some space to let others weigh in, but the distinction is silly imho, and I'd vote we go with
Let's not do that. One-off commands that don't have a server process to delegate to should release all resources upon completion. Yes, this might be slow. It'll be our job to make it fast in the long run.
We should pick a default store path, creating it automatically if it doesn't exist. Default path should be inside a |
I think |
both server and serve are too little in my opinion. It starts a p2p server, a gateway server and a database. Please let’s just stick with start and stop, any additional qualifiers are half truths we need to explain and can confusee users. |
nginx is even simpler, you just run nginx, no additional command, just options for configuration |
I bring up nginx as it is a much better example of software to take inspiration from when it comes to UX than kubo. |
We think we can do better in terms of UX.
Agree with this. Let's stick with |
My current understanding:
|
I'm wondering whether the decision to have the |
[copied from Discord] The more I think about it given the change in direction I think we should maintain If we make |
I get that we want
The last reason weighs most strongly on my mind as we have to get this right sooner rather than later. The other reasons do contribute to my worry though. |
Here's what
the best route I can see to make sure |
Please think about this from the perspective of a first time user. We've designed iroh so it can't do anything at all without a running daemon. How on earth could we not provide a first time user with a simple command to get them up & running? Asking users to learn things is a big ask. Asking users to learn about 2 things is a bigger ask. Our architectural choices mean the daemon & CLI are in separate binaries, but that's our problem, and it's our job to push learning about multiple binaries until they actually need it.
Not actively avoided. Anyone working with cloud is going to need to read the manual. Running a local node is a common pattern for talking to a remote node via the IPFS protocol. We will absolutely write guides where DevOps users deploy somewhere in the cloud, then run In the future we also want to allow hybridized configurations where some services are backed by remotes (for example: serve gateway & p2p with a local iroh node, but talk to a cloud-backed store). That setup will be defined in configuration and still work with iroh start.
Let's not code against a possible future we've explicitly decided against. Iroh requires a daemon process. Users need an easy way to start the daemon. They don't care about a command that might go away one day.
Let's do this. I don't think start should accept any flags, which is why I specified it should have none in the help text that opens this issue. Let's look at if this way: |
Ah, I hadn't realized that the idea that |
Command for starting a long-running iroh process that participates in an IPFS network.
This is analagous to
kubo daemon
.Differences from Kubo
Kubo has 17 flags on
kubo daemon
, none of which we plan to support in the v0.1.0 release.The text was updated successfully, but these errors were encountered: