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

[Pulsar C++ Client] make pool connections configurable in perf tools #8913

Merged
merged 3 commits into from
Feb 15, 2021

Conversation

ltamber
Copy link
Contributor

@ltamber ltamber commented Dec 11, 2020

Motivation

make pool connections configurable in c++ performance test.

@ltamber ltamber changed the title make pool connections configurable in perf tools [ Pulsar C++ Client ] make pool connections configurable in perf tools Dec 11, 2020
@ltamber ltamber changed the title [ Pulsar C++ Client ] make pool connections configurable in perf tools [Pulsar C++ Client] make pool connections configurable in perf tools Dec 11, 2020
@ltamber
Copy link
Contributor Author

ltamber commented Dec 11, 2020

/pulsarbot run-failure-checks

@sijie sijie added component/c++ area/cli type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Dec 11, 2020
@sijie sijie added this to the 2.8.0 milestone Dec 11, 2020
@ltamber
Copy link
Contributor Author

ltamber commented Dec 14, 2020

/pulsarbot run-failure-checks

@BewareMyPower
Copy link
Contributor

You should use clang-format 5.0 to reformat your code.

diff --git a/pulsar-client-cpp/perf/PerfConsumer.cc b/pulsar-client-cpp/perf/PerfConsumer.cc
index 7f2deb78792..6717fdeb827 100644
--- a/pulsar-client-cpp/perf/PerfConsumer.cc
+++ b/pulsar-client-cpp/perf/PerfConsumer.cc
@@ -301,7 +301,7 @@ int main(int argc, char** argv) {
          "Number of listener threads")  //
 
         ("pool-connections", po::value<bool>(&args.poolConnections)->default_value(false),
-         "whether pool connections used")   //
+         "whether pool connections used")  //
 
         ("encryption-key-name,k", po::value<std::string>(&args.encKeyName)->default_value(""),
          "The private key name to decrypt payload")  //
diff --git a/pulsar-client-cpp/perf/PerfProducer.cc b/pulsar-client-cpp/perf/PerfProducer.cc
index ffc365dde7f..6e71ce78b1c 100644
--- a/pulsar-client-cpp/perf/PerfProducer.cc
+++ b/pulsar-client-cpp/perf/PerfProducer.cc
@@ -279,9 +279,8 @@ int main(int argc, char** argv) {
          po::value<long>(&args.batchingMaxPublishDelayMs)->default_value(3000),
          "Use only is batch-size > 1, Default is 3 seconds")  //
 
-        ("pool-connections",
-         po::value<bool>(&args.poolConnections)->default_value(false),
-         "whether pool connections used")   //
+        ("pool-connections", po::value<bool>(&args.poolConnections)->default_value(false),
+         "whether pool connections used")  //
 
         ("encryption-key-name,k", po::value<std::string>(&args.encKeyName)->default_value(""),
          "The public key name to encrypt payload")  //

@ltamber
Copy link
Contributor Author

ltamber commented Dec 16, 2020

@BewareMyPower done, PTAL

@ltamber
Copy link
Contributor Author

ltamber commented Dec 16, 2020

/pulsarbot run-failure-checks

1 similar comment
@ltamber
Copy link
Contributor Author

ltamber commented Dec 18, 2020

/pulsarbot run-failure-checks

@ltamber
Copy link
Contributor Author

ltamber commented Dec 31, 2020

/pulsarbot run-failure-checks

@ltamber
Copy link
Contributor Author

ltamber commented Jan 6, 2021

@sijie @BewareMyPower PTAL

@BewareMyPower
Copy link
Contributor

/pulsarbot run-failure-checks

3 similar comments
@BewareMyPower
Copy link
Contributor

/pulsarbot run-failure-checks

@BewareMyPower
Copy link
Contributor

/pulsarbot run-failure-checks

@BewareMyPower
Copy link
Contributor

/pulsarbot run-failure-checks

@sijie sijie merged commit 530c128 into apache:master Feb 15, 2021
@ltamber ltamber deleted the cpp_perf branch February 24, 2021 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants