Hot Shot Mode
Hot Shot Mode
Section titled “Hot Shot Mode”Hot Shot Mode provides power and performance preferences for HookProbe edge deployments.
Overview
Section titled “Overview”Edge devices often need to balance:
- Performance - Maximum detection capability
- Efficiency - Battery life and power consumption
- Stealth - Minimal system footprint
Hot Shot Mode provides presets and fine-tuning for these tradeoffs.
Presets
Section titled “Presets”Performance Mode
Section titled “Performance Mode”Maximum detection capability:
hookprobe-ctl hotshot --mode performanceSettings:
| Setting | Value |
|---|---|
| CPU Governor | performance |
| XDP Mode | native (if supported) |
| Polling Interval | 100ms |
| Log Level | DEBUG |
| Full IDS | Enabled |
Balanced Mode (Default)
Section titled “Balanced Mode (Default)”Standard operation:
hookprobe-ctl hotshot --mode balancedSettings:
| Setting | Value |
|---|---|
| CPU Governor | ondemand |
| XDP Mode | auto |
| Polling Interval | 1s |
| Log Level | INFO |
| Full IDS | Enabled |
Efficiency Mode
Section titled “Efficiency Mode”Power saving for battery operation:
hookprobe-ctl hotshot --mode efficiencySettings:
| Setting | Value |
|---|---|
| CPU Governor | powersave |
| XDP Mode | skb |
| Polling Interval | 5s |
| Log Level | WARNING |
| Full IDS | Reduced |
Stealth Mode
Section titled “Stealth Mode”Minimal footprint:
hookprobe-ctl hotshot --mode stealthSettings:
| Setting | Value |
|---|---|
| CPU Governor | powersave |
| XDP Mode | disabled |
| Polling Interval | 30s |
| Log Level | ERROR |
| Full IDS | Disabled |
| Mesh Updates | Reduced |
CLI Usage
Section titled “CLI Usage”View Current Mode
Section titled “View Current Mode”hookprobe-ctl hotshot --statusOutput:
Hot Shot Mode: balanced──────────────────────CPU Governor: ondemandXDP Mode: nativePolling: 1000msLog Level: INFOIDS: fullPower Draw: ~3.5WSet Mode
Section titled “Set Mode”hookprobe-ctl hotshot --mode <preset>Custom Settings
Section titled “Custom Settings”hookprobe-ctl hotshot --custom \ --cpu-governor performance \ --polling-interval 500 \ --xdp-mode nativeConfiguration File
Section titled “Configuration File”hotshot: mode: balanced
custom: cpu_governor: ondemand polling_interval_ms: 1000 xdp_mode: auto log_level: INFO ids_mode: full mesh_update_interval: 30
schedules: - name: "office_hours" mode: performance cron: "0 9 * * 1-5" # 9am weekdays
- name: "night" mode: efficiency cron: "0 22 * * *" # 10pm dailyScheduled Modes
Section titled “Scheduled Modes”Create Schedule
Section titled “Create Schedule”schedules: - name: "battery_saver" mode: efficiency cron: "0 0 * * *" # Midnight
- name: "work_hours" mode: performance cron: "0 8 * * 1-5" # 8am weekdaysView Schedules
Section titled “View Schedules”hookprobe-ctl hotshot --schedulesPower Monitoring
Section titled “Power Monitoring”View Power Usage
Section titled “View Power Usage”hookprobe-ctl hotshot --powerOutput:
Power Statistics:─────────────────Current Draw: 3.2W24h Average: 2.8WPeak (24h): 5.1WBattery Estimate: 12h 30m (at current draw)Energy Anomaly Detection
Section titled “Energy Anomaly Detection”Hot Shot Mode includes RAPL-based power monitoring for anomaly detection:
hookprobe-ctl metrics | grep energy{ "energy_anomaly": 0.12, "power_draw_watts": 3.2, "rapl_package_joules": 1234567, "anomaly_threshold": 0.25}Guardian-Specific
Section titled “Guardian-Specific”WiFi Power Management
Section titled “WiFi Power Management”guardian: wifi: power_save: true # Enable in efficiency mode scan_interval: 60 # Seconds between scansLTE Power Management
Section titled “LTE Power Management”guardian: lte: sleep_mode: true wake_on_data: true idle_timeout: 300Fortress-Specific
Section titled “Fortress-Specific”OVS Optimization
Section titled “OVS Optimization”fortress: ovs: dpdk: false # DPDK for max throughput flow_cache: 50000 thread_count: 2Performance Metrics
Section titled “Performance Metrics”Measure Impact
Section titled “Measure Impact”# Before mode changehookprobe-ctl metrics --filter performance > before.json
# Change modehookprobe-ctl hotshot --mode performance
# After (wait a few minutes)hookprobe-ctl metrics --filter performance > after.jsonKey Metrics
Section titled “Key Metrics”| Metric | Description |
|---|---|
agent_cpu_percent |
CPU usage |
agent_memory_mb |
Memory usage |
detection_latency_ms |
Detection speed |
xdp_pps |
Packets per second |
Tradeoffs
Section titled “Tradeoffs”| Mode | Detection | Power | Latency | Stealth |
|---|---|---|---|---|
| Performance | Max | High | Low | None |
| Balanced | Good | Medium | Medium | Low |
| Efficiency | Reduced | Low | High | Medium |
| Stealth | Minimal | Lowest | Very High | Maximum |
Best Practices
Section titled “Best Practices”Travel (Guardian)
Section titled “Travel (Guardian)”# Hotel/Airport: Full protectionhookprobe-ctl hotshot --mode balanced
# On battery: Save powerhookprobe-ctl hotshot --mode efficiency
# Sensitive environment: Minimal footprinthookprobe-ctl hotshot --mode stealthOffice (Fortress)
Section titled “Office (Fortress)”# Business hours: Full protectionhookprobe-ctl hotshot --mode performance
# Night: Reduced (with schedule)# Configure schedules in hotshot.yamlResearch (Nexus)
Section titled “Research (Nexus)”# ML Training: Maximum performancehookprobe-ctl hotshot --mode performance
# Idle: Save powerhookprobe-ctl hotshot --mode efficiencyNext Steps
Section titled “Next Steps”- Configuration - Detailed settings
- Debugging - Performance issues
- Monitoring - Metrics analysis