Adaptive CPU affinity framework for Java with business-aware isolation, virtual thread support, and chaos engineering integration.
- Adaptive CPU binding based on workload, QPS, latency, and GC pressure
- Business-aware isolation with Spring Boot annotations
- Virtual thread support (Java 21+)
- Chaos engineering integration
<dependency>
<groupId>com.reene4444</groupId>
<artifactId>adaptive-cpu-pinning</artifactId>
<version>1.0.0</version>
</dependency>cpu:
pinning:
enabled: true@AffinityPool("my-service", cpus = {0,1,2,3})
@Service
public class MyService {
@AdaptiveAffinity(workloadType = WorkloadType.CPU_INTENSIVE)
public void process() {
// Automatically pinned to optimal CPUs
}
}30-50% latency reduction, 20-40% throughput improvement. CPU pin overhead: ~5μs. Benchmarks
Java 17+, Spring Boot 3.2+ (optional), Linux (primary). Apache License 2.0