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

update default values for epoch, staking and DKG length #1063

Merged
merged 2 commits into from
Aug 4, 2021

Conversation

kc1116
Copy link
Contributor

@kc1116 kc1116 commented Jul 30, 2021

epoch length - 10000
staking length - 2000
DKG length - 2000

@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2021

Codecov Report

Merging #1063 (149b7b6) into master (95c99c0) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1063      +/-   ##
==========================================
+ Coverage   53.34%   53.36%   +0.01%     
==========================================
  Files         318      318              
  Lines       21556    21556              
==========================================
+ Hits        11500    11504       +4     
+ Misses       8484     8479       -5     
- Partials     1572     1573       +1     
Flag Coverage Δ
unittests 53.36% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/util/ledger/migrations/storage_v4.go 41.56% <0.00%> (-0.61%) ⬇️
engine/common/synchronization/engine.go 64.01% <0.00%> (ø)
...sus/approvals/assignment_collector_statemachine.go 51.92% <0.00%> (+4.80%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95c99c0...149b7b6. Read the comment docs.

@simonhf
Copy link
Contributor

simonhf commented Jul 30, 2021

Just linking this issue to this sibling issue here: https://github.com/dapperlabs/flow-go/issues/5709

Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

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

I've seen @jordanschalm mention non-zero defaults here.
I notice the default setup here:

finalizeCmd.Flags().Uint64Var(&flagNumViewsInEpoch, "epoch-length", 4000, "length of each epoch measured in views")
finalizeCmd.Flags().Uint64Var(&flagNumViewsInStakingAuction, "epoch-staking-phase-length", 100, "length of the epoch staking phase measured in views")
finalizeCmd.Flags().Uint64Var(&flagNumViewsInDKGPhase, "epoch-dkg-phase-length", 1000, "length of each DKG phase measured in views")

which seems to be used in the absence of other instructions (other instructions you're setting here for localnet).
I haven't found a setting of 200 / 5/ 80.

QQ:

  • do we want to change the general default or the one for localnet?
  • Do we want these numbers, sp. for the staking phase length (usually 1/10 the DKG length)?
  • Is there a 3d palce where @jordanschalm 's numbers are set?

@kc1116
Copy link
Contributor Author

kc1116 commented Aug 2, 2021

I've seen @jordanschalm mention non-zero defaults here.
I notice the default setup here:

finalizeCmd.Flags().Uint64Var(&flagNumViewsInEpoch, "epoch-length", 4000, "length of each epoch measured in views")
finalizeCmd.Flags().Uint64Var(&flagNumViewsInStakingAuction, "epoch-staking-phase-length", 100, "length of the epoch staking phase measured in views")
finalizeCmd.Flags().Uint64Var(&flagNumViewsInDKGPhase, "epoch-dkg-phase-length", 1000, "length of each DKG phase measured in views")

which seems to be used in the absence of other instructions (other instructions you're setting here for localnet).
I haven't found a setting of 200 / 5/ 80.
QQ:

  • do we want to change the general default or the one for localnet?
  • Do we want these numbers, sp. for the staking phase length (usually 1/10 the DKG length)?
  • Is there a 3d palce where @jordanschalm 's numbers are set?
  • We are only changing the defaults for localnet in this PR to address flakiness in testing.
  • Yes, these numbers give us the desired result on localnet when testing.
  • For localnet no, these numbers are only set in the CLI defaults or by the makefile.

@kc1116 kc1116 closed this Aug 2, 2021
@kc1116 kc1116 reopened this Aug 2, 2021
@kc1116 kc1116 requested a review from huitseeker August 2, 2021 14:07
Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

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

LGTM!

@kc1116 kc1116 merged commit e225254 into master Aug 4, 2021
@kc1116 kc1116 deleted the khalil/1542/update-epoch-defaults branch August 4, 2021 13:05
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.

None yet

5 participants