Skip to content

Hot Shot Mode

Hot Shot Mode

Hot Shot Mode provides power and performance preferences for HookProbe edge deployments.

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

Performance Mode

Maximum detection capability:

Terminal window
hookprobe-ctl hotshot --mode performance

Settings:

SettingValue
CPU Governorperformance
XDP Modenative (if supported)
Polling Interval100ms
Log LevelDEBUG
Full IDSEnabled

Balanced Mode (Default)

Standard operation:

Terminal window
hookprobe-ctl hotshot --mode balanced

Settings:

SettingValue
CPU Governorondemand
XDP Modeauto
Polling Interval1s
Log LevelINFO
Full IDSEnabled

Efficiency Mode

Power saving for battery operation:

Terminal window
hookprobe-ctl hotshot --mode efficiency

Settings:

SettingValue
CPU Governorpowersave
XDP Modeskb
Polling Interval5s
Log LevelWARNING
Full IDSReduced

Stealth Mode

Minimal footprint:

Terminal window
hookprobe-ctl hotshot --mode stealth

Settings:

SettingValue
CPU Governorpowersave
XDP Modedisabled
Polling Interval30s
Log LevelERROR
Full IDSDisabled
Mesh UpdatesReduced

CLI Usage

View Current Mode

Terminal window
hookprobe-ctl hotshot --status

Output:

Hot Shot Mode: balanced
──────────────────────
CPU Governor: ondemand
XDP Mode: native
Polling: 1000ms
Log Level: INFO
IDS: full
Power Draw: ~3.5W

Set Mode

Terminal window
hookprobe-ctl hotshot --mode <preset>

Custom Settings

Terminal window
hookprobe-ctl hotshot --custom \
--cpu-governor performance \
--polling-interval 500 \
--xdp-mode native

Configuration File

/etc/hookprobe/hotshot.yaml
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 daily

Scheduled Modes

Create Schedule

schedules:
- name: "battery_saver"
mode: efficiency
cron: "0 0 * * *" # Midnight
- name: "work_hours"
mode: performance
cron: "0 8 * * 1-5" # 8am weekdays

View Schedules

Terminal window
hookprobe-ctl hotshot --schedules

Power Monitoring

View Power Usage

Terminal window
hookprobe-ctl hotshot --power

Output:

Power Statistics:
─────────────────
Current Draw: 3.2W
24h Average: 2.8W
Peak (24h): 5.1W
Battery Estimate: 12h 30m (at current draw)

Energy Anomaly Detection

Hot Shot Mode includes RAPL-based power monitoring for anomaly detection:

Terminal window
hookprobe-ctl metrics | grep energy
{
"energy_anomaly": 0.12,
"power_draw_watts": 3.2,
"rapl_package_joules": 1234567,
"anomaly_threshold": 0.25
}

Guardian-Specific

WiFi Power Management

guardian:
wifi:
power_save: true # Enable in efficiency mode
scan_interval: 60 # Seconds between scans

LTE Power Management

guardian:
lte:
sleep_mode: true
wake_on_data: true
idle_timeout: 300

Fortress-Specific

OVS Optimization

fortress:
ovs:
dpdk: false # DPDK for max throughput
flow_cache: 50000
thread_count: 2

Performance Metrics

Measure Impact

Terminal window
# Before mode change
hookprobe-ctl metrics --filter performance > before.json
# Change mode
hookprobe-ctl hotshot --mode performance
# After (wait a few minutes)
hookprobe-ctl metrics --filter performance > after.json

Key Metrics

MetricDescription
agent_cpu_percentCPU usage
agent_memory_mbMemory usage
detection_latency_msDetection speed
xdp_ppsPackets per second

Tradeoffs

ModeDetectionPowerLatencyStealth
PerformanceMaxHighLowNone
BalancedGoodMediumMediumLow
EfficiencyReducedLowHighMedium
StealthMinimalLowestVery HighMaximum

Best Practices

Travel (Guardian)

Terminal window
# Hotel/Airport: Full protection
hookprobe-ctl hotshot --mode balanced
# On battery: Save power
hookprobe-ctl hotshot --mode efficiency
# Sensitive environment: Minimal footprint
hookprobe-ctl hotshot --mode stealth

Office (Fortress)

Terminal window
# Business hours: Full protection
hookprobe-ctl hotshot --mode performance
# Night: Reduced (with schedule)
# Configure schedules in hotshot.yaml

Research (Nexus)

Terminal window
# ML Training: Maximum performance
hookprobe-ctl hotshot --mode performance
# Idle: Save power
hookprobe-ctl hotshot --mode efficiency

Next Steps