blob: c384d6197f91ddcdc964b6212f5a1d965b6d30aa [file] [log] [blame]
//-
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
include /app/configuration/mixins
-var form = 'dualMode'
-var model = 'backupItem'
panel-collapsible(
ng-form=form
on-open=`ui.loadPanel('${form}')`
ng-if='$ctrl.available(["1.0.0", "2.0.0"])'
)
panel-title Dual mode
panel-description
| IGFS supports dual-mode that allows it to work as either a standalone file system in Hadoop cluster, or work in tandem with HDFS, providing a primary caching layer for the secondary HDFS.
| As a caching layer it provides highly configurable read-through and write-through behaviour.
panel-content.pca-form-row(ng-if=`ui.isPanelLoaded('${form}')`)
.pca-form-column-6
.settings-row
+form-field__number({
label: 'Maximum pending puts size:',
model: `${model}.dualModeMaxPendingPutsSize`,
name: '"dualModeMaxPendingPutsSize"',
placeholder: '0',
min: 'Number.MIN_SAFE_INTEGER',
tip: 'Maximum amount of pending data read from the secondary file system and waiting to be written to data cache<br/>\
Zero or negative value stands for unlimited size'
})
.settings-row
+form-field__java-class({
label: 'Put executor service:',
model: `${model}.dualModePutExecutorService`,
name: '"dualModePutExecutorService"',
tip: 'DUAL mode put operation executor service'
})
.settings-row
+form-field__checkbox({
label: 'Put executor service shutdown',
model: `${model}.dualModePutExecutorServiceShutdown`,
name: '"dualModePutExecutorServiceShutdown"',
tip: 'DUAL mode put operation executor service shutdown flag'
})
.pca-form-column-6
+preview-xml-java(model, 'igfsDualMode')