-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added capability to choose Connection Pooling driver and specify it's configuration #265
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,10 +214,6 @@ resource "kubernetes_deployment_v1" "apiary_hms_readwrite" { | |
name = "DISALLOW_INCOMPATIBLE_COL_TYPE_CHANGES" | ||
value = var.disallow_incompatible_col_type_changes | ||
} | ||
env { | ||
name = "MYSQL_CONNECTION_POOL_SIZE" | ||
value = var.hms_rw_db_connection_pool_size | ||
} | ||
env { | ||
name = "HMS_AUTOGATHER_STATS" | ||
value = var.hms_autogather_stats | ||
|
@@ -226,6 +222,15 @@ resource "kubernetes_deployment_v1" "apiary_hms_readwrite" { | |
name = "LIMIT_PARTITION_REQUEST_NUMBER" | ||
value = var.hms_rw_request_partition_limit == "" ? "" : var.hms_rw_request_partition_limit | ||
} | ||
env { | ||
name = "DATANUCLEUS_CONNECTION_POOLING_TYPE" | ||
value = var.hms_rw_datanucleus_connection_pooling_type | ||
} | ||
env { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about it a lot. It can be but it should not be. It is way too important and can be missed. We need to add an explicit setting for the pool size. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this setting by the way is shared across all pool types as well, so it's safe to make it explicit. |
||
name = "DATANUCLEUS_CONNECTION_POOL_MAX_POOLSIZE" | ||
value = var.hms_rw_db_connection_pool_size | ||
} | ||
|
||
dynamic "env" { | ||
for_each = var.hms_additional_environment_variables | ||
|
||
|
@@ -235,6 +240,15 @@ resource "kubernetes_deployment_v1" "apiary_hms_readwrite" { | |
} | ||
} | ||
|
||
dynamic "env" { | ||
for_each = var.hms_rw_datanucleus_connection_pool_config | ||
|
||
content { | ||
name = env.key | ||
value = env.value | ||
} | ||
} | ||
|
||
liveness_probe { | ||
tcp_socket { | ||
port = var.hive_metastore_port | ||
|
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.
7.2.0