Repository navigation
feat(relayer): persist congestion requeue telemetry on remember_jobs - #1351
Open
harrymove-ctrl wants to merge 1 commit into
Open
harrymove-ctrl wants to merge 1 commit into
harrymove-ctrl wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Persists upload congestion requeue telemetry (
congestion_requeues,next_attempt_at, andupload_wallet_index) directly on theremember_jobsrow instead of keeping it only inside the serialized Apalis payload and log stream.028_remember_jobs_congestion_requeues.sql):congestion_requeues INTEGER NOT NULL DEFAULT 0andnext_attempt_at TIMESTAMPTZtoremember_jobsusing metadata-only fast defaults.services/server/src/jobs.rs):record_congestion_requeue_on_remember_joband calls it across all 4 congestion requeue paths (schedule_metadata_congestion_retry,PreparedUpload::Deferred, durable upload congestion backoff, and atomic upload congestion backoff).upload_wallet_indexwhen a durable upload checkpoint (upload_wallet_address,upload_register_transaction, orupload_resume_step) is already recorded, and updatesupload_wallet_indexto the rotated wallet when the journal is uncommitted.next_attempt_atwhen an attempt starts running or transitions touploaded,done, orfailed, while retainingcongestion_requeuesandupload_wallet_indexon the job row for operational visibility.congestion_requeues = 0andnext_attempt_at = NULLinunpaid_analyze_retry_reset_sqlwhen an unpaid failed analyze job is reset topending.services/server/src/jobs.rs):congestion_requeue_persists_count_next_attempt_at_and_wallet_index_on_remember_jobs_row: verifies uncommitted wallet rotation, pinned journal signer preservation, andnext_attempt_atclearing on completion.burst_inflow_41_per_minute_against_5_wallets_completes_via_congestion_requeues_with_zero_failures: verifies a 41 req/min burst against 5 wallets (~16 uploads/min capacity,threshold = 20,consecutive = 4saturation monitor) completes all 41 jobs with zero congestion failures and recordscongestion_requeuesandupload_wallet_indexon every overflow row.