File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1858,6 +1858,10 @@ message TSchemeShardConfig {
1858
1858
1859
1859
// number of shards per table
1860
1860
optional uint32 MaxCdcInitialScanShardsInFlight = 5 [default = 32 ];
1861
+
1862
+ // number of shards per table
1863
+ // 0 means default - NKikimrIndexBuilder.TIndexBuildSettings.max_shards_in_flight
1864
+ optional uint32 MaxRestoreBuildIndexShardsInFlight = 6 [default = 1000 ];
1861
1865
}
1862
1866
1863
1867
message TCompactionConfig {
Original file line number Diff line number Diff line change @@ -1397,7 +1397,7 @@ NKikimrResourceBroker::TResourceBrokerConfig MakeDefaultConfig()
1397
1397
queue = config.AddQueues ();
1398
1398
queue->SetName (" queue_restore" );
1399
1399
queue->SetWeight (100 );
1400
- queue->MutableLimit ()->SetCpu (2 );
1400
+ queue->MutableLimit ()->SetCpu (10 );
1401
1401
1402
1402
queue = config.AddQueues ();
1403
1403
queue->SetName (NLocalDb::KqpResourceManagerQueue);
Original file line number Diff line number Diff line change @@ -4662,6 +4662,7 @@ void TSchemeShard::OnActivateExecutor(const TActorContext &ctx) {
4662
4662
ConfigureStatsBatching (appData->SchemeShardConfig , ctx);
4663
4663
ConfigureStatsOperations (appData->SchemeShardConfig , ctx);
4664
4664
MaxCdcInitialScanShardsInFlight = appData->SchemeShardConfig .GetMaxCdcInitialScanShardsInFlight ();
4665
+ MaxRestoreBuildIndexShardsInFlight = appData->SchemeShardConfig .GetMaxRestoreBuildIndexShardsInFlight ();
4665
4666
4666
4667
ConfigureBackgroundCleaningQueue (appData->BackgroundCleaningConfig , ctx);
4667
4668
ConfigureDataErasureManager (appData->DataErasureConfig );
@@ -7235,6 +7236,7 @@ void TSchemeShard::ApplyConsoleConfigs(const NKikimrConfig::TAppConfig& appConfi
7235
7236
ConfigureStatsBatching (schemeShardConfig, ctx);
7236
7237
ConfigureStatsOperations (schemeShardConfig, ctx);
7237
7238
MaxCdcInitialScanShardsInFlight = schemeShardConfig.GetMaxCdcInitialScanShardsInFlight ();
7239
+ MaxRestoreBuildIndexShardsInFlight = schemeShardConfig.GetMaxRestoreBuildIndexShardsInFlight ();
7238
7240
}
7239
7241
7240
7242
if (appConfig.HasTableProfilesConfig ()) {
Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ class TSchemeShard
359
359
TActorId TabletMigrator;
360
360
361
361
ui32 MaxCdcInitialScanShardsInFlight = 10 ;
362
+ ui32 MaxRestoreBuildIndexShardsInFlight = 0 ;
362
363
363
364
TDuration StatsMaxExecuteTime;
364
365
TDuration StatsBatchTimeout;
Original file line number Diff line number Diff line change @@ -207,6 +207,9 @@ THolder<TEvIndexBuilder::TEvCreateRequest> BuildIndexPropose(
207
207
208
208
const TPath dstPath = TPath::Init (item.DstPathId , ss);
209
209
settings.set_source_path (dstPath.PathString ());
210
+ if (ss->MaxRestoreBuildIndexShardsInFlight ) {
211
+ settings.set_max_shards_in_flight (ss->MaxRestoreBuildIndexShardsInFlight );
212
+ }
210
213
211
214
Y_ABORT_UNLESS (item.NextIndexIdx < item.Scheme .indexes_size ());
212
215
settings.mutable_index ()->CopyFrom (item.Scheme .indexes (item.NextIndexIdx ));
You can’t perform that action at this time.
0 commit comments