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 RollappPendingSubmissionsSkewBatches each block #1221

Open
Northa opened this issue Nov 11, 2024 · 0 comments
Open

Update RollappPendingSubmissionsSkewBatches each block #1221

Northa opened this issue Nov 11, 2024 · 0 comments

Comments

@Northa
Copy link

Northa commented Nov 11, 2024

dymint/block/submit.go

Lines 80 to 85 in ed72d9b

types.RollappPendingSubmissionsSkewBytes.Set(float64(pendingBytes.Load()))
types.RollappPendingSubmissionsSkewBlocks.Set(float64(unsubmittedBlocks()))
submitter.Nudge()
}
})

During some internal tests i noticed that rollapp_pending_submissions_skew_batches metric not updating in real time.

Steps to reproduce.

  1. a working rollapp setup with da-client.
  2. restart\stop hub rpc.
  3. Simulate a load test by sending some txs into rollapp.
  4. Monitor the rollapp_pending_submissions_skew_batches metric.

possible fix: Northa@9c68066

UPDATE2:
When it comes to pause block production due to too many batches are pending submission metrics are not updating as well.
Affected metrics

rollapp_pending_submissions_skew_bytes
rollapp_pending_submissions_skew_batches
rollapp_pending_submissions_skew_blocks

time="Nov 12 13:45:31.686" level=error msg="Enough bytes to build a batch have been accumulated, but too many batches are pending submission. Pausing block production until a signal is consumed.[]" module=block_manager

Not sure but probably metrics must be updated there

dymint/block/submit.go

Lines 129 to 131 in 30a84df

ticker.Reset(maxBatchTime)
pending = uatomic.Uint64Sub(&pendingBytes, nConsumed)
logger.Info("Submitted a batch to both sub-layers.", "n bytes consumed from pending", nConsumed, "pending after", pending) // TODO: debug level

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

No branches or pull requests

1 participant