Skip to content

Commit 17bebf1

Browse files
author
Илья
committed
Added reset in RunCommand.php
1 parent e84451e commit 17bebf1

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

slo-workload/src/Commands/RunCommand.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,23 @@ public function execute(string $endpoint, string $path, array $options)
137137
pcntl_waitpid($pid, $status);
138138
unset($pIds[$pid]);
139139
}
140+
141+
$curl = curl_init();
142+
143+
curl_setopt_array($curl, array(
144+
CURLOPT_URL => $promPgw . '/metrics/job/workload-php/sdk/php/sdkVersion/' . Ydb::VERSION,
145+
CURLOPT_RETURNTRANSFER => true,
146+
CURLOPT_ENCODING => '',
147+
CURLOPT_MAXREDIRS => 10,
148+
CURLOPT_TIMEOUT => 0,
149+
CURLOPT_FOLLOWLOCATION => true,
150+
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
151+
CURLOPT_CUSTOMREQUEST => 'DELETE',
152+
));
153+
154+
$response = curl_exec($curl);
155+
156+
curl_close($curl);
140157
}
141158

142159
function forkJob(Closure $function, int $count): array

slo-workload/src/Defaults.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class Defaults
1111

1212
const GENERATOR_DATA_COUNT = 1000;
1313

14-
const RPS_PER_READ_FORK = 30;
15-
const RPS_PER_WRITE_FORK = 25;
14+
const RPS_PER_READ_FORK = 10;
15+
const RPS_PER_WRITE_FORK = 10;
1616

1717
const READ_RPS = 1000;
1818
const READ_TIMEOUT = 70; // milliseconds

0 commit comments

Comments
 (0)