Why Did My Jenkins Pipeline Suddenly Slow Down? A Kubernetes Storage Mystery Solved
The author experienced unusually long stage transitions in a Jenkins pipeline, traced the slowdown to differences between a manually built Kubernetes cluster using CephFS on an older Linux kernel and an automated Ansible‑deployed cluster using Ceph RBD, and discovered that switching to NFS or proper Ceph configuration restored fast execution.
Recently I encountered a puzzling issue: Jenkins pipeline stages that normally switch instantly now take about a minute each, even for simple echo commands.
I checked Jenkins logs, configuration, and Kubernetes parameters, even added resources, but nothing helped. After hours of searching and consulting colleagues, I remembered a previous Kubernetes cluster that was set up with an Ansible script.
The Ansible‑deployed cluster performed excellently, while my manually built cluster was slow. The key differences were:
One cluster was provisioned via an online Ansible script; the other was built entirely by hand.
Both use Ceph for storage, but the Ansible setup uses RBD, whereas the manual setup uses CephFS (the crucial point).
Architectural differences in the cluster design.
I suspected the CephFS issue because it requires Linux kernel 4.10+, while my servers run kernel 3.10.
To test, I switched to NFS on the manual cluster. The pipeline speed returned to normal, confirming the storage layer was the bottleneck.
Finally, I reverted to using Ceph RBD on the manual cluster, and performance improved dramatically.
In summary, the slowdown was not caused by the way the cluster was built or by the file system itself, but by an incorrect Ceph configuration. Using the proper Ceph backend (RBD) or switching to NFS resolves the issue.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Ops Development Stories
Maintained by a like‑minded team, covering both operations and development. Topics span Linux ops, DevOps toolchain, Kubernetes containerization, monitoring, log collection, network security, and Python or Go development. Team members: Qiao Ke, wanger, Dong Ge, Su Xin, Hua Zai, Zheng Ge, Teacher Xia.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
