Skip to content

[ML] Introduction disk usage parameter for data frames#522

Merged
valeriy42 merged 5 commits intoelastic:masterfrom
valeriy42:flag-disable-overflow
Jul 1, 2019
Merged

[ML] Introduction disk usage parameter for data frames#522
valeriy42 merged 5 commits intoelastic:masterfrom
valeriy42:flag-disable-overflow

Conversation

@valeriy42
Copy link
Copy Markdown
Contributor

This PR introduces an optional json specification parameter disk_usage_allowed, which is false by default. This parameter controls whether or not the system can overflow data frame to disk.

Relates elastic/ml-team#168

@valeriy42
Copy link
Copy Markdown
Contributor Author

retest

@valeriy42
Copy link
Copy Markdown
Contributor Author

recheck

Copy link
Copy Markdown
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from a small typo in a comment

if (memoryUsage <= memoryLimit) {
break;
}
// if we are not allowed to spill over to disk than only one partition is possible
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo than -> then?

@valeriy42
Copy link
Copy Markdown
Contributor Author

retest

2 similar comments
@valeriy42
Copy link
Copy Markdown
Contributor Author

retest

@droberts195
Copy link
Copy Markdown

retest

@droberts195
Copy link
Copy Markdown

On this one the Windows failure is not due to the CI infra:

CDataFrameAnalysisRunner.cc(67,13): error C2065: 'not': undeclared identifier
        if (not m_Spec.diskUsageAllowed()) {
            ^

We’ve used == false as an alternative to ! elsewhere.

@valeriy42 valeriy42 merged commit aa7aa04 into elastic:master Jul 1, 2019
@valeriy42 valeriy42 deleted the flag-disable-overflow branch July 1, 2019 06:22
valeriy42 added a commit to valeriy42/ml-cpp that referenced this pull request Jul 1, 2019
This PR introduces an optional json specification parameter disk_usage_allowed, which is false by default. This parameter controls whether or not the system can overflow data frame to disk.

Relates elastic/ml-team#168
valeriy42 added a commit that referenced this pull request Jul 1, 2019
This PR introduces an optional json specification parameter disk_usage_allowed, which is false by default. This parameter controls whether or not the system can overflow data frame to disk.

Relates elastic/ml-team#168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants