feat: 添加 Monad RPC 性能优化支持#365
Open
Judytimer wants to merge 1 commit into
Open
Conversation
基于真实 RPC 限制测试的优化方案: 🧪 测试发现的问题: - 并发 >10 开始大量失败 (60-90% 失败率) - 批量 >100 返回 429 错误 - 单个请求延迟 ~300ms 🚀 优化内容: - MonadRPCOptimizer: 智能限流+重试+熔断+缓存 - MonadOptimizedHTTPProvider: 自动检测并优化Monad RPC - 专用配置文件: 基于测试结果的安全参数(8并发+100批量) - 智能启动脚本: 动态参数调整和错误处理 - 完整文档: 使用说明和性能对比 📊 性能提升: - 原始配置: ~10% 成功率,大量 429 错误 - 优化配置: 95%+ 成功率,平衡性能与稳定性 新增文件: - config/indexer-config-monad-optimized.yaml - indexer/utils/monad_rpc_optimizer.py - indexer/utils/monad_provider.py - run_monad_optimized.sh - run_monad_smart.py - docs/MONAD_OPTIMIZATION.md Fixes: Monad 测试网 RPC 限制导致的大量请求失败问题
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.
基于真实 RPC 限制测试的优化方案:
🧪 测试发现的问题:
🚀 优化内容:
📊 性能提升:
新增文件:
Fixes: Monad 测试网 RPC 限制导致的大量请求失败问题