-
Notifications
You must be signed in to change notification settings - Fork 75
Add universal configuration for a custom private testnet #441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1da1af6
to
e5a64d5
Compare
Note: this should be merged after #442 and include the following settings:
|
7b53ca6
to
b1fb023
Compare
def parseNode(id_host_port: String): AtomixNode = { | ||
val parts = id_host_port.split(":") | ||
log.info(s"atomix-raft: id_host_port = ${id_host_port} => parts = ${parts.toList}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: not sure if it's the best place for such logging, as a reader might expect this to be a pure function and want to use it in different context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahha... this is just a transient commit I needed for quickly testing the cluster, so this logging is going to go away. But we are still in do-no-merge
mode ;)
@@ -45,8 +45,10 @@ object AtomixRaftConfig extends Logger { | |||
case _ ⇒ throw new IllegalArgumentException("parts.length != 1, 2, 3") | |||
} | |||
|
|||
//noinspection ScalaStyle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, too fast
discovery { | ||
# Listening interface for discovery protocol | ||
interface = ${mantis.network.server-address.interface} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should disable discovery and override bootstrap nodes
interface = ${mantis.network.server-address.interface} | ||
|
||
# Domains allowed to query RPC endpoint. Use "*" to enable requests from any domain. | ||
cors-allowed-origins = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should set this to "*"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I changed this to match exactly what we do now in the testnet, which is actually the primary motivation for this PR.
1fa91fe
to
893fe02
Compare
network { | ||
discovery { | ||
# Turn discovery of/off | ||
# discovery-enabled = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, don't we want that disabled?
893fe02
to
43da580
Compare
43da580
to
cfd8a6f
Compare
# Set of initial nodes | ||
bootstrap-nodes = [ | ||
"enode://18a551bee469c2e02de660ab01dede06503c986f6b8520cb5a65ad122df88b17b285e3fef09a40a0d44f99e014f8616cf1ebc2e094f96c6e09e2f390f5d34857@127.0.0.1:30303", | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, as it will have to be modified anyway, but wouldn't we prefer empty list or even:
bootstrap-nodes = [
# fill in with node URIs for the private network, e.g.:
# "enode://18a551bee469c2e02de660ab01dede06503c986f6b8520cb5a65ad122df88b17b285e3fef09a40a0d44f99e014f8616cf1ebc2e094f96c6e09e2f390f5d34857@127.0.0.1:30303"
]
No description provided.