validator: test the client with a large number of validator keys
Maintainer thường phản hồi trong vòng 6 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- performance, testing
Hướng nghiên cứu
Start by reading secret_key_for in test_state and the MockBeaconNode setup, then look at the duty path in crates/validator/src/preferences.rs, the commit path in slashing_protection/file.rs, and the registration batching in registration.rs. The scale harness should run a few epochs at 1,000 and 10,000 keys and record per-slot duty time, slashing-protection write time, and the registration send size. Done means those numbers are reported for both key counts. The issue does not settle whether any code should change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The validator client has only been run with a handful of keys. Nothing measures what it costs per slot, per epoch or at startup with thousands of them, which is where several of its designs would show it first.
This came up in the review of #707: PreferencesService takes its sent lock once per proposer duty instead of once per poll (crates/validator/src/preferences.rs). That is harmless at the few proposals an epoch holds, but it is one example of a per-key cost nobody has measured.
What grows with the number of keys
These are read from the code, not measured:
- Startup.
ValidatorStore::loaddecrypts the keystores one after another (keys/store.rs). With EIP-2335's default scrypt parameters each one takes a noticeable fraction of a second, so 10,000 keys could take a long time before the first duty. - Slashing protection. Each
commitre-renders the whole interchange file with every key's record, then writes it durably: a temporary file, an fsync, a rename and a directory fsync (slashing_protection/file.rswrite). A slot's attestations are batched into one commit, so the commit itself is one per slot rather than one per key. Its size still grows with the number of keys, and it sits in front of every attestation signature.time_slashing_protection_writealready records how long it takes. - Builder registrations (fulu and earlier, with
--builder-proposals).- The first epoch signs one BLS signature per key on the blocking pool, 64 per chunk.
- Every epoch then sends every registration in batches of 500.
- A per-slot keymanager change waits behind that send. Against a slow node, that is at most 12 s per 500 validators (
registration.rsmodule doc).
- Epoch refresh.
validator_indicesPOSTs every loaded pubkey every epoch, andprepare_beacon_proposersends one entry per resolved key. - Per-slot duties. Attestations, aggregation selection and sync committee messages are signed for every key with a duty in the slot.
Proposal
- A scale test or benchmark. It would drive the services against
MockBeaconNodewith, for example, 1,000 and 10,000 keys over a few epochs.- The keys would use the small-integer secrets from
test_state::secret_key_for, so no keystore has to be decrypted. - It would measure the duty path's time per slot, the slashing-protection write time, the registration send's length and memory.
- The keys would use the small-integer secrets from
- A separate startup measurement with real scrypt keystores.
- A devnet run with a large key set behind one validator client, to see the same costs against a real beacon node.
- Decide from the numbers whether anything needs changing first: parallel keystore decryption, or an incremental slashing-protection store in place of rewriting the whole file every commit.
- Ngôn ngữ chính
- Rust
- Star
- 86
- Fork
- 34
- Merge trung bình
- 9 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 77
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lambdaclass/ethlambda
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
lambdaclass/ethlambda#850 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
lambdaclass/ethlambda#777 · 1 reaction ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Run all gossip validation testsCó thể làm lại được @dicethedev đã nhận 9 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
lambdaclass/ethlambda#725 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Handle malformed DB dataCó thể làm lại được @dicethedev đã nhận 115 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
lambdaclass/ethlambda#529 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Document architectural choicesCó thể làm lại được @dicethedev đã nhận 115 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
lambdaclass/ethlambda#521 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của lambdaclass/ethlambda
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
antithesishq/bombadil#473 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
libracoder/kiri#669 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 5 ngày
-
autofixer: follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
tursodatabase/turso#12217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Declare the CMS schema library in the optional recipients extraCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:python in-progress
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
yhay81/pyropdf#1005 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày