-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(distributed_sp1): first working version of sp1 distributed prover #302
base: main
Are you sure you want to change the base?
Changes from 1 commit
d8738fd
d890b6a
76813bb
dcd6bc5
09fb775
e258346
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -35,6 +35,21 @@ pub struct Opts { | |||||||
/// [default: 0.0.0.0:8080] | ||||||||
address: String, | ||||||||
|
||||||||
#[arg(long, require_equals = true, default_value = "0.0.0.0:8081")] | ||||||||
#[serde(default = "Opts::default_sp1_worker_address")] | ||||||||
/// Distributed SP1 worker listening address | ||||||||
/// [default: 0.0.0.0:8081] | ||||||||
sp1_worker_address: String, | ||||||||
|
||||||||
#[arg(long, default_value = None)] | ||||||||
Champii marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
/// Distributed SP1 worker orchestrator address | ||||||||
/// | ||||||||
/// Setting this will enable the worker and restrict it to only accept requests from | ||||||||
/// this orchestrator | ||||||||
/// | ||||||||
/// [default: None] | ||||||||
sp1_orchestrator_address: Option<String>, | ||||||||
|
||||||||
#[arg(long, require_equals = true, default_value = "16")] | ||||||||
#[serde(default = "Opts::default_concurrency_limit")] | ||||||||
/// Limit the max number of in-flight requests | ||||||||
|
@@ -88,6 +103,10 @@ impl Opts { | |||||||
"0.0.0.0:8080".to_string() | ||||||||
} | ||||||||
|
||||||||
fn default_sp1_worker_address() -> String { | ||||||||
"0.0.0.0:8081".to_string() | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
AFAIK in some cases 0.0.0.0 is/was use for broadcasting so I think it should be clarified it's a placeholder until we have a valid address. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is the listening address of the worker socket, I always saw this format to indicate to listen on every interfaces. I'll do some more research but that's a sensible default in my opinion. |
||||||||
} | ||||||||
|
||||||||
fn default_concurrency_limit() -> usize { | ||||||||
16 | ||||||||
} | ||||||||
|
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.
this should be added to the taikoxyz org, or maybe a taikoxyz-patches special org to avoid pollution if across Raiko and Gwyneth we expect lots of long-term patches. cc @Brechtpd
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 agree. Could anybody fork
Plonky3
so that I can make a PR for that too ? :)