SnmpKit.SnmpSim.Performance.OptimizedDevicePool (snmpkit v0.6.4)
High-performance device pool with ETS-based caching and optimization. Designed for 10K+ concurrent devices with sub-millisecond lookup times.
Features:
- ETS-based device registry for O(1) lookups
- Profile caching to avoid repeated profile loading
- Connection pooling for efficient resource reuse
- Hot/warm/cold device tiers for optimal memory usage
- Pre-computed response caching for common OIDs
Summary
Functions
Cache response for future requests.
Returns a specification to start this module under a supervisor.
Force cleanup of cold tier devices.
Configure port assignments for device types.
Get cached response for common OID requests. Returns {:cache_hit, response} or :cache_miss.
Get device PID with optimized lookup (O(1) from ETS). Creates device lazily if it doesn't exist.
Get device profile from cache or load it.
Get performance statistics for monitoring.
Promote device to hot tier for frequent access optimization.
Functions
Cache response for future requests.
Returns a specification to start this module under a supervisor.
See Supervisor
.
Force cleanup of cold tier devices.
Configure port assignments for device types.
Get cached response for common OID requests. Returns {:cache_hit, response} or :cache_miss.
Get device PID with optimized lookup (O(1) from ETS). Creates device lazily if it doesn't exist.
Get device profile from cache or load it.
Get performance statistics for monitoring.
Promote device to hot tier for frequent access optimization.