October 19, 2026
Microservices architecture for ensuring high availability in OEM automotive production lines
Microservices Architecture for Ensuring High Availability in Automotive OEM Production Lines
Rafael Aparecido Carvalho Salles; Jamile Raquel Regazzo
DOI: 10.22167/2675-6528-202601378
Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.
Summary
A high-availability architecture for industrial systems in the automotive OEM sector, based on microservices and container orchestration, was implemented and evaluated. The main objective was to validate the resilience of critical shop floor services in an on-premise environment, through self-healing mechanisms, focusing on reducing the Mean Time To Recover (MTTR). The methodology adopted an experimental approach, combining qualitative analysis of the industrial context with quantitative performance evaluation. Three independent microservices (laser, torque, and ERP APIs) were developed in Python, deployed on a Kubernetes cluster (k3s) in a virtualized environment. Data collection occurred through external monitoring with Prometheus, and fault injection tests were performed by controlled pod exclusion, simulating abrupt interruptions. 10 independent runs were conducted for each service, allowing detailed analysis of MTTR. The results indicated consistent recovery times, ranging between 12 and 14 seconds, and the maintenance of service availability above 99.9% during failure events. It was observed that the use of multiple replicas ensured operational continuity without total interruptions, demonstrating the effectiveness of self-healing mechanisms and the robustness of the proposed architecture. It was concluded that the adoption of orchestrated microservices significantly contributed to reducing the impact of failures in industrial systems, promoting greater resilience, flexibility, and adherence to Industry 4.0 demands, validating the practical applicability of this approach in critical manufacturing environments.
Keywords: Platform Engineering; Software Engineering; Industry 4.0; Kubernetes.
1. Introduction
The OEM (Original Equipment Manufacturer) automotive manufacturing industry is undergoing a profound transformation, driven by the paradigms of Industry 4.0. This scenario is characterized by the integration of advanced technologies, such as cyber-physical systems and the industrial internet of things (IIoT), aiming to optimize processes and ensure global competitiveness (Lasi et al., 2014). In this highly interconnected ecosystem, the uninterrupted availability of shop floor control and monitoring systems is a fundamental requirement for operational continuity. The failure of a single component or service can trigger cascading disruptions, resulting in significant production losses, compromised final product quality, and substantial financial impacts. The increasing complexity of production lines and the reliance on automated systems elevate the criticality of resilience, demanding solutions that minimize downtime and ensure rapid recovery of essential services.
Historically, many shop floor systems still rely on monolithic architectures, which, although functional, present challenges in flexibility, scalability, and fault resilience. In these configurations, a failure in one part of the system can propagate, compromising the application and requiring complex manual interventions for restoration. Such interventions result in high Mean Time To Recover (MTTR), prolonging downtime and impacting productivity. Automotive industrial systems operate under strict performance demands, including the need for real-time responses, high fault tolerance, and agile recovery mechanisms (Avizienis et al., 2004). The inability to meet these requirements can lead to production stoppages and product quality degradation, underscoring the urgency for architectures that ensure operational continuity even in the face of adverse events.
In this context, Software Engineering offers architectural approaches and patterns to build more resilient and fault-tolerant systems. The microservices architecture has gained prominence, proposing the decomposition of an application into small, independent, and loosely coupled services, each running its own process and communicating through well-defined interfaces (Lewis & Fowler, 2014; Newman, 2021). Advantages include fault isolation, independent scalability, and ease of deployment. The combination of microservices with container orchestration, such as Kubernetes, enhances these benefits, automating service lifecycle management, load balancing, fault detection, and self-healing. Orchestration allows the system to automatically detect failures in service instances and replace them with new ones, ensuring continuity and high availability (Dragoni et al., 2017). Such mechanisms are crucial for environments that demand continuous operation and rapid incident response.
Although the benefits of microservices architecture and container orchestration are widely recognized and documented in the literature, especially in corporate and web application contexts (Villamizar et al., 2016), there is a significant gap regarding their practical and experimental validation in specific industrial environments, such as the OEM automotive sector. The transition to microservices on the factory floor presents unique challenges, related to integration with legacy hardware, proprietary industrial communication protocols, and latency requirements. Most existing studies focus on scalability and cost optimization, but few deeply investigate the resilience and Mean Time To Recover (MTTR) of critical services in an on-premise environment, where infrastructure is often more restricted and fault tolerance is paramount. The lack of empirical data on the performance of self-healing mechanisms in realistic failure scenarios prevents a complete understanding of the applicability of this approach in Industry 4.0. This study, therefore, seeks to fill this gap by providing a detailed and experimental analysis of the effectiveness of orchestrated microservices in ensuring high availability in critical manufacturing systems.
Given this gap, this study is justified by the search to validate the resilience of orchestrated microservices in industrial systems, aiming to reduce MTTR.
2. Material and Methods
The research adopted a mixed-methods approach, integrating qualitative analysis of the industrial context with quantitative evaluation of the performance of distributed systems. The qualitative phase involved direct observation of typical processes in automotive production lines, covering operational flows such as laser marking, torque application, and registration in corporate systems. This initial analysis aimed to identify critical points related to system unavailability and the need for rapid recovery in industrial environments. Subsequently, the quantitative phase focused on conducting controlled experiments to measure the performance of the proposed architecture, with a focus on the Mean Time To Recover (MTTR) of services.
The study was conducted in a controlled environment, simulating an automotive production line in the municipality of Poços de Caldas, MG, with the objective of validating high availability through microservice-based architectures. To represent the industrial context, a three-dimensional model of a production line was developed, containing three stations: laser, torque, and test/record. This model followed a sequential logic inspired by real automotive manufacturing processes, serving as a conceptual basis for the organization of the developed microservices and for the definition of call flows during testing.
The experimental infrastructure was implemented in a virtualized on-premise environment, using the Proxmox Virtual Environment platform, version 9.1.5. For test execution, a virtual machine configured with 4 vCPUs, 8 GB of RAM, and 60 GB of SSD storage was employed, operating with the Ubuntu Server 22.04 LTS operating system. These parameters were defined to simulate an industrial environment with limited resources, maintaining consistency with real local deployment scenarios.
The orchestration environment was configured using Kubernetes, in its lightweight distribution k3s, version 1.28, installed via the official script provided by Rancher. The adopted configuration was standard, employing containerd as the container runtime and SQLite as the cluster’s internal database. The cluster was structured in a single-node architecture, containing only one server node. This choice simplified the experimental environment, allowing a focused analysis of self-healing mechanisms without compromising the research objectives.
To simulate high availability, each microservice was configured with three replicas, managed through Kubernetes Deployment objects, ensuring redundancy and operational continuity. Load balancing between replicas was automatically performed using ClusterIP type Services, distributing requests in a round-robin pattern. External access to services was enabled by the Traefik Ingress Controller, automatically configured during k3s installation, while internal balancing was provided by the distribution’s native serverlb component.
The environment monitoring was performed using Prometheus, version 3.0. This system was installed externally to the Kubernetes cluster, but on the same virtual machine, ensuring independence in metric collection even in scenarios of service failure. Data collection occurred through a periodic scraping mechanism, with a 3-second interval, allowing continuous monitoring of the system’s state. The main metrics used included `kube_deployment_status_replicas_available` and `kube_pod_status_phase`, enabling precise analysis of service availability and pod lifecycle during the experiments.
Three independent microservices were developed in Python, using the Flask framework for the implementation of RESTful APIs. These represented typical operations of an automotive production line: `api-laser`, responsible for simulating engraving and cutting processes, communicating with equipment via DLL libraries; `api-torque`, focused on processing technical torque data, integrating through the Open Protocol; and `api-erp`, in charge of integration and final registration of operations. These microservices acted as integration layers, abstracting proprietary protocols and promoting decoupling between corporate systems and physical devices. Each microservice was configured with three active replicas, ensuring redundancy and operational continuity.
To evaluate the system’s resilience, the technique of controlled fault injection was adopted. Faults were induced by the deliberate deletion of pods, using the `kubectl delete pod` command. This action simulated abrupt service interruptions, analogous to communication failures or crashes frequently observed in monolithic industrial systems. This procedure allowed for a direct assessment of the architecture’s ability to recover from unexpected interruptions in a controlled and repeatable manner.
The experiments were conducted in 10 independent runs for each of the microservices. In each run, the system was previously stabilized with three active replicas and subjected to simulated requests via HTTP calls, ensuring that the services were in operational state before the failure induction. The requests were generated by an automated script, which sent sequential calls to the service endpoint, with an average interval of 500 ms between requests, totaling 10 calls per test cycle, simulating the behavior of industrial devices in continuous operation.
After the pod deletion, the system was monitored until the complete restoration of the desired state, characterized by the total availability of the three service replicas. Tests were performed in isolation, applying the failure to a single service at a time. The main metric used was the Mean Time to Recovery (MTTR), defined as the interval between the occurrence of the failure and the complete restoration of the service. Operationally, the MTTR was measured from the moment the pod deletion command was executed until the instant the Kubernetes reported the full reestablishment of the service replicas.
The data for MTTR measurement were collected through logs generated during test execution and validated with metrics extracted from Prometheus, especially the `kube_deployment_status_replicas_available` metric. For the analysis of the results, the average of the times obtained in the 10 experimental runs was considered. For the interpretation of the results, acceptability criteria were defined based on typical requirements of critical industrial systems: excellent performance for MTTR below 10 seconds, and acceptable performance for MTTR below 30 seconds. Additionally, a availability greater than 99.9% during continuous operation was established as a benchmark, compatible with the demands of manufacturing systems.
The collected data were analyzed retrospectively, based on the records obtained during the experiments. The system states before, during, and after the occurrence of failures were compared. The analysis was conducted by evaluating operational metrics, such as the variation in the number of available replicas over time and the time required for complete service restoration after failure. This data was organized into time series, allowing for the analysis of the system’s dynamic behavior during the degradation and recovery process. Additionally, a comparison was made between different runs to verify the consistency and repeatability of the obtained results.
3. Results and Discussion
The experiments conducted in this study primarily aimed to evaluate the performance of a microservices-based architecture, focusing on ensuring high availability in automotive industrial systems. The central metric for this evaluation was the Mean Time To Recover (MTTR), which measures the system’s ability to restore itself after failures occur. To this end, 10 independent fault injection test runs were performed on each of the developed microservices (api-laser, api-torque, and api-erp), strictly following the methodology detailed in the Material and Methods section. The results obtained provide a robust empirical basis for discussing the effectiveness of the proposed architecture and its implications for the sector.
The analysis of the Mean Time To Recover (MTTR) revealed consistent and predictable patterns, a finding of great relevance for industrial environments that demand stability and operational continuity. Table 1, below, details the MTTR values recorded for each microservice in each of the 10 experimental runs.
Table 1. Indicators of service recovery under induced failure
|
executing |
MTTR api-laser (s) |
MTTR api-torque (seconds) |
MTTR api-erp (s) |
|
1 |
12 |
13 |
13 |
|
2 |
13 |
14 |
14 |
|
3 |
12 |
13 |
13 |
|
4 |
14 |
14 |
14 |
|
5 |
13 |
13 |
13 |
|
6 |
12 |
14 |
14 |
|
7 |
13 |
13 |
13 |
|
8 |
14 |
14 |
14 |
|
9 |
12 |
13 |
13 |
|
10 |
13 |
14 |
14 |
Source: Original survey data
As shown in Table 1, the recovery times for the `api-laser` microservice ranged between 12 and 14 seconds, while `api-torque` and `api-erp` showed variations between 13 and 14 seconds. This consistency is a strong indicator of the system’s predictability, a critical attribute in manufacturing contexts where every second of downtime can represent significant losses. The low dispersion of results suggests that the Kubernetes self-healing mechanism operates stably and reliably, regardless of the specificities of each microservice.
For a more in-depth understanding, descriptive statistics of the recovery times were calculated and are presented in Table 2.
Table 2. Descriptive statistics
|
API |
Average MTTR (s) |
Standard deviation |
Variance |
|
api-laser |
12,8 |
0,79 |
12 to 14 |
|
api-torque |
13,5 |
0,53 |
13 to 14 |
|
api-erp |
13,5 |
0,53 |
13 to 14 |
Source: Original survey data
Table 2 corroborates the observation of low variability, with standard deviations of 0.79 seconds for `api-laser` and 0.53 seconds for `api-torque` and `api-erp`. The average MTTR for `api-laser` was 12.8 seconds, while `api-torque` and `api-erp` registered 13.5 seconds. This proximity in average values and the reduced variation between executions and across different services is a testament to the standardization of recovery behavior provided by container orchestration. The slight difference, with `api-laser` being marginally faster, can be attributed to factors such as service initialization complexity or the volume of dependencies to be loaded, although the influence of the orchestration layer is dominant.
These results are in line with the literature that emphasizes the importance of the orchestration layer in the resilience of distributed systems. Dragoni et al. (2017) highlight that resilience in microservice architectures is strongly influenced not only by the individual implementation of services but, crucially, by the effectiveness of the orchestration layer in managing the container lifecycle and fault detection. Kubernetes, by automating the detection of failed pods, the scaling of new instances, and the initialization of the execution environment, standardizes recovery time, minimizing the influence of specific application characteristics. This behavior is a differentiator compared to monolithic systems, where fault recovery often depends on manual interventions and can vary drastically in time and complexity.
The stability of MTTR, consistently between 12 and 14 seconds, directly reflects the lifecycle of containers in the k3s cluster. This interval encompasses several critical stages: failure detection by the Kubernetes control plane, the scaling process of a new pod to replace the removed instance, and the time required for the new pod’s execution environment to initialize, including loading the Python interpreter and Flask API dependencies. The predictability of this time is a significant advancement for industrial systems engineering, as it allows operation and maintenance teams to plan the impacts of potential failures with greater precision, optimizing contingency strategies and minimizing unplanned downtime. Newman (2021) argues that container orchestration is a fundamental pillar for building resilient systems, and the data presented here reinforce this perspective in the context of automotive manufacturing.
The self-healing capability of the system was one of the crucial points evaluated, and the results demonstrated its robustness. Figure 1 illustrates the execution of multiple consecutive fault injections in the Kubernetes environment, specifically for the `api-torque` microservice.
Source: Original survey data
Figure 1. Execution of multiple fault injections in the Kubernetes environment
As evidenced in Figure 1, the system was subjected to ten induced unavailability events, and in all cases, the Kubernetes self-healing mechanism was effectively triggered, restoring services without the need for any manual intervention. Each drop in the line of available replicas is quickly followed by a full recovery, indicating that the system is capable of adapting and restoring its functionality autonomously. This repeatability and consistency under failure are essential characteristics for critical systems in industrial environments, where production interruption can entail high costs and compromise safety.
The robustness demonstrated by the proposed architecture, even in the face of successive unavailability events, is in full alignment with the concept of fault-tolerant systems, as described by Avizienis et al. (2004). Fault tolerance is the ability of a system to continue operating correctly, or to recover quickly, even in the presence of faults. In the industrial context, this translates into greater operational reliability and reduced dependence on human interventions, which are often slow and error-prone. The automation of fault recovery, facilitated by container orchestration, represents a qualitative leap in incident management on production lines, allowing teams to focus on higher value-added tasks rather than constantly reacting to disruptions.
Besides rapid recovery, maintaining system availability during failure events is a critical factor. Figure 2 presents the application’s uptime behavior during the same consecutive fault injection tests, complementing the analysis of Figure 1.
Source: Original survey data
Figure 2. Application uptime monitoring during failure events
Figure 2 demonstrates that, even with the occurrence of induced failures and the exclusion of pods, the application remained available throughout the entire analyzed period. This was possible because, although one pod was deliberately excluded, the other two replicas of the microservice continued to be active and capable of serving requests. This behavior ensures availability greater than 99.9%, a fundamental requirement for automotive manufacturing systems, where a total interruption of production is unacceptable. Structural redundancy, guaranteed by the configuration of multiple replicas and automatic load balancing, is the pillar of this operational continuity.
This result reinforces the principles of microservice architectures, which promote decoupling and independence between services, contributing to the construction of inherently more resilient systems (Lewis & Fowler, 2014). In an industrial environment, this characteristic is of utmost importance, as it prevents the failure of a specific component from causing a cascading interruption that paralyzes the entire production line. The practical implications are vast: minimization of financial losses due to downtime, maintenance of product quality by avoiding process interruptions, and optimization of operational resources. The ability of an automotive manufacturing system to absorb failures without compromising its continuous operation is a competitive differentiator and a requirement for adherence to Industry 4.0 standards.
The evaluation of the results in relation to the acceptability criteria defined in the methodology is crucial for contextualizing the observed performance. The established criteria were: excellent performance for MTTR below 10 seconds, and acceptable performance for MTTR below 30 seconds. Based on the average MTTRs obtained, which ranged between 12.8 and 13.5 seconds, the performance of the proposed architecture can be classified as acceptable. Although the values did not reach the “excellent” threshold (< 10 seconds), they are significantly below the maximum “acceptable” threshold (< 30 seconds).
This classification of “acceptable” represents, in practice, a substantial improvement compared to traditional industrial scenarios. In many of these environments, fault recovery in monolithic or legacy systems often requires manual intervention, which can take minutes, or even hours, to complete. A recovery time of 12 to 14 seconds, even if not “excellent” by the strictest criteria, is an extremely fast and automated response, which drastically minimizes the impact of failures on production. The difference between recovery in seconds and recovery in minutes or hours can mean the continuity or shutdown of an entire assembly line, with associated costs of lost production, rework, and delivery delays. To reach the “excellent” level, future optimizations could focus on reducing pod startup time, perhaps through lighter container images or optimization of the dependency loading process.
The impact of the microservices architecture and the configuration of multiple replicas were decisive for the observed results. The use of three replicas per microservice proved to be a critical factor in maintaining system availability. Even when a service instance failed, the remaining replicas continued to operate normally, ensuring that requests were processed without total interruption. This behavior is a clear demonstration of the fault isolation principle, a fundamental characteristic of microservices architecture (Dragoni et al., 2017). Fault isolation ensures that problems in individual components do not compromise the functionality of the system as a whole, a stark contrast to monolithic architectures, where the failure of a single component can lead to the complete shutdown of the application and, consequently, the production line.
From an industrial point of view, this approach represents a significant evolution. The transition from monolithic systems to orchestrated microservices not only improves technical aspects of resilience and scalability but also directly contributes to operational continuity and production efficiency. The joint analysis of Figures 4 and 5 reinforces this conclusion, evidencing that the system not only recovers quickly from failures but also maintains perceived availability during the process. This capacity for automatic self-recovery, combined with fault isolation, significantly reduces the dependence on manual intervention, freeing operators and technicians to focus on more strategic and preventive activities. This aligns with the demands of Industry 4.0, which seeks greater automation, connectivity, and resilience in production processes (Lasi et al., 2014).
The proposed architecture, by enabling rapid recovery and maintaining availability, offers valuable practical implications for OEM automotive production lines. The ability to isolate failures and automatically recover means that maintenance can be performed more agilely and with less risk of prolonged interruptions. For example, software updates or bug fixes can be applied to microservices individually, without the need to stop the entire production line, a process that in monolithic architectures would be complex and risky. This promotes greater agility in the development and deployment of new functionalities, a growing requirement in an ever-evolving automotive market.
Furthermore, the predictability of MTTR allows companies to establish stricter and more reliable service level agreements (SLAs) for their shop floor systems. The ability to quantify the expected downtime after a controlled failure facilitates risk management and the optimization of business continuity plans. The reduced need for manual intervention to restore services after failures also lowers operational costs and the risk of human errors, contributing to a safer and more efficient production environment. The inherent resilience of this architecture, combined with the observability provided by Prometheus, offers a clear view of the system’s status, enabling proactive identification of bottlenecks and data-driven decision-making to further optimize operations.
Regarding the research objective, which was to analyze and validate the performance of a microservices architecture for ensuring high availability in automotive industrial systems, focusing on MTTR reduction, the results obtained demonstrate that this objective was fully achieved. The proposed architecture not only presented consistent and predictable recovery times but also maintained service availability even under induced failures, evidencing resilient behavior. Practical validation in a controlled environment, simulating an automotive production line, provided empirical evidence that the orchestrated microservices approach is a viable and effective solution for high availability challenges in the sector. The self-healing capability and fault isolation are attributes that position this architecture as a superior alternative to legacy systems, promoting the modernization and competitiveness of industrial operations.
4. Conclusion
It is concluded that the objective was achieved, validating the performance of a microservices architecture to ensure high availability in automotive industrial systems, with a focus on reducing the Mean Time To Recover (MTTR). The results demonstrated consistent recovery times, ranging between 12 and 14 seconds, which, although classified as “acceptable” by the established criteria, represents a substantial improvement over traditional industrial scenarios, which often require prolonged manual intervention. The proposed architecture demonstrated robustness and self-recovery capability, maintaining service availability even in the face of induced and successive failures, thanks to fault isolation and container orchestration. This predictability and resilience are crucial for operational continuity in manufacturing environments.
However, this study presented some important limitations. The use of a cluster in a single-node configuration restricts the generalization of results to more complex distributed environments. Furthermore, the execution of tests with limited simulated load and the absence of scenarios with simultaneous failures in multiple microservices may not reflect the entirety of the challenges in a real production environment. For future studies, it is suggested to validate the architecture in distributed environments with multiple nodes, conduct tests under higher load and in operational conditions closer to industrial reality, in order to deepen the understanding of its applicability and further optimize performance.
Bibliographic References
AVIZIENIS, Algirdas et al. Basic concepts and taxonomy of dependable and secure computing. IEEE Transactions on Dependable and Secure Computing, v. 1, n. 1, p. 11-33, 2004.
DRAGONI, N. et al. Microservices: Yesterday, Today, and Tomorrow. In: MORIZIO, M.; MEDEIROS, P. (Org.). Present and Ulterior Software Engineering. Cham: Springer, 2017. р. 195-216.
LASI, Heiner et al. Industry 4.0. Business & Information Systems Engineering, v. 6, n. 4, p. 239-242, 2014.
LEWIS, J.; FOWLER, M. Microservices: A definition of this new architectural term. Martin Fowler, 2014. Disponível em: https://martinfowler.com/articles/microservices.html . Acesso em: 06 out. 2025.
NEWMAN, S. Building Microservices: Designing Fine-Grained Systems. 2. ed. Sebastopol: O’Reilly Media, 2021.
VILLAMIZAR, M. et al. Evaluating the monolithic and the microservice architecture pattern to deploy web applications in the cloud. IEEE Latin America Transactions, v. 14, n. 11, p. 451-456, 2016.
Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform