Skip to content

Commit

Permalink
[ML] Functional tests - Reduce DFA job model memory (#69295)
Browse files Browse the repository at this point in the history
With the improvements in the model memory estimation for DFA jobs, the required memory limit could be reduced, which allows execution in a low-memory environment (like the 1GB ML node in a cloud trial).
  • Loading branch information
pheyos committed Jun 17, 2020
1 parent 55260dd commit f8ba929
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default ({ getService }: FtrProviderContext) => {
includes: [],
excludes: [],
},
model_memory_limit: '350mb',
model_memory_limit: '60mb',
};

const testJobConfigs: Array<DeepPartial<DataFrameAnalyticsConfig>> = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default ({ getService }: FtrProviderContext) => {
includes: [],
excludes: [],
},
model_memory_limit: '350mb',
model_memory_limit: '60mb',
},
{
id: `${jobId}_2`,
Expand All @@ -70,7 +70,7 @@ export default ({ getService }: FtrProviderContext) => {
includes: [],
excludes: [],
},
model_memory_limit: '350mb',
model_memory_limit: '60mb',
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ({ getService }: FtrProviderContext) {
},
dependentVariable: 'y',
trainingPercent: '20',
modelMemory: '200mb',
modelMemory: '60mb',
createIndexPattern: true,
expected: {
row: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function ({ getService }: FtrProviderContext) {
includes: [],
excludes: [],
},
model_memory_limit: '350mb',
model_memory_limit: '60mb',
allow_lazy_start: false,
},
},
Expand Down Expand Up @@ -83,7 +83,7 @@ export default function ({ getService }: FtrProviderContext) {
includes: [],
excludes: [],
},
model_memory_limit: '55mb',
model_memory_limit: '5mb',
},
},
{
Expand Down Expand Up @@ -115,7 +115,7 @@ export default function ({ getService }: FtrProviderContext) {
includes: [],
excludes: [],
},
model_memory_limit: '105mb',
model_memory_limit: '20mb',
},
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function ({ getService }: FtrProviderContext) {
get destinationIndex(): string {
return `user-${this.jobId}`;
},
modelMemory: '55mb',
modelMemory: '5mb',
createIndexPattern: true,
expected: {
row: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function ({ getService }: FtrProviderContext) {
},
dependentVariable: 'stab',
trainingPercent: '20',
modelMemory: '105mb',
modelMemory: '20mb',
createIndexPattern: true,
expected: {
row: {
Expand Down

0 comments on commit f8ba929

Please sign in to comment.