From ec17331571cf0f362550d4377379a509d90ba358 Mon Sep 17 00:00:00 2001 From: Milan Zazrivec Date: Wed, 6 Mar 2019 17:49:44 +0100 Subject: [PATCH] Add new options for migration throttling --- .../GeneralSettings/GeneralSettings.js | 99 ++++++++++++++++++- 1 file changed, 94 insertions(+), 5 deletions(-) diff --git a/app/javascript/react/screens/App/Settings/screens/GeneralSettings/GeneralSettings.js b/app/javascript/react/screens/App/Settings/screens/GeneralSettings/GeneralSettings.js index ffb7f70a6c..a60ce4710d 100644 --- a/app/javascript/react/screens/App/Settings/screens/GeneralSettings/GeneralSettings.js +++ b/app/javascript/react/screens/App/Settings/screens/GeneralSettings/GeneralSettings.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { reduxForm, Field } from 'redux-form'; -import { Form, Button, Spinner } from 'patternfly-react'; +import { Form, Button, Spinner, Switch } from 'patternfly-react'; import NumberInput from '../../../common/forms/NumberInput'; export class GeneralSettings extends React.Component { @@ -27,10 +27,15 @@ export class GeneralSettings extends React.Component { return (
-
+ +
+

{__('Concurrent Migrations')}

+
- {__('Maximum concurrent migrations per conversion host')} -
+ + {__('Maximum concurrent migrations per conversion host')} + +
+ + {__('Maximum concurrent migrations per provider')} + +
+ +
+
+
+

{__('Resource Utilization Limits for Migrations')}

+
+ + + {__('Limit resources allocated for migrations')} + +
+ +
+
+ + + {__('Max CPU utilization per conversion host')} + +
+
+ +
%
+
+
+
+ + + {__('Max memory utilization per conversion host')} + +
+
+ +
%
+
+
+
+ + {__('Total network throughput')} +
+
+ +
{__('MB/s')}
+
+
+
+ + {__('Total block storage I/O bandwidth')} +
+
+ +
{__('kB/s')}
+
+
+
+ -
{isSavingSettings && (