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 phase1 settings #4190

Merged
merged 6 commits into from
Feb 15, 2024
Merged

Update phase1 settings #4190

merged 6 commits into from
Feb 15, 2024

Conversation

sisuresh
Copy link
Contributor

Description

Resolves #4186.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

@sisuresh sisuresh requested review from dmkozh and SirTyson February 13, 2024 17:27
@sisuresh
Copy link
Contributor Author

@dmkozh @SirTyson - when you get the chance, can you please audit all settings to make sure they match expectations?

Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

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

2 small changes, rest of the state archival settings look good.

@@ -295,8 +295,8 @@
{
"state_archival": {
"max_entry_ttl": 3110400,
"min_temporary_ttl": 16,
"min_persistent_ttl": 120960,
"min_temporary_ttl": 17000,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to do 17280 instead so we have exactly 24 hours?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This number may have been chosen as a result of some calculation, so I'll defer to @dmkozh.

Copy link
Contributor

Choose a reason for hiding this comment

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

17280 sounds fine to me - I just used a few rough numbers to compare the options.

Copy link
Contributor Author

@sisuresh sisuresh Feb 14, 2024

Choose a reason for hiding this comment

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

Updated to 17280

"min_temporary_ttl": 16,
"min_persistent_ttl": 120960,
"min_temporary_ttl": 17000,
"min_persistent_ttl": 2073600,
"persistent_rent_rate_denominator": 535680,
"temp_rent_rate_denominator": 5356800,
"max_entries_to_archive": 100,
Copy link
Contributor

Choose a reason for hiding this comment

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

With this new minimum TTL settings, we can update starting_eviction_scan_level to 7 since it is no longer possible for entries to expire in level 6.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we reduce one of the ttl values below 16384, we should reduce the scan size as well right? Do you foresee any issues with this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Correct, but this should be fine. We have a test that reduces the scan level and we've done this before on future net without issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

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

LGTM

@dmkozh
Copy link
Contributor

dmkozh commented Feb 14, 2024

It seems like we should now be able to use the values from https://docs.google.com/document/d/1RGFXy6gvzPUQwOtkcZrtvltjMBeqskwfZ__wcOCIXW8/edit#heading=h.ta18a689gwd4

@sisuresh sisuresh marked this pull request as ready for review February 14, 2024 23:56
"tx_memory_limit": 41943040
}
},
{
"contract_ledger_cost_v0": {
"ledger_max_read_ledger_entries": 40,
"ledger_max_read_bytes": 133120,
"ledger_max_write_ledger_entries": 20,
"ledger_max_write_ledger_entries": 25,
"ledger_max_write_bytes": 66560,
"tx_max_read_ledger_entries": 40,
"tx_max_read_bytes": 133120,
"tx_max_write_ledger_entries": 20,
Copy link
Contributor

Choose a reason for hiding this comment

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

Also need to set this to 25

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah good catch. Fixed.

@dmkozh
Copy link
Contributor

dmkozh commented Feb 15, 2024

r+ 05d7f32

@latobarita latobarita merged commit a1541d6 into stellar:master Feb 15, 2024
15 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.

Audit phase1.json
4 participants