Repository navigation
Replies: 2 comments 1 reply
|
Wow these are impressive improvements. Thanks for sharing. Do you use the bulk insert API endpoint? Also, can we somehow incorporate any of directly to Hister? |
|
Basically, for indexing, the scripts take the links and check for Cloudflare’s anti-bot protection. If it’s present, the request is routed through FlareSolverr, then queued for integration using the |
Uh oh!
There was an error while loading. Please reload this page.
Hister Optimization and Reindexing (LXC 108)
@widowild1
Summary of infrastructure and synchronization interventions applied during the global reindexing of Hister (144,177 documents) on a Proxmox VE container.
📊 Performance Comparison Table
🛠️ Actions Taken
1. Proxmox VE Infrastructure (Host
nas-> GuestLXC 108)Guest swap removal:
pct set 108 -swap 0buff/cache) remains 100% resident in RAM, making Bleve index read/writes nearly instantaneous.Hot expansion of the file system (+25 GB):
no space left on device).Verification of I/O and vCPU contention:
vmstatvalidated an I/O wait rate (wa) contained between 0 and 3%, confirming the absence of a bottleneck on theETB_1storage.cpu steal= 0%).2. Application Architecture and Concurrency Management (
sync.py)Ingestion Isolation (
HOLD_INGESTION):hister indexaccesses every 5 minutes.database is locked) that were interrupting the main indexer.Lossless persistent buffering:
spool_queue.txt: Stores and deduplicates regular FreshRSS URLs.failed_urls.txt: Isolates Cloudflare-protected domains or those under a circuit breaker.utm_*,fbclid) stripped.Normalization of the Python environment:
#!/opt/rss-hister/venv/bin/pythonpython3-yamlto secure manual executions as well as systemd timer executions.3. Metrology and Automated Supervision
Dynamic report generator (
/opt/rss-hister/daily_report.sh):journalctldelta of the last 60 minutes.Automatic resumption upon completion:
sync.pyupon reaching[144177/144177].tada,rocket).HOLD_INGESTIONflag and immediate switch to emptying the spool in batches of 100.📌 Post-Reindexing Closure Procedure
Once the reindexing is complete and the spool is fully emptied, perform preventive maintenance to defragment the index and purge residual disk space:
All reactions