@@ -41,6 +41,8 @@ class ConnectConfig:
4141 profile : str | None = None
4242 debug_headers : bool | None = False
4343 rate_limit : int | None = None
44+ max_connections_per_pool : int | None = None
45+ max_connection_pools : int | None = None
4446
4547 @staticmethod
4648 def from_databricks_config (cfg : Config ) -> "ConnectConfig" :
@@ -57,6 +59,8 @@ def from_databricks_config(cfg: Config) -> "ConnectConfig":
5759 profile = cfg .profile ,
5860 debug_headers = cfg .debug_headers ,
5961 rate_limit = cfg .rate_limit ,
62+ max_connection_pools = cfg .max_connection_pools ,
63+ max_connections_per_pool = cfg .max_connections_per_pool ,
6064 )
6165
6266 @classmethod
@@ -136,7 +140,7 @@ def from_dict(cls, raw: dict) -> "MigrationConfig":
136140 groups = GroupsConfig .from_dict (raw .get ("groups" , {})),
137141 connect = ConnectConfig .from_dict (raw .get ("connect" , {})),
138142 instance_pool_id = raw .get ("instance_pool_id" , None ),
139- num_threads = raw .get ("num_threads" , 4 ),
143+ num_threads = raw .get ("num_threads" , 8 ),
140144 log_level = raw .get ("log_level" , "INFO" ),
141145 )
142146
@@ -170,6 +174,8 @@ def to_databricks_config(self) -> Config:
170174 profile = connect .profile ,
171175 debug_headers = connect .debug_headers ,
172176 rate_limit = connect .rate_limit ,
177+ max_connection_pools = connect .max_connection_pools ,
178+ max_connections_per_pool = connect .max_connections_per_pool ,
173179 product = "ucx" ,
174180 product_version = __version__ ,
175181 )
0 commit comments