File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
distribution/lambda/cdk/stacks
quickwit/quickwit-lambda/src/searcher Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ def __init__(
51
51
searcher_memory_size = searcher_memory_size ,
52
52
indexer_package_location = indexer_package_location ,
53
53
searcher_package_location = searcher_package_location ,
54
+ indexer_timeout = aws_cdk .Duration .minutes (10 ),
54
55
)
55
56
56
57
aws_cdk .CfnOutput (
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ def __init__(
13
13
index_config_bucket : str ,
14
14
index_config_key : str ,
15
15
memory_size : int ,
16
+ timeout : aws_cdk .Duration ,
16
17
environment : dict [str , str ],
17
18
asset_path : str ,
18
19
** kwargs ,
@@ -32,8 +33,7 @@ def __init__(
32
33
"QW_LAMBDA_INDEX_CONFIG_URI" : f"s3://{ index_config_bucket } /{ index_config_key } " ,
33
34
** environment ,
34
35
},
35
- # use a strict timeout and retry policy to avoid unexpected costs
36
- timeout = aws_cdk .Duration .minutes (1 ),
36
+ timeout = timeout ,
37
37
retry_attempts = 0 ,
38
38
reserved_concurrent_executions = 1 ,
39
39
memory_size = memory_size ,
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ def __init__(
32
32
indexer_package_location : str ,
33
33
indexer_memory_size : int = DEFAULT_LAMBDA_MEMORY_SIZE ,
34
34
indexer_environment : dict [str , str ] = {},
35
+ # small default timeout to avoid unexpected costs and hanging indexers
36
+ indexer_timeout : aws_cdk .Duration = aws_cdk .Duration .minutes (1 ),
35
37
searcher_memory_size : int = DEFAULT_LAMBDA_MEMORY_SIZE ,
36
38
searcher_environment : dict [str , str ] = {},
37
39
** kwargs ,
@@ -55,6 +57,7 @@ def __init__(
55
57
index_config_bucket = index_config_bucket ,
56
58
index_config_key = index_config_key ,
57
59
memory_size = indexer_memory_size ,
60
+ timeout = indexer_timeout ,
58
61
environment = indexer_environment ,
59
62
asset_path = indexer_package_location ,
60
63
)
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ async fn create_local_search_service(
48
48
let searcher_pool = SearcherPool :: default ( ) ;
49
49
let search_job_placer = SearchJobPlacer :: new ( searcher_pool. clone ( ) ) ;
50
50
let cluster_client = ClusterClient :: new ( search_job_placer) ;
51
+ // TODO configure split cache
51
52
let searcher_context = Arc :: new ( SearcherContext :: new ( searcher_config, None ) ) ;
52
53
let search_service = Arc :: new ( SearchServiceImpl :: new (
53
54
metastore,
You can’t perform that action at this time.
0 commit comments