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

feat:ec:f3: add env var to disable F3 #12176

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

adlrocha
Copy link
Contributor

@adlrocha adlrocha commented Jul 3, 2024

Related Issues

Closes filecoin-project/go-f3#388

Proposed Changes

This PR:

  • Does not run F3 if the DISABLE_F3 env variable is set.
  • Stops F3 in runtime if the DISABLE_F3 env var is set. The process is currently polling this env variable every 5 minutes, we can poll more often if needed.

Additional Info

To test it you can run Lotus normally with F3 enabled and then set `DISABLE_F3 = 1 on your environment, this should output a log saying that F3 has been disabled.

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • If the PR affects users (e.g., new feature, bug fix, system requirements change), update the CHANGELOG.md and add details to the UNRELEASED section.
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

chain/lf3/f3.go Outdated Show resolved Hide resolved
chain/lf3/f3.go Outdated Show resolved Hide resolved
@Kubuxu Kubuxu force-pushed the f3-388-f3-disable branch from 1c4673f to f87582d Compare July 4, 2024 11:17
@Kubuxu Kubuxu force-pushed the f3-388-f3-disable branch from f87582d to 08ceb1c Compare July 4, 2024 11:55
@Kubuxu Kubuxu requested a review from masih July 4, 2024 11:55
@Kubuxu Kubuxu force-pushed the f3-388-f3-disable branch from 08ceb1c to a8ec3af Compare July 4, 2024 11:56
@Kubuxu Kubuxu enabled auto-merge (squash) July 4, 2024 13:47
@Kubuxu Kubuxu merged commit 7e37ee1 into filecoin-project:master Jul 4, 2024
76 checks passed
rjan90 pushed a commit that referenced this pull request Jul 4, 2024
* F3-388: add env var to disable F3

Signed-off-by: Jakub Sztandera <[email protected]>

* F3-388: check env variable in pubsub also

Signed-off-by: Jakub Sztandera <[email protected]>

* F3-388: use DISABLE_F3=1 instead of _yes_ like in drand

Signed-off-by: Jakub Sztandera <[email protected]>

* Use IsF3Enabled() and remove the runtime stopping

Signed-off-by: Jakub Sztandera <[email protected]>

---------

Signed-off-by: Jakub Sztandera <[email protected]>
Co-authored-by: Jakub Sztandera <[email protected]>
@rjan90 rjan90 mentioned this pull request Aug 31, 2024
8 tasks
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.

Lotus - node env var to turn off F3
8 participants