1
1
//! Entrypoint for InfluxDB 3 Core Server
2
2
3
3
use anyhow:: { Context , bail} ;
4
- use datafusion_util:: config:: register_iox_object_store;
5
4
use futures:: { FutureExt , future:: FusedFuture , pin_mut} ;
6
5
use influxdb3_authz:: TokenAuthenticator ;
7
6
use influxdb3_cache:: {
@@ -546,8 +545,9 @@ pub async fn command(config: Config) -> Result<()> {
546
545
let f = SendPanicsToTracing :: new_with_metrics ( & metrics) ;
547
546
std:: mem:: forget ( f) ;
548
547
549
- // hmmm when you have extra executor, you need extra metrics! This is expected to be a
550
- // singleton
548
+ // When you have extra executor, you need separate metrics registry! It is not clear what
549
+ // the impact would be
550
+ // TODO: confirm this is not going to mess up downstream metrics consumers
551
551
let write_path_metrics = setup_metric_registry ( ) ;
552
552
553
553
// Install custom panic handler and forget about it.
@@ -646,6 +646,13 @@ pub async fn command(config: Config) -> Result<()> {
646
646
metric_registry : Arc :: clone ( & write_path_metrics) ,
647
647
// use as much memory for persistence, can this be UnboundedMemoryPool?
648
648
mem_pool_size : usize:: MAX ,
649
+ // These are new additions, just skimming through the code it does not look like we can
650
+ // achieve the same effect as having a separate executor. It looks like it's for "all"
651
+ // queries, it'd be nice to have a filter to say when the query matches this pattern
652
+ // apply these limits. If that's possible maybe we could avoid creating a separate
653
+ // executor.
654
+ per_query_mem_pool_config : PerQueryMemoryPoolConfig :: Disabled ,
655
+ heap_memory_limit : None ,
649
656
} ,
650
657
DedicatedExecutor :: new (
651
658
"datafusion_write_path" ,
@@ -656,9 +663,6 @@ pub async fn command(config: Config) -> Result<()> {
656
663
) ,
657
664
) ) ;
658
665
659
- let runtime_env = exec. new_context ( ) . inner ( ) . runtime_env ( ) ;
660
- register_iox_object_store ( runtime_env, parquet_store. id ( ) , Arc :: clone ( & object_store) ) ;
661
-
662
666
let trace_header_parser = TraceHeaderParser :: new ( )
663
667
. with_jaeger_trace_context_header_name (
664
668
config
0 commit comments