Digital Twin for Indoor Farming Using Kubernetes Container-Based Application with Orchestration-Centric Performance Modeling
Published at : 31 Jul 2026
Volume : IJtech
Vol 17, No 4 (2026)
DOI : https://doi.org/10.14716/ijtech.v17i4.8301
| Ramot Lubis | Doctoral Program of Engineering Physics, Faculty of Industrial Technology, Institut Teknologi Bandung, Bandung, 40132, Indonesia |
| Augie Widyotriatmo | Instrumentation, Control, and Automation Research Group, Institut Teknologi Bandung, Bandung, 40132, Indonesia |
| Endra Joelianto | Instrumentation, Control, and Automation Research Group, Institut Teknologi Bandung, Bandung, 40132, Indonesia |
Indoor farming requires scalable, reliable, and low-latency monitoring and control to maintain optimal crop growth environmental conditions. Digital Twin (DT) technology offers a promising paradigm for virtually representing and managing physical farming systems. However, practical DT implementations for indoor agriculture often lack analytically grounded scalability models for edge-orchestrated DT systems. This study presents DTFarming, a microservices-based digital twin monitoring and control system for indoor farming deployed as a containerized service orchestrated using Kubernetes. Message Queuing Telemetry Transport (MQTT) is employed for event-driven telemetry exchange. This study proposes an analytical scalability model that relates sensor density to workload arrival rate, pod population, resource cost, memory saturation, and Kubernetes scheduling pressure. Experimental validation across three load scenarios (4, 20, and 100 sensors) confirms the predictive capability of the proposed model. The results indicate that the telemetry throughput scales linearly with minimal CPU overhead (<25%). However, memory is the primary bottleneck, capping scalability at ~110 pods on an 8GB edge node. This experimental saturation point aligns almost perfectly with our analytical model (112 pods), exhibiting a deviation of less than 2%. As deployments approach this limit, Kubernetes scheduling latency rises from 0.4 s to 2.1 s—a 5.25 times increase in the Scheduling Pressure Index (SPI)—while network latency and packet loss remain negligible. These findings confirm that orchestration overhead, memory constraints, dominates performance degradation rather than communication limits. The close agreement between model predictions and measurements confirms the model’s validity and offers practical guidance for sizing container-orchestrated DT platforms on constrained edge nodes.
Digital twin; Edge computing; Indoor farming; Internet of things (IoT); Microservices
Alam, M., Rufino,
J., Ferreira, J., Ahmed, S. H., Shah, N., & Chen, Y. (2018). Orchestration
of microservices for iot using docker and edge computing. IEEE Communications
Magazine, 56(9), 118–123. https://doi.org/10.1109/MCOM.2018.1701233
Bohm, S., &
Wirtz, G. (2021). Profiling lightweight container platforms: Microk8s and k3s
in comparison to kubernetes. CEUR Workshop Proceedings, 2839, 65–73.
Boursianis, A. D.,
Papadopoulou, M. S., Gotsis, A., Wan, S., Sarigiannidis, P., Nikolaidis, S.,
& Goudos, S. K. (2021). Smart irrigation system for precision agriculture -
the arethou5a iot platform. IEEE Sensors Journal, 21(16), 17539–17547. https://doi.org/10.1109/JSEN.2020.3033526
Burns, B., &
Oppenheimer, D. (2016). Design patterns for container-based distributed
systems. 8th USENIX Workshop on Hot Topics in Cloud Computing (HotCloud 16). https://www.usenix.org/conference/hotcloud16/workshop-program/presentation/burns
Centofanti, C., Tiberti, W., Marotta, A.,
Graziosi, F., & Cassioli, D. (2023). Latency-aware kubernetes
scheduling for microservices orchestration at the edge. 2023 IEEE 9th
International Conference on Network Softwarization (NetSoft), 426–431. https://doi.org/10.1109/NetSoft57336.2023.10175431
Chamberlain, J., Zheng, J., Zhu, Z., Liu, Z.,
& Starobinski, D. (2025). Exploiting kubernetes autoscaling for
economic denial of sustainability. Proceedings of the ACM on Measurement and
Analysis of Computing Systems, 9(2). https://doi.org/10.1145/3727114
Dai, W., Zhang, Y., Kong, L., Christensen, J. H.,
& Huang, D. (2023). Design of industrial edge applications based on
iec 61499 microservices and containers. IEEE Transactions on Industrial
Informatics, 19(7), 7925–7935. https://doi.org/10.1109/TII.2022.3214199
Fakeye, I., Maas,
E., Harris, P., Oulaid, B., & Baker, C. (2024). Towards a framework for
farm-scale digital twins. Proceedings: MODELS 2024 - ACM/IEEE 27th
International Conference on Model Driven Engineering Languages and Systems:
Companion Proceedings, 486–491. https://doi.org/10.1145/3652620.3688264
Faqrizal, I.,
Sala¨un, G., & Falcone, Y. (2024). Adaptive industrial control systems via
IEC 61499 and runtime enforcement. ACM Transactions on Autonomous and Adaptive
Systems, 19(4), 1–31. https://doi.org/10.1145/3691345
Garg, K.,
Usevitch, J., Breeden, J., Black, M., Agrawal, D., Parwana, H., & Panagou,
D. (2024). Advances in the theory of control barrier functions: Addressing
practical challenges in safe control synthesis for autonomous and robotic
systems. Annual Reviews in Control, 57, 100945. https://doi.org/10.1016/j.arcontrol.2024.100945
Gopalakrishnan, S., Waimin, J., Raghunathan, N.,
Bagchi, S., Shakouri, A., & Rahimi, R. (2021). Battery-less wireless
chipless sensor tag for subsoil moisture monitoring. IEEE Sensors Journal,
21(5), 6071–6082. https://doi.org/10.1109/JSEN.2020.3039363
Grieves, M. W.
(2019). Virtually intelligent product systems: Digital and physical twins. In
Complex systems engineering: Theory and practice (pp. 175–200). https://doi.org/10.2514/5.9781624105654.0175.0200
Gupta, P., Mokal,
T. P., Shah, D. D., & Satyanarayana, K. V. V. (2018). Event-driven
SOA-based IoT architecture. In International conference on intelligent
computing and applications (pp. 247–258). Springer Singapore. https://doi.org/10.1007/978-981-10-5520-1_24
IEC. (2022). IEC
61499-1:2012 function blocks - part 1: Architecture. International
Electrotechnical Commission (IEC).
Jeong, D.-Y., Baek, M.-S., Lim, T.-B., Kim, Y.-W.,
Kim, S.-H., Lee, Y.-T., Jung, W.-S., & Lee, I.-B. (2022). Digital
twin: Technology evolution stages and implementation layers with technology
elements. IEEE Access, 10, 52609–52620. https://doi.org/10.1109/ACCESS.2022.3174220
Kjorveziroski, V.,
& Filiposka, S. (2022). Kubernetes distributions for the edge: Serverless
performance evaluation. Journal of Supercomputing, 78(11), 13728–13755. https://doi.org/10.1007/s11227-022-04430-6
Kovacs, J., Ligetfalvi, B., & Lovas, R.
(2024). Automated debugging mechanisms for orchestrated cloud
infrastructures with active control and global evaluation. IEEE Access, 12,
143193–143214. https://doi.org/10.1109/ACCESS.2024.3467228
Koziolek, H.,
& Eskandani, N. (2023). Lightweight kubernetes distributions: A performance
comparison of microk8s, k3s, k0s, and microshift. ICPE 2023 - Proceedings of
the 2023 ACM/SPEC International Conference on Performance Engineering, 17–29. https://doi.org/10.1145/3578244.3583737
Kristiani, E., Yang, C.-T., Huang, C.-Y., Wang,
Y.-T., & Ko, P.-C. (2021). The implementation of a cloud-edge
computing architecture using openstack and kubernetes for air quality
monitoring application. Mobile Networks and Applications, 26(3), 1070–1092. https://doi.org/10.1007/s11036-020-01620-5
KubeEdge. (2024).
Kubeedge: Kubernetes native edge computing framework. https://github.com/kubeedge/kubeedge
Kumar, S. (2025).
Oran-hautoscaling: A scalable and efficient resource optimization framework for
open radio access networks with performance improvements. Information, 16(4). https://doi.org/10.3390/info16040259
Li, H., Liu, X.,
& Zhao, W. (2023a). Research on lightweight microservice composition
technology in cloud-edge device scenarios. Sensors, 23(13). https://doi.org/10.3390/s23135939
Li, S., Li, X., & Yang, Z. (2023b). Research
on temperature and light control system of vertical farm based on PLC.
Proceedings - 2023 International Conference on Networking, Informatics and
Computing (ICNETIC 2023), 320–324. https://doi.org/10.1109/ICNETIC59568.2023.00073
Lubis, R.,
Widyotriatmo, A., Albert, & Joelianto, E. (2024). A microservices-driven
digital twin model for precision farming in a controlled indoor environment.
2024 IEEE International Conference on Technology, Informatics, Management,
Engineering and Environment (TIME-E), 5, 180–185. https://doi.org/10.1109/TIME-E62724.2024.10919834
Madni, A. M., Madni, C. C., & Lucero, S. D.
(2019). Leveraging digital twin technology in model-based systems
engineering. Systems, 7(1). https://doi.org/10.3390/systems7010007
Nasirahmadi, A.,
& Hensel, O. (2022). Toward the next generation of digitalization in
agriculture based on digital twin paradigm. Sensors, 22(2). https://doi.org/10.3390/s22020498
Pan, Z., Hur, B.,
Myles, K., & Adelman, Z. (2022). Development of raspberry Pi 4 B and 3 B+
micro-kubernetes cluster and iot system for mosquito research applications.
Computation, 10(12). https://doi.org/10.3390/computation10120221
Pylianidis, C., Osinga, S., & Athanasiadis, I.
N. (2021). Introducing digital twins to agriculture. Computers and
Electronics in Agriculture, 184. https://doi.org/10.1016/j.compag.2020.105942
Ristov, S., Brandacher, S., Hautz, M., Felderer,
M., & Breu, R. (2024). CODE: code once, deploy everywhere serverless
functions in federated FaaS. Future Generation Computer Systems, 160, 442–456. https://doi.org/10.1016/j.future.2024.06.017
Senjab, K., Abbas,
S., Ahmed, N., & Khan, A. U. R. (2023). A survey of kubernetes scheduling
algorithms. Journal of Cloud Computing, 12(1), 87. https://doi.org/10.1186/s13677-023-00471-1
Shatrov, V., &
Vyatkin, V. (2020). Formal verification of iec 61499 enhanced with timed
events. Doctoral Conference on Computing, Electrical and Industrial Systems,
168–178. https://doi.org/10.1007/978-3-030-45124-0_16
Sonnleithner, L., Wiesmayr, B., Ashiwal, P., &
Zoitl, A. (2021). IEC 61499 distributed design patterns. 2021 26th IEEE
International Conference on Emerging Technologies and Factory Automation
(ETFA), 1–8. https://doi.org/10.1109/ETFA45728.2021.9613569
Tao, F., Zhang, H., Liu, A., & Nee, A. Y. C.
(2019). Digital twin in industry: State-of-the-art. IEEE Transactions on
Industrial Informatics, 15(4), 2405–2415. https://doi.org/10.1109/TII.2018.2873186
Turnip, A.,
Pebriansyah, F. R., Simarmata, T., Sihombing, P., & Joelianto, E. (2023).
Design of smart farming communication and web interface using MQTT and node.js.
Open Agriculture, 8(1). https://doi.org/10.1515/opag-2022-0159
Usman, M., Ferlin, S., & Brunstrom, A. (2024).
Performance analysis of lightweight container orchestration platforms
for edge-based IoT applications. Proceedings - 2024 IEEE/ACM Symposium on Edge
Computing (SEC 2024), 321–332. https://doi.org/10.1109/SEC62691.2024.00032
Verdouw, C., Tekinerdogan, B., Beulens, A., &
Wolfert, S. (2021). Digital twins in smart farming. Agricultural
Systems, 189. https://doi.org/10.1016/j.agsy.2020.103046