Skip to content

Commit

Permalink
Overlord incremental select worker strategy; web-console
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmatyszewski committed Sep 8, 2023
1 parent d5ab062 commit 2dd0e11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export const OVERLORD_DYNAMIC_CONFIG_FIELDS: Field<OverlordDynamicConfig>[] = [
'equalDistributionWithCategorySpec',
'fillCapacity',
'fillCapacityWithCategorySpec',
'fillIncrementally',
'fillIncrementallyWithCategorySpec',
],
},

Expand All @@ -82,6 +84,7 @@ export const OVERLORD_DYNAMIC_CONFIG_FIELDS: Field<OverlordDynamicConfig>[] = [
deepGet(c, 'selectStrategy.type') ?? 'equalDistribution',
'equalDistribution',
'fillCapacity',
'fillIncrementally',
),
info: (
<>
Expand All @@ -104,6 +107,7 @@ export const OVERLORD_DYNAMIC_CONFIG_FIELDS: Field<OverlordDynamicConfig>[] = [
deepGet(c, 'selectStrategy.type') ?? 'equalDistribution',
'equalDistribution',
'fillCapacity',
'fillIncrementally',
),
},

Expand All @@ -117,6 +121,7 @@ export const OVERLORD_DYNAMIC_CONFIG_FIELDS: Field<OverlordDynamicConfig>[] = [
deepGet(c, 'selectStrategy.type'),
'equalDistributionWithCategorySpec',
'fillCapacityWithCategorySpec',
'fillIncrementallyWithCategorySpec',
),
info: (
<>
Expand All @@ -143,6 +148,7 @@ export const OVERLORD_DYNAMIC_CONFIG_FIELDS: Field<OverlordDynamicConfig>[] = [
deepGet(c, 'selectStrategy.type'),
'equalDistributionWithCategorySpec',
'fillCapacityWithCategorySpec',
'fillIncrementallyWithCategorySpec',
),
},

Expand All @@ -160,7 +166,7 @@ export const OVERLORD_DYNAMIC_CONFIG_FIELDS: Field<OverlordDynamicConfig>[] = [
label: 'Auto scaler type',
type: 'string',
suggestions: [undefined, 'ec2', 'gce'],
defined: c => oneOf(deepGet(c, 'selectStrategy.type'), 'fillCapacity', 'javascript'),
defined: c => oneOf(deepGet(c, 'selectStrategy.type'), 'fillCapacity', 'fillIncrementally', 'javascript'),
},
{
name: 'autoScaler.minNumWorkers',
Expand Down
1 change: 1 addition & 0 deletions website/.spelling
Original file line number Diff line number Diff line change
Expand Up @@ -2000,6 +2000,7 @@ extractionFn
filename
file.encoding
fillCapacity
fillIncrementally
first_location
floatMax
floatAny
Expand Down

0 comments on commit 2dd0e11

Please sign in to comment.