In recent years, Internet of Things (IoT) services have expanded to promote the quality of life in different areas. Cloud connectivity services are so popular now that they have prompted the experts to enhance cloud computing for its utilization in IoT, making everything online in the next few decades. For reducing latency, immediate processing, and network congestion, fog computing has emerged in which cloud computing is expanded to the edge of the network. On the other hand, concerning the limitations in fog hardware resources compared with the cloud, and the dynamic and unpredictable fog environment, the provision of dynamic fog services is a challenge. Automatic matching of the resources based on the workload oscillations of IoT applications leads to allocating minimum fog resources to IoT devices, therefore, the satisfaction of service level agreement (SLA) and quality of service (QoS) parameters.
The present article introduces a method based on the control monitoring‐analysis‐planning‐execution having shared knowledge‐base loop and presents an approach for dynamic resource provisioning based on autonomic computing and reinforcement learning techniques. The proposed scheme uses learning automata as a decision‐maker in the planning phase and time series prediction model in the analysis phase. The simulation test results indicated a reduced delay in service provisioning, total cost, and SLA violation compared with other approaches, highlighting the potential of fog computing in ensuring the QoS.