Abstract
This paper proposes a design and implementation scheme for an automatic screwdriver cluster management system based on the Kubernetes cloud platform. To address issues such as low efficiency and unreasonable task allocation in the traditional manual management model, this study deploys the Machinekit system in LXD containers to achieve efficient cluster management and monitoring of multiple screwdrivers. An improved monotonic rate scheduling algorithm, QRM, is introduced to meet the real-time control requirements of the automatic screwdrivers. Experimental results show that, compared to manual management, the Kubernetes management model can significantly improve production efficiency by 42.86 %, validating the effectiveness of this scheme in enhancing the production efficiency and stability of automatic screwdrivers. This provides technical support for the development of automation and intelligence in the manufacturing industry.
Highlights
- This paper innovatively deploys Kubernetes + lightweight LXD containers for automatic screw machine clusters, running Machinekit on embedded hardware to fix the drawbacks of manual equipment management and fill the integration gap between container orchestration and industrial motion control.
- An improved QRM real-time scheduling algorithm is designed for tightening tasks. It balances equipment load and timeliness, cutting Kubernetes native scheduling latency by 72.4% and enabling fast task migration without deadline misses.
- Comparative physical tests show the system improves production efficiency by 42.86% and fastening accuracy to 99.62%. Multi-dimensional tests verify its stable performance in intelligent discrete manufacturing.
1. Introduction
1.1. Introduction and development of Kubernetes
In the past few decades, China’s machinery manufacturing industry has undergone significant transformation, with the development of automation technologies improving the assembly efficiency of enterprises [1]. Under the background of Industry 4.0 [2], the complexity of industrial production has been increasing, and traditional manual operations and simple mechanized production methods are no longer sufficient to meet the requirements of modern industrial production. The domestic demand for automatic screwdrivers remains substantial. As a critical production tool, automatic screwdrivers have been widely applied across various industries, greatly enhancing product quality and production efficiency [3]. However, under manual management, automatic screwdrivers require a significant amount of human labor, are prone to errors, and have slow response times [4]. Furthermore, automatic screwdrivers experience substantial idle time during the manufacturing process, making cluster management and reasonable task allocation difficult.
Applying Kubernetes to the management of automatic screwdriver clusters is akin to giving the production line a “smart brain”. It can adjust task allocation according to demand, achieving optimal resource utilization. The Kubernetes architecture adopts the microservices design principle [5], consisting of multiple independent modular components that work in coordination with the operating system's resource objects. By utilizing Kubernetes, a scalable enterprise-level cloud platform can be quickly established and managed [6]. Through intelligent scheduling and automated repair systems, it ensures the availability and fault tolerance of the system, minimizing downtime and waiting time. Moreover, by leveraging LXD [7] container technology, Kubernetes provides the ability to automate the deployment, operation, and scaling of applications on the cloud platform. This significantly improves production efficiency and reduces operational and maintenance costs, driving the intelligence and reliability of manufacturing processes [8].
1.2. The related work of Kubernetes
Li et al. (2024) applied microservice and container technology in industrial software development but did not involve motion control or real-time scheduling. Xu et al. (2023) proposed a container-based industrial cloud platform but lacked optimization for screw fastening tasks. Toka (2021) studied low-latency edge computing with Kubernetes but did not apply it to numerical control equipment. The proposed system fills the gap by combining container orchestration, real-time scheduling, and embedded motion control for automatic screw machine clusters.
2. Kubernetes theory and cluster management system technology
2.1. Introduction of Kubernetes
Kubernetes [9] is an open-source container orchestration platform for automated deployment, management, and scaling of containerized applications. A cluster consists of a Master node and multiple Node nodes. The Master includes kube-apiserver, kube-scheduler, kube-controller-manager, and etcd. Nodes run kubelet, kube-proxy, and container runtime [10-11].
Fig. 1Architecture diagram of Kubernetes

2.2. Analysis of cluster management system technology
Traditional cluster management systems face challenges such as complex resource scheduling, poor real-time performance, and insufficient adaptability to embedded hardware when applied to large-scale automatic screw machine clusters. These systems struggle with the real-time task allocation of screw fastening, cross-node fault handling of equipment, and high availability assurance of motion control services, resulting in low resource utilization and unstable production.
As an efficient cluster management platform for automatic screw machines, Kubernetes solves the above pain points through container orchestration, node-level equipment management, real-time resource scheduling, and full-link monitoring. Aiming at the characteristics of screw fastening tasks (periodic, repetitive, deadline-sensitive), Kubernetes optimizes task allocation through improved scheduling strategies, enhances the security of embedded control systems, ensures high availability of equipment clusters, and supports automated operation and maintenance of industrial equipment. Kubernetes optimizes the allocation of CPU, memory and I/O resources for screw machine control through efficient scheduling algorithms, resource quotas, node affinity and auto-scaling, combined with real-time performance monitoring, to further improve the overall operating efficiency of the cluster and ensure the stable operation of motion control applications in dynamic production environments.
2.3. Automatic screw machining platform
As shown in Fig. 2, this is the model diagram of the automatic screw machine designed in this study. The automatic screw machine achieves automatic delivery, tightening, and inspection of screws through the coordinated operation of its feeding system, control system, drive system, and fastening system. This has improved production efficiency and product quality in multiple industries, including communications, optoelectronics, home appliances, automobiles, and toys [12].
Fig. 2Automatic screw machining platform model

With technological advancements, automatic screw machines have demonstrated characteristics of high efficiency, high precision, automation, intelligence, flexibility, adaptability, safety, and reliability in cluster management. They also play an increasingly important role in data management and analysis, adapting to ever-changing production demands and enhancing overall production performance. As a result, the demand for automatic screw machines in cluster management is growing. The key requirements for cluster management include:
1) High efficiency and high precision: Automatic screw machines need to improve fastening speed while ensuring tightening accuracy to meet the demands of large-scale production.
2) Automation and intelligence: By using automated control systems to reduce human intervention, the stability and consistency of the production process can be improved.
3) Flexibility and adaptability: The automatic screw machine must be able to handle different types and specifications of screws, as well as products of varying materials and thicknesses, to meet diverse production needs.
4) Safety and reliability: Automatic screw machines are typically equipped with various safety protection features, such as overload protection and power failure protection, to ensure the safety and stability of the equipment during operation.
5) Data management and analysis: With the advancement of Industry 4.0, cluster management for automatic screw machines also needs to incorporate data collection, analysis, and optimization, to further improve production efficiency and quality.
6) Real-time performance: The screw fastening task has clear timing constraints (task period 100 ms, execution time 20 ms, deadline 100 ms, jitter tolerance ≤ 5 ms), requiring the cluster system to complete task scheduling and response within the deadline.
3. Kubernetes system design and implementation
3.1. Design of Kubernetes system architecture
Based on the distributed cluster management cloud platform for the automatic screw machine, the Linux operating system is used to configure the environment for the physical nodes of the cluster and deploy the Machinekit system [13]. As shown in Fig. 3, LXD container technology is employed to enable the rapid startup of the Machinekit operating system. The I/O pins of the BeagleBone Black development board are used to control the motion of the automatic screw machine’s axis. As illustrated in Fig. 3, the Kubernetes cloud platform structures its cluster into one Master node and three Node nodes. The Master node acts as the control node, providing an open API interface to the backend service modules and processing control commands received from the backend. All Node nodes serve as Worker nodes, executing containerized tasks assigned by the Master node. Additionally, Kubectl commands are executed on the Master node.
Fig. 3Kubernetes node deployment architecture

3.2. Implementation of Kubernetes core modules
3.2.1. Deployment of Kubernetes node
The Kubernetes cloud platform serves as the core foundation for managing multiple screw machines, providing the necessary platform support for the operation of backend applications. It is required to have stability, efficiency, and high availability [14]. The backend application adopts a microservices architecture, which allows services within the system to be independently deployed and run. As shown in Fig. 4, to ensure high availability of the services, the system deploys the same service unit on multiple replica nodes, thus preventing service interruptions caused by failures of a single node. Among them, etcd is responsible for storing the configuration and state information of the cluster. kube-apiserver provides API interface services to other resources or components, kube-scheduler is responsible for scheduling resources, and kube-controller-manager manages different resources to ensure that resources operate according to predefined rules [15].
Fig. 4Kubernetes Node deployment architecture diagram

The automatic screw machine management cloud platform is a multi-node distributed project deployed based on LXD containers, with Node nodes running under the management of the Master node. All applications are deployed on these nodes. As shown in Table 1, the Master node hosts services such as etcd, kube-apiserver, kube-scheduler, and kube-controller-manager, while the Node nodes have components like kubelet, kube-proxy, and container runtimes installed. These components are responsible for tasks such as container creation, network access, and task deployment [16].
Table 1Node configuration information
Part | Name | IP address | Element | Hardware configuration |
Master | Virtual machine Ubuntu20.04 | 192.168.3.120 | Etcd, kube-apiserver, kube-controller-manager, kube-scheduler, LXD | CPU: 2 Cores, Memory: 4 GB, Hard disk: 40 GB, Network: 100 Mbps |
Node1 | Screw machine 1 | 192.168.3.121 | kube-proxy, kubelet, LXD | BeagleBone Black, CPU: 1 Core ARM Cortex-A8, Memory: 512 MB, Storage: 4 GB eMMC, Network: 100 Mbps |
Node2 | Screw machine 2 | 192.168.3.122 | kube-proxy, kubelet, LXD | BeagleBone Black, CPU: 1 Core ARM Cortex-A8, Memory: 512 MB, Storage: 4 GB eMMC, Network: 100 Mbps |
Node3 | Screw machine 3 | 192.168.3.123 | kube-proxy, kubelet, LXD | BeagleBone Black, CPU: 1 Core ARM Cortex-A8, Memory: 512 MB, Storage: 4 GB eMMC, Network: 100 Mbps |
3.2.2. Kubernetes pod selection
As shown in Fig. 5, a Pod is the basic deployment unit in Kubernetes. It encapsulates one or more containers, which share network and storage resources and can work together [17]. The Pod simulates a logical host environment, enabling inter-process communication between containers, sharing a file system, and using the same network port. The design of the Pod is intended to support tightly coupled applications, simplifying deployment and management. However, Pods are inherently transient and are typically managed by controllers such as the ReplicaSet to enable self-healing, replication, and scaling functionality [18].
Fig. 5Pod container schematic

Kubernetes virtualizes the cluster environment required by large software systems, enabling green deployments across data centers and providing intelligent auto-scaling capabilities. Docker containers and Linux containers are two important containerization solutions [19]. Docker containers package the system environment required by the application from the bottom up, enabling seamless cross-platform operation of applications, and are categorized as application containers. Linux containers, on the other hand, are a virtualization technology based on the containerized OS level, classified as system containers. LXD (Linux Daemon) is primarily used to manage LXC [20] (Linux Containers), addressing issues such as the inability of LXC to enable certain security features by default. LXD provides a complete set of underlying tools for creating and managing containers, making LXC usage more efficient. Therefore, the LXD Linux container solution is adopted.
Fig. 6Core architecture diagram of Kubernetes scheduler

The native Kubernetes scheduler lacks real-time performance [21]. Traditional RM (Rate Monotonic) sets priority only by task period [22], which cannot handle deadline-sensitive tasks. This paper proposes QRM [23] (Quick Rate Monotonic):
As shown in Fig. 7, the task allocation process for the automatic screw machine is designed to assign more tasks to lightly loaded devices while reducing the workload of heavily loaded devices, transferring tasks to the lighter ones. At the same time, real-time monitoring of machine status and task execution ensures that, in case of a failure or anomaly, tasks are immediately reassigned to other available machines, ensuring continuous and efficient production.
As shown in Eq. (1), the Rate-Monotonic (RM) scheduling algorithm achieves fast machine prioritization by inversely associating the screw machine’s work cycle with its priority:
where is the execution period of task .
Fig. 7Kubernetes task assignment flowchart

Given an independent task set , each task is represented by the tuple (1, 2,..., ), where represents the deadline of task , represents its period, and represents its execution time. If the CPU utilization of the task set satisfies certain conditions, then the task set is suitable for scheduling using the Rate-Monotonic (RM) scheduling algorithm:
The Eq. (3) can be used to calculate that when the number of tasks , the system’s CPU utilization reaches its maximum value of 69.31 %. The actual CPU utilization of the screw machine control system is measured as 58.2 %, which is lower than the bound, ensuring schedulability.
Based on the RM algorithm, this study proposes an improved scheduling algorithm called QRM, specifically designed for the task environment of an automatic screw machine control system, to better meet its real-time requirements. The QRM algorithm adopts a linear hybrid priority calculation method, which combines static task priority and dynamic deadline factor, and the weight coefficient is tuned based on industrial field experience (0.6 in this study). The task priority is calculated using Eq. (4):
where is the deadline of the task, and for periodic tasks . The value of is set according to the nature of the task, with a higher indicating a higher priority for the task.
The dynamic waiting time judgment formula is shown in Eq. (5):
where represents the remaining time that the automatic screw machine control system can wait for a real-time task, while denotes the time the task has already waited. To ensure that tasks do not miss their deadlines, Eq. (4) is used to determine which tasks can no longer wait on the current device. By analyzing the value of , these tasks are identified and migrated to other devices for execution, avoiding the risk of exceeding the deadline.
Compared with RM and EDF algorithms, QRM takes into account both task periodicity and deadline urgency, and is more suitable for the screw fastening scenario with fixed periodicity and strict deadline; compared with the native Kubernetes scheduler, QRM reduces the scheduling latency by 72.4 % and eliminates deadline miss.
Based on the RM algorithm, this study proposes an improved scheduling algorithm called QRM, specifically designed for the task environment of an automatic screw machine control system, to better meet its real-time requirements. The operator assigns a value to each type of real-time task based on experience, and the task priority is calculated using Eq. (4), ensuring both the timeliness and efficiency of task scheduling.
3.3. Kubernetes platform setup
3.3.1. Kubernetes platform planning
There are two architectural approaches in a Kubernetes environment: single-Master cluster and multi-Master cluster [24]. A single-Master cluster can be deployed in development and testing environments, while a multi-Master cluster is required in production environments to ensure high availability. As shown in Fig. 8, a single-Master cluster architecture includes one Master node, several Node nodes, and multiple Etcd database nodes. Etcd, as the database of the Kubernetes cluster, is responsible for storing the cluster’s state and configuration information. It can be installed flexibly at any location, including on the same machine as the Master node, as long as Kubernetes can successfully connect to Etcd.
3.3.2. Cluster planning
As shown in Table 2, this study proposes the corresponding server hardware configurations for different deployment environments. The specific hardware configurations vary between the testing environment and the production environment.
During the operating system initialization phase, a series of steps must be performed to ensure optimal system performance and security. These steps include disabling the firewall, SELinux, and Swap, adding entries to the Hosts file, adjusting kernel parameters, and synchronizing system time. For the testing environment, we will configure the local virtual machines according to the recommended settings for the testing environment to ensure consistency in development and testing. As shown in Fig. 9, the example code for deploying the Docker engine on the Node is provided.
Fig. 8Single Master cluster architecture diagram

Table 2Set up the configuration requirements table for the local and production environments
Server configuration requirements | |||
Local test environment | Master/Node | CPU | 2 Cores |
Memory | 4 GB | ||
Hard disk | 40 GB | ||
Production environment | Master | CPU | 8 Cores |
Memory | 16 GB | ||
Hard disk | 100 GB | ||
Node | CPU | 16 Cores | |
Memory | 64 GB | ||
Hard disk | 500 GB | ||
Fig. 9Sample code for node deployment docker containers

3.3.3. Cluster construction
Etcd is the core database of the Kubernetes cluster and uses the Raft protocol as its consistency algorithm. This project was initiated by the CoreOS team in June 2013, with the goal of creating a highly available distributed key-value store system [25]. Etcd is written in Go and is known for its simplicity, security, speed, and reliability. By default, it provides an HTTP API service on port 2379, while port 2380 is used for communication between cluster nodes. These two ports are officially reserved for Etcd use by IANA (Internet Assigned Numbers Authority). In production environments, it is recommended to deploy Etcd in a clustered setup to ensure high availability and data consistency. Due to Etcd’s leader election mechanism, the cluster requires at least three or more odd-numbered servers. As a distributed key-value store, Etcd uses the Raft consistency algorithm through the service discovery system, where port 2379 is used for client communication, and port 2380 is used for communication between all internal nodes in the cluster.
3.3.4. Deploying dashboard
The Kubernetes Dashboard is a web-based user interface that allows users to interact directly with the Kubernetes cluster. Through the dashboard, users can easily deploy containerized applications, troubleshoot them, and manage the entire cluster and its related resources. The dashboard provides an intuitive view that enables users to get an overview of the applications running on the cluster, as well as create or modify individual Kubernetes resources such as Deployments, Jobs, DaemonSets, etc. For example, users can use the deployment wizard to scale an existing deployment, initiate a rolling update, restart Pods, or deploy new applications. Additionally, the dashboard provides detailed information about the status of Kubernetes resources in the cluster, as well as any errors that may occur, helping users better monitor and maintain the health of the cluster.
As shown in Fig. 10, when operating on the Master1 node, after uploading the recommended.yaml file to the /opt/k8s directory, a service account is created and bound to the default cluster-admin cluster role [26].
Fig. 10Create a service account and add the administrator sample code

The Kubernetes cloud platform uses the Heapster container cluster monitoring and performance analysis tool to visualize cluster resource data. Heapster retrieves resource information from all Node nodes by calling the Kubernetes cluster API server and collects data from the cAdvisor on the Master node’s kubelet [27]. This data is pushed to the backend service module for storage and then visualized on the frontend cloud platform resource display interface. As shown in Fig. 11, the Kubernetes frontend interface displays information about the host, including system information, the number of containers, CPU usage, memory usage, and more.
Fig. 11Kubernetes host information

Nodes are the machines in a Kubernetes cluster, which can be either virtual machines or physical machines. As shown in Fig. 12, in the Dashboard, you can view the status of each node, resource usage (CPU and memory), Pods distribution, and other information. Additionally, you can view detailed information about the nodes, including the Pods running on the node and the events associated with the node.
In Kubernetes, a Pod is the smallest deployable unit and can contain one or more containers. As shown in Fig. 13, through the Kubernetes Dashboard, you can view detailed information about Pods, including their status, restart count, IP address, running containers, and resource usage. Additionally, you can perform actions on Pods, such as restarting, deleting, or viewing logs.
Machinekit is a tool used for controlling CNC machines, and it can run on Kubernetes. As shown in Fig. 14, in the Kubernetes Dashboard, you can view the status and configuration of the Machinekit application running on the Kubernetes cluster. This includes resources such as Machinekit’s Deployments, Services, Pods, and more, as well as their logs and monitoring data. Through the Dashboard, you can manage and monitor the operation of Machinekit on Kubernetes, ensuring the stable operation of automated screw machines.
Fig. 12Information about Kubernetes nodes

Fig. 13Information about Kubernetes pods

Fig. 14Machinekit runs on the Kubernetes platform

4. Automatic screw machine lock test and analysis
4.1. Construction of test platform
The main hardware components of the automated screw machine include: the BeagleBone Black [28] development board, stepper motor drivers, stepper motors, servo motors, switch power supplies, touchscreens, relays, and more. As shown in Fig. 15, the BeagleBone Black development board, stepper motor drivers, relays, and other components are connected to the 12V output of the switch power supply. The input of the switch power supply is connected to the AC servo motor driver, which is then connected to the 220V power source. The I/O outputs of the BeagleBone Black development board are connected to the inputs of the stepper motor driver, including pulse and direction signals. Finally, the stepper motor and AC servo motor are connected to the corresponding outputs of their respective drivers, and the motor phase sequence is checked. The computer is connected to the BeagleBone Black development board, and the Machinekit software is configured to ensure proper communication for initial setup and debugging.
Container overhead test: Compared with bare-metal deployment, LXD container increases CPU overhead by 2.1 %, memory overhead by 3.5 %, and I/O latency by 1.2 ms, which meets the real-time requirements of resource-constrained embedded hardware.
The test platform for this study consists of three automated screw machine prototypes. Each automated screw machine is equipped with a fixture on the -axis, which can hold two workpieces. The electric screwdriver uses a Leadshine ACM1H-0604 servo motor, and the driver is a Leadshine L5P-400 servo driver. The electric screwdriver parameters are set to a torque of 0.4 N·m and a speed of 800 rpm.
Fig. 15Machinekit control system circuit construction

The test adopts a controlled variable design: 3 screw machines run simultaneously (As shown in Fig. 16), each workpiece fastens 4 screws, test duration is 6 hours, 5 repeated trials are carried out, and the average value is taken for statistical analysis. The workload is fixed (camera front housing bearing cover), and the only variable is the management mode (manual vs Kubernetes+QRM).
Fig. 16Automatic screw machining platform physical picture

As shown in Fig. 17, a screw locking test was conducted on the bearing cover of the camera front housing.
Fig. 17Camera front cover screw lock pay physical picture

4.2. Test results and analysis
4.2.1. Kubernetes cluster management system test
Response time testing is crucial for the Kubernetes-based automated screw machine cluster management system, as it directly impacts the system's real-time performance and overall production efficiency. This type of testing ensures that the system can quickly adapt to changes and demands in the production process, schedule and execute tasks in a timely manner, and meet the real-time requiremeFigurents of automated screw machine control [29].
The native Kubernetes scheduler lacks real-time performance. Traditional RM (Rate Monotonic) sets priority only by task period, which cannot handle deadline-sensitive tasks. This paper proposes QRM (Quick Rate Monotonic).
As shown in 18, the average response time accessed through Cluster IP on the Kubernetes cluster node is 3.1 ms. Through testing, we can verify the effectiveness and real-time performance of the QRM scheduling algorithm, ensuring that tasks are completed before the deadline, thereby improving production efficiency. Additionally, response time testing helps identify system performance bottlenecks, optimize resource allocation, improve resource utilization, and reduce idle and waiting times. This is crucial for the stability and reliability of the system [30], as it ensures the system can maintain stable operation under varying loads and conditions. The test results also demonstrate the system’s ability to recover quickly in the event of a failure, which is vital for minimizing production downtime and enhancing production efficiency. Meanwhile, response time testing is also essential for quality control, as it ensures the accuracy of the automated screw machine's fastening process, reduces missed or incorrect locks, and improves product quality. Through this testing, users can verify the advantages of the Kubernetes management model over traditional manual management in terms of improving production efficiency and provide data support for the system’s continuous improvement.
Fig. 18Test the response time of the host and Node

Network performance testing is a core component in ensuring that the network meets established performance standards and supports critical business applications. By evaluating key metrics such as data transmission rate, latency, throughput, and packet loss rate, users can gain deep insights into the network’s actual performance. These tests not only help identify potential performance bottlenecks but also verify the accuracy of network configurations, check network security, and quickly locate and resolve network issues.
As shown in Fig. 19, the network performance of Flannel’s VXLAN mode (between pods) incurs a 34 % loss compared to direct host-to-host connectivity, which generally meets the network testing requirements (loss of 30 %-40 %).
Fig. 19Node Inter-node network test

Network performance testing is essential for ensuring the stability of network services, optimizing resource allocation, enhancing network reliability, and providing data support for decision-making. The test results enable organizations to make informed decisions regarding network upgrades, resource management, and business expansion. Additionally, network performance testing brings many benefits, including improving user experience, reducing costs, increasing maintenance efficiency, and effectively managing risks.
Fig. 20Automatic screw machine head path interface

a) Screw machine 1 batch head path interface

b) Screw machine 2 batch head path interface

c) Screw machine 3 batch head path interface
As shown in Fig. 20, the Kubernetes front-end interface displays the Machinekit operation interface of the running containers and the bit paths of the three screw machines. This visual representation of resources allows the working status of the automated screw machines to be more intuitively presented to the operators, helping them better plan the task allocation for the screw machine cluster.
4.3. Efficiency analysis of automatic screw machining
The processing efficiency of automated screw machines is crucial to the economic benefits and market competitiveness of the production process. It not only helps enterprises identify and solve production bottlenecks, reduce waste, and lower costs, but also ensures product quality consistency, reduces defects and rework, thus improving product quality. Additionally, efficiency analysis can optimize resource allocation and drive improvements in processing technology and manufacturing techniques.
Baseline and measurement method: The manual management mode is taken as the baseline, with the same hardware, workload and test duration; the number of completed workpieces is counted every 0.5 hours, and 5 repeated trials are carried out to eliminate random errors. Independent sample t-test is used for statistical analysis, and the difference is significant (0.05). Detailed data can be found in Table 3.
Table 3Number of completed workpieces under two management modes
Manual management mode | Kubernetes management mode | |||||
TIME (H) | Screw machine 1 | Screw machine 2 | Screw machine 3 | Screw machine 1 | Screw machine 2 | Screw machine 3 |
Number of finished parts (PCS) | Number of finished parts (PCS) | Number of finished parts (PCS) | Number of finished parts (PCS) | Number of finished parts (PCS) | Number of finished parts (PCS) | |
0.5 | 37 | 39 | 34 | 47 | 51 | 52 |
1 | 76 | 84 | 71 | 92 | 107 | 101 |
1.5 | 116 | 126 | 111 | 136 | 162 | 152 |
2 | 154 | 166 | 149 | 185 | 213 | 202 |
2.5 | 190 | 203 | 186 | 232 | 268 | 250 |
3 | 221 | 240 | 219 | 276 | 321 | 303 |
3.5 | 257 | 281 | 257 | 328 | 371 | 351 |
4 | 286 | 315 | 294 | 381 | 412 | 407 |
4.5 | 319 | 351 | 328 | 432 | 467 | 451 |
5 | 349 | 382 | 362 | 481 | 518 | 501 |
5.5 | 377 | 419 | 393 | 527 | 570 | 553 |
6 | 404 | 448 | 421 | 574 | 622 | 604 |
As shown in Fig. 21, the screw fastening data curves under the two management modes are plotted based on the data recorded in Table 3. The analysis shows that under the manual management mode, the average number of workpieces processed per screw machine in 0.5 hours is 35. However, under the Kubernetes management mode, the average number of workpieces processed per screw machine in 0.5 hours is 50. Over the same period, the Kubernetes management mode increased production efficiency by 42.86 % compared to the manual management mode.
As shown in Fig. 22, within 6 hours, by applying the Quick Response Manufacturing (QRM) scheduling algorithm, we monitored the number of workpieces processed by the three screw machines. In the initial phase (0-1 h), the processing quantity of the three machines remained relatively stable. As time progressed (2-3 h), the processing efficiency of each machine gradually improved, and the QRM scheduling algorithm effectively balanced the workload across the machines, avoiding resource waste. In the mid-phase (3-5 h), Screw Machine 2 experienced a brief equipment failure, leading to a decrease in processing quantity.
Fig. 21Screw machining data graph under two management modes

a) Screw machine 1 processing data diagram

b) Screw machine 2 processing data diagram

c) Screw machine 3 processing data diagram
Fig. 22Comparison of screw machining quantity under QRM scheduling algorithm

a) QRM scheduling algorithm is introduced before screw machining quantity diagram

b) Screw machining quantity after introducing QRM scheduling algorithm
However, the QRM scheduling algorithm redistributed the tasks within 100 ms, allowing Screw Machines 1 and 3 to compensate for this decline, thereby maintaining overall production efficiency. In the final phase (5-6 h), the processing quantities of all machines stabilized. Therefore, the QRM scheduling algorithm effectively improved the production efficiency of the three screw machines within the 6-hour period, ensuring the continuity and stability of the production process.
As shown in Fig. 23, a comparison is made between the manual management mode and the Kubernetes management mode, showing the number of workpieces completed by the three screw machines every 0.5 hours. The Kubernetes management mode has brought higher stability and reliability to the processing system, effectively reducing production interruptions caused by operational errors or human intervention. By ensuring the stability of the number of processed workpieces, Kubernetes significantly improved the production efficiency of the screw machines.
Fig. 23Statistical chart of screw machining data in each time period under two modes

4.4. Automatic screw machine locking accuracy analysis
In automated manufacturing, the accuracy of screw fastening is crucial for ensuring product quality, improving production efficiency, and reducing costs. This process directly impacts the reliability and safety of the product, as precise fastening ensures the structural stability and durability of the product. High fastening accuracy not only indicates efficient resource utilization in the production process but also reduces rework and scrap caused by incorrect fastenings, thus effectively saving costs. Therefore, by analyzing the screw fastening accuracy results based on the number of missed screws and different management modes, the screw fastening accuracy under the manual management mode and Kubernetes management mode are shown in Table 4 and Table 5, respectively.
After performing statistical analysis on the screw fastening accuracy under the manual management mode and the Kubernetes management mode, it can be concluded that in the Kubernetes management mode, the average growth rate of screw fastening quantity is 400 screws/hour, which is higher than the 283 screws/hour in the manual management mode. Furthermore, in the Kubernetes management mode, the average number of missed screws is approximately 0.57, and the average accuracy rate is 99.62 %. In contrast, the manual management mode has an average of about 2.62 missed screws and an average accuracy rate of 97.49 %. The calculation results show the variance of missed screws under both management modes:
As shown in Fig. 24, through statistical analysis of the number of missed screws under the manual management mode and the Kubernetes management mode, it was found that the average number of missed screws in the Kubernetes management mode is 0.57, which is significantly lower than the 2.62 screws in the manual management mode. The variance of missed screws in the Kubernetes management mode is 0.18, which is also much lower than the 1.19 in the manual management mode. Therefore, adopting the Kubernetes management mode can significantly reduce the number of missed screws in the production process, improving production efficiency and product quality.
Table 4Manual management mode screw lock payment accuracy
Screw machine 1 | Screw machine 2 | Screw machine 3 | |||||||
Time (H) | Number of screws paid (pieces) | Number of screws missing (pieces) | Number of screws paid (pieces) | Number of screws paid (pieces) | Number of screws paid (pieces) | Lock accuracy rate (%) | Number of screws paid (pieces) | Number of screws missing (pieces) | Lock accuracy rate (%) |
0-0.5 | 148 | 3 | 97.97 | 156 | 2 | 98.72 | 136 | 2 | 98.53 |
0.5-1.0 | 156 | 2 | 98.72 | 180 | 2 | 98.89 | 148 | 3 | 97.97 |
1.0-1.5 | 160 | 1 | 99.38 | 168 | 3 | 98.21 | 160 | 4 | 97.50 |
1.5-2.0 | 152 | 4 | 97.37 | 160 | 4 | 97.50 | 152 | 4 | 97.37 |
2.0-2.5 | 144 | 5 | 96.53 | 148 | 5 | 96.62 | 148 | 3 | 97.97 |
2.5-3.0 | 124 | 2 | 98.39 | 148 | 5 | 96.62 | 132 | 2 | 98.48 |
3.0-3.5 | 144 | 3 | 97.92 | 164 | 2 | 98.78 | 152 | 1 | 99.34 |
3.5-4.0 | 116 | 1 | 99.14 | 136 | 1 | 99.26 | 148 | 2 | 98.65 |
4.0-4.5 | 132 | 5 | 96.21 | 144 | 2 | 98.61 | 136 | 3 | 97.79 |
4.5-5.0 | 120 | 4 | 96.67 | 124 | 3 | 97.58 | 136 | 4 | 97.06 |
5.0-5.5 | 112 | 2 | 98.21 | 148 | 4 | 97.30 | 124 | 2 | 98.39 |
5.5-6.0 | 108 | 1 | 99.07 | 116 | 1 | 99.14 | 112 | 1 | 99.11 |
Fig. 24Screw lock with accuracy box type drawing

As shown in Fig. 25, under the manual management mode, after a 0.5-hour test period, the screw fastening accuracy of all three screw machines was no lower than 97.97 %. Moreover, as the test progressed, the accuracy improved and mostly remained above 98 %. However, due to factors such as inconsistency in manual operations or operator fatigue, there were slight declines in accuracy during specific time periods (0-0.5 h, 5-5.5 h). In contrast, under the Kubernetes management mode, during the same test period, the screw fastening accuracy of all three machines exceeded 99 %, with perfect 100 % accuracy achieved in multiple time periods. Throughout the entire test, the Kubernetes management mode demonstrated higher stability and achieved 100 % accuracy in several intervals, clearly showing the significant advantage of the Kubernetes management mode in improving fastening accuracy.
Table 5Accuracy of screw locking in Kubernetes management mode
Screw machine 1 | Screw machine 2 | Screw machine 3 | |||||||
Time (H) | Number of screws paid (pieces) | Number of screws missing (pieces) | Number of screws paid (pieces) | Number of screws paid (pieces) | Number of screws missing (pieces) | Number of screws paid (pieces) | Number of screws paid (pieces) | Number of screws missing (pieces) | Number of screws paid (pieces) |
0-0.5 | 188 | 1 | 99.47 | 204 | 1 | 99.51 | 208 | 2 | 99.04 |
0.5-1.0 | 180 | 0 | 100.00 | 224 | 0 | 100.00 | 196 | 0 | 100.00 |
1.0-1.5 | 176 | 2 | 98.86 | 220 | 1 | 99.55 | 204 | 0 | 100.00 |
1.5-2.0 | 196 | 1 | 99.49 | 204 | 1 | 99.51 | 200 | 0 | 100.00 |
2.0-2.5 | 188 | 0 | 100.00 | 220 | 0 | 100.00 | 192 | 1 | 99.48 |
2.5-3.0 | 176 | 0 | 100.00 | 212 | 0 | 100.00 | 212 | 0 | 100.00 |
3.0-3.5 | 208 | 2 | 99.04 | 200 | 1 | 99.50 | 192 | 1 | 99.48 |
3.5-4.0 | 212 | 1 | 99.53 | 164 | 0 | 100.00 | 224 | 1 | 99.55 |
4.0-4.5 | 204 | 0 | 100.00 | 220 | 0 | 100.00 | 176 | 0 | 100.00 |
4.5-5.0 | 196 | 0 | 100.00 | 204 | 0 | 100.00 | 200 | 0 | 100.00 |
5.0-5.5 | 184 | 1 | 99.46 | 208 | 1 | 99.52 | 208 | 1 | 99.52 |
5.5-6.0 | 188 | 1 | 99.47 | 208 | 2 | 99.04 | 204 | 0 | 100.00 |
Fig. 25Comparison of the number and accuracy of screw locks

a) The number and accuracy of screw lock before introducing QRM scheduling algorithm

b) The number and accuracy of screw lock after QRM scheduling algorithm is introduced
Through comparative analysis, it can be concluded that the Kubernetes management mode shows a significant advantage over traditional manual management in improving screw fastening accuracy. Its automation and intelligent scheduling capabilities result in more stable fastening accuracy, achieving 100 % accuracy in most test periods. This effectively reduces human errors, enhances production efficiency and product quality, and demonstrates the potential of automation management technology to improve production stability and reliability in modern manufacturing.
5. Conclusions
This paper designs a Kubernetes-based cluster management system for automatic screw machines. Machinekit is deployed in LXD containers with verified low overhead, and an improved QRM real-time scheduling algorithm is proposed to optimize task allocation and real-time performance for periodic, deadline-sensitive screw fastening tasks. Repeated experiments with controlled variables and statistical analysis show that the system increases production efficiency by 42.86 %, improves fastening accuracy to 99.62 %, reduces the number of missed screws and variance significantly, and achieves 0 % deadline miss ratio. The system provides a practical solution for intelligent cluster control of automatic screw machines and supports the digital transformation of discrete manufacturing. Future work will support multi-Master high-availability deployment, integrate HA etcd and external load balancers, and access more types of motion control equipment to expand the application scope of the system.
References
-
Y. Liu and J. Lu, “Environmental conditions and promotion mechanisms for the optimization and upgrading of China’s industrial structure under the new normal,” Zhejiang Academic Journal, Vol. 2015, No. 6, pp. 188–193, 2015.
-
J. Lee, B. Bagheri, and H.-A. Kao, “A cyber-physical systems architecture for Industry 4.0-based manufacturing systems,” Manufacturing Letters, Vol. 3, pp. 18–23, Jan. 2015, https://doi.org/10.1016/j.mfglet.2014.12.001
-
W. Dong, “Application and development of automatic screw locking machines,” China Venture Capital, Vol. 2013, p. A18, 2013.
-
Y. Zhang et al., “Control system of automatic tightening machine based on ARM,” Journal of Mechanical and Electrical Engineering, Vol. 26, No. 4, pp. 47–49, 2009.
-
L. Li and C. Shu, “Software development practice of microservice architecture and containerization technology,” Internet of Things Technologies, Vol. 14, No. 5, pp. 64–67, 2024.
-
Z. Wu, “Development and trend of virtualization technology in cloud computing,” Journal of Computer Applications, Vol. 37, No. 4, pp. 915–923, 2017.
-
M. Huang, “Design and implementation of machine learning computing platform based on container technology,” Experimental Technology and Management, Vol. 36, No. 9, pp. 28–31, 2019.
-
J. Zhou, P. Li, Y. Zhou, B. Wang, J. Zang, and L. Meng, “Toward new-generation intelligent manufacturing,” Engineering, Vol. 4, No. 1, pp. 11–20, Feb. 2018, https://doi.org/10.1016/j.eng.2018.01.002
-
Pablo Acuña, Deploying Rails with Docker, Kubernetes and ECS. Apress, 2016.
-
Z. Xu, “Design and implementation of Kubernetes cluster management system for container cloud platform,” Nanjing University, 2021.
-
S. G. Dikaleh, O. Sheikh, and C. Felix, “Introduction to Kubernetes,” in 27th Annual International Conference on Computer Science and Software Engineering, 2017.
-
S. Zuguang and X. Yuqing, “Composition analysis of miniature automatic screw locking workstation,” in Modern Manufacturing Technology and Equipment, 2019.
-
K. Xie and G. Yan, “Design of multi-axis controller based on Machinekit,” Journal of Mechanical and Electrical Engineering, Vol. 33, No. 12, pp. 1471–1476, 2016.
-
S. Böhm and G. Wirtz, “Towards orchestration of cloud-edge architectures with Kubernetes,” in Science and Technologies for Smart Cities, pp. 207–230, 2022, https://doi.org/10.1007/978-3-031-06371-8_14
-
H. V. Netto, L. C. Lung, M. Correia, A. F. Luiz, and L. M. Sá de Souza, “State machine replication in containers managed by Kubernetes,” Journal of Systems Architecture, Vol. 73, pp. 53–59, 2017, https://doi.org/10.1016/j.sysarc.2016.12.007
-
L. Osmani, T. Kauppinen, M. Komu, and S. Tarkoma, “Multi-cloud connectivity for Kubernetes in 5G networks,” IEEE Communications Magazine, Vol. 59, No. 10, pp. 42–47, 2021, https://doi.org/10.1109/mcom.110.2100124
-
V. Medel, R. Tolosana-Calasanz, J. Bañares, U. Arronategui, and O. F. Rana, “Characterising resource management performance in Kubernetes,” Computers and Electrical Engineering, Vol. 68, pp. 286–297, 2018, https://doi.org/10.1016/j.compeleceng.2018.03.041
-
G. Zhu et al., “MySQL cluster performance analysis according to pod and sharding changes in Kubernetes environment,” The Journal of Korean Institute of Next Generation Computing, Vol. 16, No. 6, pp. 48–55, 2020.
-
Z. Dong et al., “Research on microservice deployment based on container technology,” Information Technology and Standardization, Vol. 2023, No. Z1, pp. 93–98, 2023.
-
J. F. Li, C. X. Zhang, and H. Wang, “The study of a Linux container-based cloud operating system for platform as a service,” Computer Science and Engineering, Vol. 8, No. 3, pp. 45–52, 2013.
-
J. Kieley, “A hybrid cloud Kubernetes scheduler for machine learning workloads,” Arizona State University, 2021.
-
S. Wen et al., “K8sSim: A simulation tool for Kubernetes schedulers and its applications in scheduling algorithm optimization,” Micromachines, Vol. 14, No. 3, p. 651, Mar. 2023, https://doi.org/10.3390/mi14030651
-
N. D. Nguyen and T. Kim, “Balanced leader distribution algorithm in Kubernetes clusters,” Sensors, Vol. 21, No. 3, p. 869, Jan. 2021, https://doi.org/10.3390/s21030869
-
A. Poniszewska-Marańda and E. Czechowska, “Kubernetes cluster for automating software production environment,” Sensors, Vol. 21, No. 5, p. 1910, Mar. 2021, https://doi.org/10.3390/s21051910
-
D. Borsatti et al., “KubeTwin: A digital twin framework for Kubernetes deployments at scale,” IEEE Transactions on Network and Service Management, Vol. 21, No. 4, pp. 3889–3903, 2024, https://doi.org/10.1109/tnsm.2024.3405175
-
A. Alqarni, Enhancing Cloud Security and Privacy with Zero-Knowledge Encryption and Vulnerability Assessment in Kubernetes Deployments. United States: Middle Tennessee State University, 2023.
-
C.-T. Chang and Y.-B. Lin, Iottalk Implemented Based on Kubernetes Architecture. Singapore: Springer, 2023.
-
G. Coley, “Open-source hardware platform BeagleBone for electronics enthusiasts,” Electronics Production, Vol. 2011, No. 12, pp. 5–6, 2011.
-
L. Toka, “Ultra-reliable and low-latency computing in the edge with Kubernetes,” Journal of Grid Computing, Vol. 19, No. 3, p. 23, 2021, https://doi.org/10.1007/s10723-021-09573-z
-
J. Park, J. Son, and D. Kim, “Resource metric refining module for AIOps learning data in Kubernetes microservice,” KSII Transactions on Internet and Information Systems, Vol. 17, No. 6, pp. 1545–59, 2023, https://doi.org/10.3837/tiis.2023.06.003
About this article
The authors have not disclosed any funding.
The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.
Li-Gong: conceptualization, methodology, software, investigation, data curation, writing-original draft preparation, visualization. Yezhong-Han: project administration, resources, validation, writing-review and editing. Hehuan-Peng: supervision, formal analysis, funding acquisition, review and editing.
The authors declare that they have no conflict of interest.