File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -499,11 +499,17 @@ static TInterconnectSettings GetInterconnectSettings(const NKikimrConfig::TInter
499
499
return result;
500
500
}
501
501
502
+ bool NeedToUseAutoConfig (const NKikimrConfig::TActorSystemConfig& config) {
503
+ return config.GetUseAutoConfig ()
504
+ || config.HasNodeType ()
505
+ || config.HasCpuCount ();
506
+ }
502
507
503
508
void TBasicServicesInitializer::InitializeServices (NActors::TActorSystemSetup* setup,
504
509
const NKikimr::TAppData* appData) {
505
510
bool hasASCfg = Config.HasActorSystemConfig ();
506
- if (!hasASCfg || Config.GetActorSystemConfig ().GetUseAutoConfig ()) {
511
+ bool useAutoConfig = !hasASCfg || NeedToUseAutoConfig (Config.GetActorSystemConfig ());
512
+ if (useAutoConfig) {
507
513
bool isDynamicNode = appData->DynamicNameserviceConfig ->MinDynamicNodeId <= NodeId;
508
514
NAutoConfigInitializer::ApplyAutoConfig (Config.MutableActorSystemConfig (), isDynamicNode);
509
515
}
You can’t perform that action at this time.
0 commit comments