Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLO testing #345

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/slo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: SLO
jobs:
test-slo:
if: github.event.pull_request.head.repo.full_name == 'ydb-platform/ydb-nodejs-sdk'
uses: ydb-platform/slo-tests/.github/workflows/slo.yml@main
uses: ydb-platform/slo-tests/.github/workflows/slo.yml@debug
secrets: inherit
with:
language_id: nodejs
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# !!! DO NOT APPROVE

This branch is purely for testing SLO by creating a PR to the main branch. That PR should NOT be merged.
There are no useful changes in it.

# Roadmap
You can take a look at our Roadmap for the near future [here](ROADMAP.md).

Dummy change 1
Dummy change 2
Dummy change 3
Dummy change 4

# How to use
## Install package from NPM
```bash
Expand Down
2 changes: 1 addition & 1 deletion slo-workload/src/metricsJob.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Executor from './utils/Executor'

export class MetricsJob {
private intervalId: NodeJS.Timer | undefined
private intervalId: NodeJS.Timeout | undefined
private endTime: number
private promise: Promise<void>

Expand Down
2 changes: 1 addition & 1 deletion slo-workload/src/utils/RateLimiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import NanoTimer from 'nanotimer'
export default class RateLimiter {
private delayMicroSec: number
private count: number = 0
private realRPSObserverId: NodeJS.Timer
private realRPSObserverId: NodeJS.Timeout
private returnerTimer: NanoTimer
private real: number = 0
private returner = () => {}
Expand Down
Loading