[01/11] ignite git commit: IGNITE-6030 Allow enabling persistence per data region

2017-10-20 Thread agoncharuk
Repository: ignite
Updated Branches:
  refs/heads/ignite-2.3 008d87057 -> 745677631


http://git-wip-us.apache.org/repos/asf/ignite/blob/74567763/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
--
diff --git 
a/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
 
b/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
new file mode 100644
index 000..9c2dca1
--- /dev/null
+++ 
b/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
@@ -0,0 +1,255 @@
+//-
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+include /app/helpers/jade/mixins
+
+-var form = 'dataStorageConfiguration'
+-var model = 'backupItem.dataStorageConfiguration'
+-var dfltRegionModel = model + '.defaultDataRegionConfiguration'
+-var dataRegionConfigurations = model + '.dataRegionConfigurations'
+
+.panel.panel-default(ng-show='$ctrl.available("2.3.0")' ng-form=form 
novalidate)
+.panel-heading(bs-collapse-toggle ng-click=`ui.loadPanel('${form}')`)
+ignite-form-panel-chevron
+label Data storage configuration
+ignite-form-field-tooltip.tipLabel
+| Page memory is a manageable off-heap based memory architecture 
that is split into pages of fixed size#[br]
+| 
#[a(href="https://apacheignite.readme.io/docs/distributed-persistent-store; 
target="_blank") More info]
+ignite-form-revert
+.panel-collapse(role='tabpanel' bs-collapse-target id=`${form}`)
+.panel-body(ng-if=`$ctrl.available("2.3.0") && 
ui.isPanelLoaded('${form}')`)
+.col-sm-6
+.settings-row
++number-min-max('Page size:', model + '.pageSize', 
'"DataStorageConfigurationPageSize"',
+'true', '2048', '1024', '16384', 'Every memory region is 
split on pages of fixed size')
+.settings-row
++number('Concurrency level:', model + '.concurrencyLevel', 
'"DataStorageConfigurationConcurrencyLevel"',
+'true', 'availableProcessors', '2', 'The number of 
concurrent segments in Ignite internal page mapping tables')
+.settings-row
++ignite-form-group
+ignite-form-field-label
+| System region
+ignite-form-group-tooltip
+| System region properties
+.group-content
+.details-row
++number('Initial size:', model + 
'.systemRegionInitialSize', '"DataStorageSystemRegionInitialSize"',
+'true', '41943040', '10485760', 'Initial size 
of a data region reserved for system cache')
+.details-row
++number('Maximum size:', model + 
'.systemRegionMaxSize', '"DataStorageSystemRegionMaxSize"',
+'true', '104857600', '10485760', 'Maximum data 
region size reserved for system cache')
+.settings-row
++ignite-form-group
+ignite-form-field-label
+| Data regions
+ignite-form-group-tooltip
+| Data region configurations
+.group-content
+.details-row
++ignite-form-group
+ignite-form-field-label
+| Default data region
+ignite-form-group-tooltip
+| Default data region properties
+.group-content
+.details-row
++text('Name:', dfltRegionModel + 
'.name', '"DfltRegionName" + $index', 'false', 'default', 'Default data region 
name')
+.details-row
++number('Initial 

[01/11] ignite git commit: IGNITE-6030 Allow enabling persistence per data region

2017-10-20 Thread agoncharuk
Repository: ignite
Updated Branches:
  refs/heads/master 173ecef0f -> ec41370c4


http://git-wip-us.apache.org/repos/asf/ignite/blob/ec41370c/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
--
diff --git 
a/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
 
b/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
new file mode 100644
index 000..9c2dca1
--- /dev/null
+++ 
b/modules/web-console/frontend/app/modules/states/configuration/clusters/data-storage.pug
@@ -0,0 +1,255 @@
+//-
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+include /app/helpers/jade/mixins
+
+-var form = 'dataStorageConfiguration'
+-var model = 'backupItem.dataStorageConfiguration'
+-var dfltRegionModel = model + '.defaultDataRegionConfiguration'
+-var dataRegionConfigurations = model + '.dataRegionConfigurations'
+
+.panel.panel-default(ng-show='$ctrl.available("2.3.0")' ng-form=form 
novalidate)
+.panel-heading(bs-collapse-toggle ng-click=`ui.loadPanel('${form}')`)
+ignite-form-panel-chevron
+label Data storage configuration
+ignite-form-field-tooltip.tipLabel
+| Page memory is a manageable off-heap based memory architecture 
that is split into pages of fixed size#[br]
+| 
#[a(href="https://apacheignite.readme.io/docs/distributed-persistent-store; 
target="_blank") More info]
+ignite-form-revert
+.panel-collapse(role='tabpanel' bs-collapse-target id=`${form}`)
+.panel-body(ng-if=`$ctrl.available("2.3.0") && 
ui.isPanelLoaded('${form}')`)
+.col-sm-6
+.settings-row
++number-min-max('Page size:', model + '.pageSize', 
'"DataStorageConfigurationPageSize"',
+'true', '2048', '1024', '16384', 'Every memory region is 
split on pages of fixed size')
+.settings-row
++number('Concurrency level:', model + '.concurrencyLevel', 
'"DataStorageConfigurationConcurrencyLevel"',
+'true', 'availableProcessors', '2', 'The number of 
concurrent segments in Ignite internal page mapping tables')
+.settings-row
++ignite-form-group
+ignite-form-field-label
+| System region
+ignite-form-group-tooltip
+| System region properties
+.group-content
+.details-row
++number('Initial size:', model + 
'.systemRegionInitialSize', '"DataStorageSystemRegionInitialSize"',
+'true', '41943040', '10485760', 'Initial size 
of a data region reserved for system cache')
+.details-row
++number('Maximum size:', model + 
'.systemRegionMaxSize', '"DataStorageSystemRegionMaxSize"',
+'true', '104857600', '10485760', 'Maximum data 
region size reserved for system cache')
+.settings-row
++ignite-form-group
+ignite-form-field-label
+| Data regions
+ignite-form-group-tooltip
+| Data region configurations
+.group-content
+.details-row
++ignite-form-group
+ignite-form-field-label
+| Default data region
+ignite-form-group-tooltip
+| Default data region properties
+.group-content
+.details-row
++text('Name:', dfltRegionModel + 
'.name', '"DfltRegionName" + $index', 'false', 'default', 'Default data region 
name')
+.details-row
++number('Initial size:',