-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[pick][improvement](jdbc catalog) Optimize connection pool parameter settings #31177
Conversation
Thank you for your contribution to Apache Doris. |
ab9d5bc
to
470c806
Compare
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -307,6 +307,7 @@ class JdbcTableDescriptor : public TableDescriptor { | |||
public: | |||
JdbcTableDescriptor(const TTableDescriptor& tdesc); | |||
std::string debug_string() const override; | |||
int64_t jdbc_catalog_id() const { return _jdbc_catalog_id; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'jdbc_catalog_id' should be marked [[nodiscard]] [modernize-use-nodiscard]
int64_t jdbc_catalog_id() const { return _jdbc_catalog_id; } | |
[[nodiscard]] int64_t jdbc_catalog_id() const { return _jdbc_catalog_id; } |
@@ -315,8 +316,14 @@ | |||
const std::string& jdbc_table_name() const { return _jdbc_table_name; } | |||
const std::string& jdbc_user() const { return _jdbc_user; } | |||
const std::string& jdbc_passwd() const { return _jdbc_passwd; } | |||
int32_t connection_pool_min_size() const { return _connection_pool_min_size; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'connection_pool_min_size' should be marked [[nodiscard]] [modernize-use-nodiscard]
int32_t connection_pool_min_size() const { return _connection_pool_min_size; } | |
[[nodiscard]] int32_t connection_pool_min_size() const { return _connection_pool_min_size; } |
@@ -315,8 +316,14 @@ | |||
const std::string& jdbc_table_name() const { return _jdbc_table_name; } | |||
const std::string& jdbc_user() const { return _jdbc_user; } | |||
const std::string& jdbc_passwd() const { return _jdbc_passwd; } | |||
int32_t connection_pool_min_size() const { return _connection_pool_min_size; } | |||
int32_t connection_pool_max_size() const { return _connection_pool_max_size; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'connection_pool_max_size' should be marked [[nodiscard]] [modernize-use-nodiscard]
int32_t connection_pool_max_size() const { return _connection_pool_max_size; } | |
[[nodiscard]] int32_t connection_pool_max_size() const { return _connection_pool_max_size; } |
@@ -315,8 +316,14 @@ | |||
const std::string& jdbc_table_name() const { return _jdbc_table_name; } | |||
const std::string& jdbc_user() const { return _jdbc_user; } | |||
const std::string& jdbc_passwd() const { return _jdbc_passwd; } | |||
int32_t connection_pool_min_size() const { return _connection_pool_min_size; } | |||
int32_t connection_pool_max_size() const { return _connection_pool_max_size; } | |||
int32_t connection_pool_max_wait_time() const { return _connection_pool_max_wait_time; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'connection_pool_max_wait_time' should be marked [[nodiscard]] [modernize-use-nodiscard]
int32_t connection_pool_max_wait_time() const { return _connection_pool_max_wait_time; } | |
[[nodiscard]] int32_t connection_pool_max_wait_time() const { return _connection_pool_max_wait_time; } |
int32_t connection_pool_min_size() const { return _connection_pool_min_size; } | ||
int32_t connection_pool_max_size() const { return _connection_pool_max_size; } | ||
int32_t connection_pool_max_wait_time() const { return _connection_pool_max_wait_time; } | ||
int32_t connection_pool_max_life_time() const { return _connection_pool_max_life_time; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'connection_pool_max_life_time' should be marked [[nodiscard]] [modernize-use-nodiscard]
int32_t connection_pool_max_life_time() const { return _connection_pool_max_life_time; } | |
[[nodiscard]] int32_t connection_pool_max_life_time() const { return _connection_pool_max_life_time; } |
int32_t connection_pool_max_size() const { return _connection_pool_max_size; } | ||
int32_t connection_pool_max_wait_time() const { return _connection_pool_max_wait_time; } | ||
int32_t connection_pool_max_life_time() const { return _connection_pool_max_life_time; } | ||
bool connection_pool_keep_alive() const { return _connection_pool_keep_alive; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'connection_pool_keep_alive' should be marked [[nodiscard]] [modernize-use-nodiscard]
bool connection_pool_keep_alive() const { return _connection_pool_keep_alive; } | |
[[nodiscard]] bool connection_pool_keep_alive() const { return _connection_pool_keep_alive; } |
TPC-H: Total hot run time: 50161 ms
|
TPC-DS: Total hot run time: 237938 ms
|
ClickBench: Total hot run time: 30.7 s
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
TeamCity be ut coverage result: |
470c806
to
9f09db5
Compare
run buildall |
TPC-H: Total hot run time: 49947 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 240261 ms
|
ClickBench: Total hot run time: 30.35 s
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
Issue Number: close #xxx
pick from (#30588)
This PR makes the following changes to the connection pool of JDBC Catalog
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...