-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add instructions on how to run SLO locally
See slo-workload/DEV.md
- Loading branch information
Alexey Zorkaltsev
committed
Feb 26, 2024
1 parent
7cfdeb4
commit 76d030b
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# SLO development guide | ||
|
||
## Local testing | ||
|
||
### Start local environment | ||
|
||
In the [slo-tests](https://github.com/ydb-platform/slo-tests) project | ||
in the _playground_ folder | ||
|
||
`docker compose up -d` | ||
|
||
### Check everything in the browser | ||
|
||
In the browser, open | ||
|
||
* [Grafana](http://localhost:3000/) | ||
|
||
* [YDB](http://localhost:8765/) (Check SLO dashboard) | ||
|
||
### Configure local console to run SLO tests | ||
|
||
In the [ydb-nodejs-sdk](https://github.com/ydb-platform/ydb-nodejs-sdk) project | ||
in the _slo-workload_ folder | ||
|
||
`npm i` | ||
|
||
`set YDB_ANONYMOUS_CREDENTIALS=1` | ||
|
||
`set YDB_SSL_ROOT_CERTIFICATES_FILE=../../slo-tests/playground/data/ydb_certs/ca.pem` | ||
|
||
### Create the test database | ||
|
||
`npx ts-node src/index.ts create grpcs://localhost:2135 local` | ||
|
||
### Run the test - for 5 min | ||
|
||
`npx ts-node src/index.ts run grpcs://localhost:2135 local` | ||
|
||
### Clean the baseClean the base | ||
|
||
`npx ts-node src/index.ts cleanup grpcs://localhost:2135 local` | ||
|
||
### What to do in case of problems | ||
|
||
* Restart the environment | ||
|
||
`docker compose down` | ||
|
||
`docker compose up -d` | ||
|
||
* Repeat the tests several times. There are floating errors because the tests | ||
are integration tests. So the picture may vary from one run to another |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters