Skip to content

Commit

Permalink
Bumping up default max glue connections from 5 to 30.
Browse files Browse the repository at this point in the history
Reduces the number of pending http clients, i.e. jmx metric awshttpclientpoolpendingcount.
Thus reduces time out exceptions, and improves query speed,
when fetching huge amount of metadata and/or latency to glue is high.
  • Loading branch information
luozh-git authored and sopel39 committed Apr 11, 2022
1 parent 828a636 commit da54200
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/sphinx/connector/hive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ Property Name Description
where Trino is running, defaults to ``false``.

``hive.metastore.glue.max-connections`` Max number of concurrent connections to Glue,
defaults to ``5``.
defaults to ``30``.

``hive.metastore.glue.max-error-retries`` Maximum number of error retries for the Glue client,
defaults to ``10``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class GlueHiveMetastoreConfig
private Optional<String> glueEndpointUrl = Optional.empty();
private boolean pinGlueClientToCurrentRegion;
private int maxGlueErrorRetries = 10;
private int maxGlueConnections = 5;
private int maxGlueConnections = 30;
private Optional<String> defaultWarehouseDir = Optional.empty();
private Optional<String> iamRole = Optional.empty();
private Optional<String> externalId = Optional.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void testDefaults()
.setGlueRegion(null)
.setGlueEndpointUrl(null)
.setPinGlueClientToCurrentRegion(false)
.setMaxGlueConnections(5)
.setMaxGlueConnections(30)
.setMaxGlueErrorRetries(10)
.setDefaultWarehouseDir(null)
.setIamRole(null)
Expand Down

0 comments on commit da54200

Please sign in to comment.