-
Notifications
You must be signed in to change notification settings - Fork 19
config options for work mode monitor #231
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
adad370
to
8d99b2f
Compare
6023d43
to
4806fc3
Compare
8d99b2f
to
bc7b24e
Compare
4806fc3
to
28a1338
Compare
TL;DR
Added configurable parameters for work mode monitoring to control check interval and live mode threshold.
What changed?
workMode-checkIntervalMinutes
: Controls how often the work mode is checked (default: 10 minutes)workMode-liveModeThreshold
: Controls how many blocks behind the indexer can be before switching to live mode (default: 500 blocks)WorkModeConfig
struct in the config file to store these parametersWorkModeMonitor
to use these configurable values instead of hardcoded constantsHow to test?
Why make this change?
This change allows operators to fine-tune the work mode monitoring behavior based on their specific needs. Different chains and indexing scenarios may require different thresholds for determining when to switch between live and backfill modes. Making these parameters configurable improves the flexibility of the indexer without requiring code changes.