Merge pull request #66095 from hanfei1991/hanfei/update-keeper-bench-example

update keeper bench example config file
This commit is contained in:
Han Fei 2024-07-04 21:21:24 +00:00 committed by GitHub
commit 447edfba44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 35 deletions

View File

@ -1311,9 +1311,9 @@ void removeRecursive(Coordination::ZooKeeper & zookeeper, const std::string & pa
while (!children_span.empty()) while (!children_span.empty())
{ {
Coordination::Requests ops; Coordination::Requests ops;
for (size_t i = 0; i < 1000 && !children.empty(); ++i) for (size_t i = 0; i < 1000 && !children_span.empty(); ++i)
{ {
removeRecursive(zookeeper, fs::path(path) / children.back()); removeRecursive(zookeeper, fs::path(path) / children_span.back());
ops.emplace_back(zkutil::makeRemoveRequest(fs::path(path) / children_span.back(), -1)); ops.emplace_back(zkutil::makeRemoveRequest(fs::path(path) / children_span.back(), -1));
children_span = children_span.subspan(0, children_span.size() - 1); children_span = children_span.subspan(0, children_span.size() - 1);
} }

View File

@ -18,45 +18,46 @@ connections:
host: "localhost:9181" host: "localhost:9181"
generator: setup:
setup: node:
name: "test3"
node:
name: "test_create"
node:
name: "test4"
node:
name: "test"
data: "somedata"
node: node:
name: "test3" repeat: 4
name:
random_string:
size: 15
data:
random_string:
size:
min_value: 10
max_value: 20
node: node:
name: "test_create" repeat: 2
node:
name: "test4"
node:
name: "test"
data: "somedata"
node:
repeat: 4
name:
random_string:
size: 15
data:
random_string:
size:
min_value: 10
max_value: 20
node: node:
repeat: 2 repeat: 2
node:
repeat: 2
name:
random_string:
size: 12
name: name:
random_string: random_string:
size: 15 size: 12
data: name:
random_string: random_string:
size: size: 15
min_value: 10 data:
max_value: 20 random_string:
node: size:
name: "test2" min_value: 10
data: "somedata" max_value: 20
node:
name: "test2"
data: "somedata"
generator:
requests: requests:
create: create:
path: "/test_create" path: "/test_create"