Repository navigation
Unblock the copy-engine loop and trim the remaining long EVM queries - #56
Merged
Merged
Conversation
Server after b0a5ce6: load 9.8 (was 12.4), no slow API requests after 16:42, but copy detection still 111 s (BSC) / 64 s (Robinhood) median and three long statements in pg_stat_activity. - Copy engine: the launchpad adapter refresh read every token of every launchpad (15 s) every 60 s inside the watch loop. Now a full read on start and hourly, otherwise only tokens created or traded since the last refresh (both columns indexed). - Migration 0043: index evm_tokens (chain, safety_at) for data-evm's entry pass (49 s), CONCURRENTLY. - ml: the missed-winner query (108 s) runs every 6 hours instead of every 30-minute cycle; its rows are written once each. - db_health: age of the newest stored EVM trade and each scan cursor, to tell feed lag from copy-engine lag. - Audit report section X. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015vpuZ1UX4MXz7NCF7wrtDv
yonixnetwork
pushed a commit
that referenced
this pull request
Oct 8, 2026
…ce view The 2 GB / 2 vCPU droplet (16 GB database) ran at load 8-12 with 345 MB free and 1.3 GB swap. Keep the trading core reliable on it; nothing is deleted and Solana execution is unchanged. - SYSTEM_RESOURCE_MODE (NORMAL / LOW_RESOURCE / EMERGENCY, default LOW_RESOURCE) and COPY_TRADING_STATUS (ACTIVE / THROTTLED / SUSPENDED, default SUSPENDED), changeable from the dashboard (yonixalpha_core.operating_mode). - Resource level NORMAL / WARNING / CRITICAL from /proc with configurable thresholds (yonixalpha_core.resources); CRITICAL pauses priority-3 work only. - Copy engine: SUSPENDED stops target watching, copy entries, outcomes, wallet profiles and enrichment, and keeps managing open copy positions; THROTTLED watches less often. Step timers start due on the first pass. - ml: training once a day in LOW_RESOURCE and never while CRITICAL (recorded as SKIPPED with the reason); wallet ML pauses with copy trading. Inference is unaffected. - ML Review: review_status CURRENT / STALE / RUNNING / PENDING / FAILED, 202 with no result, automatic refreshes deferred while CRITICAL, explicit Refresh button. - API: GET /system/resources, PUT /system/resource-mode, GET/POST /copy/trading-status (resume refused unless the COPY_* thresholds hold; audited). - UI: Server resources panel on System Health, copy-trading status banner with the resume check, review status lines. - Heartbeats carry CPU seconds; worker DB pools 5 + 10 (API 10 + 10). - Postgres (prod): explicit defaults, effective_cache_size 512MB, no parallel workers, jit off. - db_health: mode, per-service memory / CPU, Redis, Solana pipeline latency. - docs/LOW_RESOURCE_MODE.md: pre-deploy report, changes, PR #56, staged rollout, after-deploy table, 8 GB values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015vpuZ1UX4MXz7NCF7wrtDv
yonixnetwork
pushed a commit
that referenced
this pull request
Oct 8, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015vpuZ1UX4MXz7NCF7wrtDv
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.
Follow-up to the server outputs after deploying b0a5ce6.
Server findings
Changes
refresh_adaptersused to read every token of every launchpad every 60 s, inside the watch loop, so target trades waited behind it. It now does a full read on start and once an hour. In between it reads only tokens created or traded since the last refresh (restore_adapter(since=...), both columns indexed).evm_tokens (chain, safety_at), built CONCURRENTLY.build_missedruns every 6 hours instead of every 30-minute cycle. MISSED rows are written once each, so no row is lost.Tests
alembic upgrade headandalembic checkclean.Not changed
🤖 Generated with Claude Code
https://claude.ai/code/session_015vpuZ1UX4MXz7NCF7wrtDv
Generated by Claude Code