Skip to content

Commit eb07458

Browse files
committed
Stress testing directory added. Added migration command
1 parent c0f228c commit eb07458

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

psqlpy-stress/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ docker compose up
1212
```
1313

1414
2. Log in to IfluxDB. Default credential are `admin`:`admin`. Save token that will be shown to you after login.
15-
3. Create a bucket inside InfluxDB named `psqlpy-stress-bucket`.
15+
3. Create InfluxDB abstractions
16+
17+
- Create an InfluxDB organization named `influx_db_organization`.
18+
- Create a bucket inside InfluxDB named `psqlpy-stress-bucket`.
19+
20+
> You can create bucket and organization with different names.
21+
> But do not forget to replace those values within `psqlpy_stress.settings` file.
22+
1623
4. Connect InfluxDB to grafana.
1724
host: `http://influxdb:8086`
1825
database: `psqlpy-stress-bucket`
@@ -39,10 +46,11 @@ docker compose up
3946
alembic upgrade head
4047
```
4148

42-
8. Launch application via
49+
8. Past in your InfluxDB token into `psqlpy_stress.settings` file.
50+
9. Launch application via
4351

4452
```bash
4553
python -m psqlpy_stress.app
4654
```
4755

48-
9. You can start load testing drivers.
56+
10. You can start load testing drivers.

psqlpy-stress/psqlpy_stress/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Settings(BaseSettings):
1616
app_port: int = 8080
1717

1818
influx_db_address: str = "http://127.0.0.1:8086"
19-
influx_db_token: str = "J9A2-ZrrxJLA6pmOmCvJlqc913BbXFbJJA-HmG7cUm8epwHe32Yv-V_MtE2xTZT9j_hIy064ZwF6cZ30Hm2mQw=="
19+
influx_db_token: str = # past in your InfluxDB token here
2020
influx_db_organization: str = "psqlpy-stress-test"
2121
influx_db_bucket: str = "psqlpy-stress-bucket"
2222
influx_db_measurment: str = "stress-test-timings"

0 commit comments

Comments
 (0)