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

modify Reactor priorities (#5826) #5830

Merged
merged 1 commit into from
Dec 23, 2020
Merged

modify Reactor priorities (#5826) #5830

merged 1 commit into from
Dec 23, 2020

Conversation

melekes
Copy link
Contributor

@melekes melekes commented Dec 23, 2020

blockchain/vX reactor priority was decreased because during the normal operation
(i.e. when the node is not fast syncing) blockchain priority can't be
the same as consensus reactor priority. Otherwise, it's theoretically possible to
slow down consensus by constantly requesting blocks from the node.

NOTE: ideally blockchain/vX reactor priority would be dynamic. e.g. when
the node is fast syncing, the priority is 10 (max), but when it's done
fast syncing - the priority gets decreased to 5 (only to serve blocks
for other nodes). But it's not possible now, therefore I decided to
focus on the normal operation (priority = 5).

evidence and consensus critical messages are more important than
the mempool ones, hence priorities are bumped by 1 (from 5 to 6).

statesync reactor priority was changed from 1 to 5 to be the same as
blockchain/vX priority.

Refs #5816

blockchain/vX reactor priority was decreased because during the normal operation
(i.e. when the node is not fast syncing) blockchain priority can't be
the same as consensus reactor priority. Otherwise, it's theoretically possible to
slow down consensus by constantly requesting blocks from the node.

NOTE: ideally blockchain/vX reactor priority would be dynamic. e.g. when
the node is fast syncing, the priority is 10 (max), but when it's done
fast syncing - the priority gets decreased to 5 (only to serve blocks
for other nodes). But it's not possible now, therefore I decided to
focus on the normal operation (priority = 5).

evidence and consensus critical messages are more important than
the mempool ones, hence priorities are bumped by 1 (from 5 to 6).

statesync reactor priority was changed from 1 to 5 to be the same as
blockchain/vX priority.

Refs #5816
@codecov
Copy link

codecov bot commented Dec 23, 2020

Codecov Report

❗ No coverage uploaded for pull request base (v0.34.x@829a9e1). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             v0.34.x    #5830   +/-   ##
==========================================
  Coverage           ?   60.68%           
==========================================
  Files              ?      263           
  Lines              ?    23795           
  Branches           ?        0           
==========================================
  Hits               ?    14440           
  Misses             ?     7884           
  Partials           ?     1471           

@tessr tessr added the S:automerge Automatically merge PR when requirements pass label Dec 23, 2020
@tessr tessr merged commit b1328db into v0.34.x Dec 23, 2020
@tessr tessr deleted the anton/5816-backport branch December 23, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:automerge Automatically merge PR when requirements pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants