You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m experiencing significant performance degradation when running tests with pytest-xdist in a Kubernetes environment compared to running them locally.
• Pod Configuration:
• CPU: 24 cores
• Memory: 48 GB
• Resources Requests and Limits: Correctly set
• Command: pytest -n 21 --dist=loadfile
• If using --dist=load or --dist=worksteal, workers are getting crushed and tests fail.
• Running Time: 35-57 minutes
• Screenshot:
Despite having significantly more resources in Kubernetes, the test running time is much longer, and using --dist=load or --dist=worksteal causes failures.
I need help understanding why this performance degradation is happening and how to optimize pytest-xdist in Kubernetes.
The text was updated successfully, but these errors were encountered:
I’m experiencing significant performance degradation when running tests with pytest-xdist in a Kubernetes environment compared to running them locally.
Environment Details
Local Machine:
Dedicated Machine on Kubernetes:
Despite having significantly more resources in Kubernetes, the test running time is much longer, and using --dist=load or --dist=worksteal causes failures.
I need help understanding why this performance degradation is happening and how to optimize pytest-xdist in Kubernetes.
The text was updated successfully, but these errors were encountered: