Skip to content

Commit 8766abf

Browse files
authored
Initial commit: add CloudPilot project
1 parent f7c3b9b commit 8766abf

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

build/lib/cloudpilot/load_tester.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import time
33
import logging
44

5-
# Set up logging for demonstration purposes
65
logging.basicConfig(level=logging.INFO)
76

87

@@ -98,15 +97,3 @@ def stress_test(kubernetes_deployment, namespace="default", duration=30):
9897
return (
9998
f"Stress test on deployment '{kubernetes_deployment}' completed successfully."
10099
)
101-
102-
103-
# Example usage for testing the module
104-
if __name__ == "__main__":
105-
# Simulate a 10-second workload with a base intensity of 5 requests/sec during peak traffic.
106-
simulate_workload(duration=10, intensity=5, pattern="peak")
107-
108-
# Simulate a stress test on a deployment named 'your-deployment' for 15 seconds.
109-
result = stress_test(
110-
kubernetes_deployment="your-deployment", namespace="default", duration=15
111-
)
112-
logging.info(result)

0 commit comments

Comments
 (0)