This repository was archived by the owner on Aug 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDISABLE_BLOAT.ts
More file actions
67 lines (56 loc) · 2.1 KB
/
Copy pathDISABLE_BLOAT.ts
File metadata and controls
67 lines (56 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* BLOAT PURGE - Disable Resource-Intensive Background Services
*
* This file lists all services that cause server overload and screen flashing.
* Copy the commented-out sections below to server/index.ts to disable them.
*/
// ====================================================
// STEP 1: Comment out these lines in server/index.ts
// ====================================================
/*
// DISABLE: Autonomous Decision-Making System (Problem Detector runs every 5min)
console.log('🤖 Initializing Autonomous Decision-Making System...');
try {
autonomous.initialize(); // <-- COMMENT THIS LINE
console.log('✅ Autonomous system ready');
} catch (error: any) {
console.warn('⚠️ Autonomous system initialization failed:', error.message);
}
*/
// ====================================================
// STEP 2: Reduce interval frequencies
// ====================================================
// In server/services/autonomous/real-metrics-collector.ts
// Change: realMetricsCollector.start(60000); // Every 1 minute
// To: realMetricsCollector.start(300000); // Every 5 minutes
// In server/services/autonomous/problem-detector.ts (Line 42)
// Change: this.detectionInterval = setInterval(() => { this.detectProblems(); }, 5 * 60 * 1000);
// To: this.detectionInterval = setInterval(() => { this.detectProblems(); }, 15 * 60 * 1000); // 15 minutes
// ====================================================
// STEP 3: Create .env variable to control bloat
// ====================================================
/*
Add to .env:
ENABLE_BACKGROUND_SERVICES=false
ENABLE_PROBLEM_DETECTOR=false
ENABLE_RESOURCE_ARBITRAGE=false
ENABLE_TEMPORAL_ARBITRAGE=false
ENABLE_SELF_IMPROVEMENT=false
*/
// ====================================================
// RESULTS AFTER BLOAT PURGE
// ====================================================
/*
BEFORE:
- Vite HMR disconnecting every 0.5-2 seconds
- Screen flashing constantly
- Server logs flooding with syncs
- CPU usage: High
AFTER:
- Vite HMR stable
- No screen flashing
- Clean server logs
- CPU usage: Normal
- Can click Run button without issue
*/
export {};