Skip to content

Commit e5d0e15

Browse files
committed
Adding README
1 parent 0b053c8 commit e5d0e15

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

e2e/README.md

+70-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,71 @@
1-
### introduction
1+
# Running Stress Tests
2+
3+
## 1. Login to the Test Machine
4+
- SSH into the **192.168.10.72** machine as `root` using the **us-east-2** key.
5+
- Navigate to the stress test directory:
6+
```sh
7+
cd raunak/sbcli-client-stress-node-affinity/e2e
8+
```
9+
10+
## 2. Export Required Variables
11+
Before running the stress test, set up the necessary environment variables:
12+
```sh
13+
export AWS_REGION=us-east-2
14+
export AWS_ACCESS_KEY_ID=AKIAYHRYFLI6WTW2HDA4
15+
export AWS_SECRET_ACCESS_KEY=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
16+
export SSH_USER=root
17+
export KEY_NAME=simplyblock-us-east-2.pem
18+
export BASTION_SERVER=192.168.10.61
19+
export API_BASE_URL=http://192.168.10.61/
20+
export SBCLI_CMD=sbcli-down
21+
export CLUSTER_SECRET=pPnq6A01X6sJPa0Hfo9X
22+
export CLUSTER_ID=4c9dd051-c9ba-4297-8c5c-c97652403041
23+
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/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"
24+
export CLIENT_IP=192.168.10.93
25+
```
26+
27+
**Note:** Modify the **CLUSTER_ID** and **CLUSTER_SECRET** by creating a setup on **192.168.10.61**.
28+
29+
## 3. Running the Stress Test
30+
Execute the stress test in the background using `nohup`:
31+
```sh
32+
nohup python3 stress.py --testname RandomFailoverTest --send_debug_notification True > output.log 2>&1 &
33+
```
34+
35+
## 4. Uploading Logs to MinIO
36+
Once the test is completed, export the following variables before uploading logs:
37+
```sh
38+
export MINIO_ACCESS_KEY="KxtpwblgG3AFDYJkyg8i"
39+
export MINIO_SECRET_KEY="Yae4q5wJU9ZBzJhdsUGzu9wWqON8o0ERU7nGbJER"
40+
export BASTION_IP="192.168.10.61"
41+
export MNODES="192.168.10.61"
42+
export STORAGE_PRIVATE_IPS="192.168.10.62 192.168.10.63 192.168.10.64"
43+
export SEC_STORAGE_PRIVATE_IPS="192.168.10.65"
44+
export GITHUB_RUN_ID=07-03-2025-RandomOutage-FIOInterrupt-GCImage-sbcli-down
45+
```
46+
47+
- **`GITHUB_RUN_ID`**: This can be set to the **directory name** you want to store logs in MinIO.
48+
- If **not provided**, it will default to **today’s date**.
49+
50+
Run the log upload script:
51+
```sh
52+
python3 logs/upload_logs_to_miniio.py
53+
```
54+
55+
## 5. Downloading Logs from MinIO
56+
To download logs, export MinIO credentials:
57+
```sh
58+
export MINIO_ACCESS_KEY="KxtpwblgG3AFDYJkyg8i"
59+
export MINIO_SECRET_KEY="Yae4q5wJU9ZBzJhdsUGzu9wWqON8o0ERU7nGbJER"
60+
```
61+
62+
Then navigate to the directory where you want to download the logs and run:
63+
```sh
64+
python3 download_logs_from_minio.py "e2e-run-logs/<Folder to download>/"
65+
```
66+
67+
## 6. Additional Resources
68+
- **All log-related scripts** are available here:
69+
[GitHub Logs Directory](https://github.com/simplyblock-io/sbcli/tree/main/e2e/logs)
70+
- For **E2E testing**, GitHub Actions can be used directly.
271

0 commit comments

Comments
 (0)