-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
service: --random-ports flag for init #794
Comments
I am working on something like IPTB for IPFS Cluster. Is that what we are looking for here? |
@vasa do you mean a plugin for IPTB? I have had that on my list for
quite some time and just haven't had the time.
…On Sun, 26 May 2019, 08:47 vasa, ***@***.***> wrote:
I am working on something like IPTB <https://github.com/ipfs/iptb> for
IPFS Cluster. Is that what we are looking for here?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#794>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNGO2CMPI7THEEIPAMYVMDPXG6WHANCNFSM4HPPRZ7A>
.
|
I don't think that it will be a plugin. Let's call it How will it work?
NOTE: As cluster peers are not of much use until we have libp2p(IPFS) peers connected to each instance, should we initialize libp2p peers too(within this command)? So, this will initialize a number of Libp2p peers on separate ports and these peers will be mapped with the initialized cluster peers.
For eg.
These are some ideas. Is this what we are looking for @NatoBoram @lanzafame ? |
@vasa you should be able to do that by writing a IPTB plugin is what I
meant. Check out the IPTB plugin in the
github.com/filecoin-project/go-filecoin repo for an example
…On Sun, 26 May 2019, 18:53 vasa, ***@***.***> wrote:
I don't think that it will be a plugin. Let's call it IPCTB just for that
sake of the conversation.
It's a CLI which uses IPTB code for managing Libp2p peers.
*How will it work?*
- Initialize n number of cluster peers.
ipctb init --count n
*NOTE:* As cluster peers are not of much use until we have libp2p(IPFS)
peers connected to each instance, should we initialize libp2p peers
too(within this command)? So, this will initialize a number of Libp2p peers
on separate ports and these peers will be mapped with the initialized
cluster peers.
- Start the initialized cluster peers
ipctb start
- Connect CLI to a nth cluster peer (assume n = 0)
ipctb shell 0
Now you can execute commands as if you were using IPFS Cluster CLI. Just
replace ipfs-cluster-crl with ipctb
For eg.
- Get peer Id
ipctb id
These are some ideas. Is this what we are looking for @NatoBoram
<https://github.com/NatoBoram> @lanzafame <https://github.com/lanzafame> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#794>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNGO2BAHMX2P32G4QEFPVDPXJFXRANCNFSM4HPPRZ7A>
.
|
Oh! That's cool. |
go-ipfs recently got a similar feature: https://github.com/ipfs/go-ipfs/blob/master/CHANGELOG.md#-initializing-with-random-ports |
Let's scope this convo: I have created an issue for the IPTB side: #817 This issue is about having an |
I would rather like to have a shell script for this than put it in main cluster code, since this is clearly another layer on cluster. |
Please investigate how IPFS does it and report back. It's functionality that is handy. |
The PR used in IPFS ipfs/go-ipfs-config#17 (easy) In case of IPFS, they are supporting random ports to stay uncensored (ipfs/kubo#5176 (comment)). If cluster could face such problem of port-banning by government (with collaborative cluster usecase mostly yes), it makes sense to support it. But if it is just about testing you want more than just supporting random ports. Say you want to run a 10 node cluster, you want to automate those 10 |
Describe the feature you are proposing
init
flag to generate a configuration using random portsdaemon
flag to use random portsAdditional context
In order to join multiple clusters, we have to start multiple instances of IPFS-Cluster and change the ports of each instances. It'd be nice to have something easy to set up secondary nodes with random ports.
If it's possible to use
/tcp/0
to get a random port on each startups, then I think there should have aninit
flag to set it up automatically once.The text was updated successfully, but these errors were encountered: