Skip to content
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

[v2] Disperser API Server Entrypoint #785

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

ian-shim
Copy link
Contributor

@ian-shim ian-shim commented Oct 5, 2024

Why are these changes needed?

Scaffolding v2 dispersal server

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim
Copy link
Contributor Author

ian-shim commented Oct 5, 2024

To be merged on top of #784

@ian-shim ian-shim marked this pull request as ready for review October 8, 2024 18:55
@ian-shim ian-shim changed the title [v2] Blank Disperser API Server [v2] Disperser API Server Entrypoint Oct 8, 2024
return errors.New("could not start tcp listener")
}

opt := grpc.MaxRecvMsgSize(1024 * 1024 * 300) // 300 MiB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it probably should be. Maybe this should be maxBlobSize + some buffer. @mooselumph @bxue-l2 wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave it the same as current disperser for now. I don't think there is a big risk here - we can revisit this later

Comment on lines +66 to +72
DisperserVersionFlag = cli.UintFlag{
Name: common.PrefixFlag(FlagPrefix, "disperser-version"),
Usage: "Disperser version. Options are 1 and 2.",
Required: false,
Value: 1,
EnvVar: common.PrefixEnvVar(envVarPrefix, "DISPERSER_VERSION"),
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a discussion about configuration, I've got a proposal on how we might do it with less boilerplate like this.

@ian-shim ian-shim merged commit 2dcd573 into Layr-Labs:master Oct 16, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants