A network system comprises a plurality of access points (APs) and a distributed cache. The distributed cache is formed using memory in the plurality of APs. The plurality of APs are configured to measure telemetry data and store the telemetry data in the distributed cache. One of the plurality of APs is assigned as a controller AP configured to assign, based on the telemetry data stored in the distributed cache, multiple APs of the plurality of APs to different roles to analyze the plurality of APs and update resource configurations of the plurality of APs.