http://git-wip-us.apache.org/repos/asf/ignite/blob/c2c03a92/modules/web-console/frontend/app/modules/states/configuration/igfs/general.pug ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/app/modules/states/configuration/igfs/general.pug b/modules/web-console/frontend/app/modules/states/configuration/igfs/general.pug deleted file mode 100644 index b9eb8fc..0000000 --- a/modules/web-console/frontend/app/modules/states/configuration/igfs/general.pug +++ /dev/null @@ -1,72 +0,0 @@ -//- - 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 = 'general' --var model = 'backupItem' - -panel-collapsible(opened=`::true` ng-form=form) - panel-title General - panel-description - | General IGFS configuration. - a.link-success(href="https://apacheignite-fs.readme.io/docs/in-memory-file-system" target="_blank") More info - panel-content.pca-form-row - .pca-form-column-6.pc-form-grid-row - .pc-form-grid-col-60 - +sane-ignite-form-field-text({ - label: 'Name:', - model: `${model}.name`, - name: '"igfsName"', - placeholder: 'Input name', - required: true - })( - ignite-unique='$ctrl.igfss' - ignite-unique-property='name' - ignite-unique-skip=`["_id", ${model}]` - ) - +unique-feedback(`${model}.name`, 'IGFS name should be unique.') - .pc-form-grid-col-30 - +sane-ignite-form-field-dropdown({ - label: 'IGFS mode:', - model: `${model}.defaultMode`, - name: '"defaultMode"', - placeholder: '{{::$ctrl.IGFSs.defaultMode.default}}', - options: '{{::$ctrl.IGFSs.defaultMode.values}}', - tip: ` - Mode to specify how IGFS interacts with Hadoop file system - <ul> - <li>PRIMARY - in this mode IGFS will not delegate to secondary Hadoop file system and will cache all the files in memory only</li> - <li>PROXY - in this mode IGFS will not cache any files in memory and will only pass them through to secondary file system</li> - <li>DUAL_SYNC - in this mode IGFS will cache files locally and also <b>synchronously</b> write them through to secondary file system</li> - <li>DUAL_ASYNC - in this mode IGFS will cache files locally and also <b> asynchronously </b> write them through to secondary file system</li> - </ul> - ` - }) - .pc-form-grid-col-30 - +sane-ignite-form-field-number({ - label: 'Group size:', - model: `${model}.affinnityGroupSize`, - name: '"affinnityGroupSize"', - placeholder: '{{::$ctrl.IGFSs.affinnityGroupSize.default}}', - min: '{{::$ctrl.IGFSs.affinnityGroupSize.min}}', - tip: ` - Size of the group in blocks<br/> - Required for construction of affinity mapper in IGFS data cache - ` - }) - .pca-form-column-6 - +preview-xml-java(model, 'igfsGeneral')
http://git-wip-us.apache.org/repos/asf/ignite/blob/c2c03a92/modules/web-console/frontend/app/modules/states/configuration/igfs/ipc.pug ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/app/modules/states/configuration/igfs/ipc.pug b/modules/web-console/frontend/app/modules/states/configuration/igfs/ipc.pug deleted file mode 100644 index ef024b4..0000000 --- a/modules/web-console/frontend/app/modules/states/configuration/igfs/ipc.pug +++ /dev/null @@ -1,55 +0,0 @@ -//- - 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 = 'ipc' --var model = 'backupItem' - -panel-collapsible(ng-form=form on-open=`ui.loadPanel('${form}')`) - panel-title IPC - panel-description IGFS Inter-process communication properties. - panel-content.pca-form-row(ng-if=`ui.isPanelLoaded('${form}')`) - .pca-form-column-6.pc-form-grid-row - -var ipcEndpointConfiguration = `${model}.ipcEndpointConfiguration` - -var enabled = `${model}.ipcEndpointEnabled` - - .pc-form-grid-col-60 - +checkbox('Enabled', enabled, '"ipcEndpointEnabled"', 'IPC endpoint enabled flag') - .pc-form-grid-col-60 - +dropdown('Type:', `${ipcEndpointConfiguration}.type`, '"ipcEndpointConfigurationType"', enabled, 'TCP', - '[\ - {value: "SHMEM", label: "SHMEM"},\ - {value: "TCP", label: "TCP"}\ - ]', - 'IPC endpoint type\ - <ul>\ - <li>SHMEM - shared memory endpoint</li>\ - <li>TCP - TCP endpoint</li>\ - </ul>') - .pc-form-grid-col-30 - +text-ip-address('Host:', `${ipcEndpointConfiguration}.host`, '"ipcEndpointConfigurationHost"', enabled, '127.0.0.1', 'Host endpoint is bound to') - .pc-form-grid-col-30 - +number-min-max('Port:', `${ipcEndpointConfiguration}.port`, '"ipcEndpointConfigurationPort"', enabled, '10500', '1', '65535', 'Port endpoint is bound to') - .pc-form-grid-col-30 - +number('Memory size:', `${ipcEndpointConfiguration}.memorySize`, '"ipcEndpointConfigurationMemorySize"', enabled, '262144', '1', 'Shared memory size in bytes allocated for endpoint communication') - .pc-form-grid-col-30 - +number('Thread count:', `${ipcEndpointConfiguration}.threadCount`, '"ipcEndpointConfigurationThreadCount"', enabled, 'availableProcessors', '1', - 'Number of threads used by this endpoint to process incoming requests') - .pc-form-grid-col-60 - +text-enabled('Token directory:', `${ipcEndpointConfiguration}.tokenDirectoryPath`, '"ipcEndpointConfigurationTokenDirectoryPath"', enabled, 'false', 'ipc/shmem', 'Directory where shared memory tokens are stored') - .pca-form-column-6 - +preview-xml-java(model, 'igfsIPC') http://git-wip-us.apache.org/repos/asf/ignite/blob/c2c03a92/modules/web-console/frontend/app/modules/states/configuration/igfs/misc.pug ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/app/modules/states/configuration/igfs/misc.pug b/modules/web-console/frontend/app/modules/states/configuration/igfs/misc.pug deleted file mode 100644 index 9a39b3a..0000000 --- a/modules/web-console/frontend/app/modules/states/configuration/igfs/misc.pug +++ /dev/null @@ -1,110 +0,0 @@ -//- - 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 = 'misc' --var model = 'backupItem' --var pathModes = `${model}.pathModes` - -panel-collapsible(ng-form=form on-open=`ui.loadPanel('${form}')`) - panel-title Miscellaneous - panel-description Various miscellaneous IGFS settings. - panel-content.pca-form-row(ng-if=`ui.isPanelLoaded('${form}')`) - .pca-form-column-6.pc-form-grid-row - .pc-form-grid-col-60 - +number('Block size:', `${model}.blockSize`, '"blockSize"', 'true', '65536', '0', 'File data block size in bytes') - - //- Since ignite 2.0 - .pc-form-grid-col-60(ng-if='$ctrl.available("2.0.0")') - +number('Buffer size:', `${model}.streamBufferSize`, '"streamBufferSize"', 'true', '65536', '0', 'Read/write buffer size for IGFS stream operations in bytes') - - //- Removed in ignite 2.0 - .pc-form-grid-col-60(ng-if-start='$ctrl.available(["1.0.0", "2.0.0"])') - +number('Stream buffer size:', `${model}.streamBufferSize`, '"streamBufferSize"', 'true', '65536', '0', 'Read/write buffer size for IGFS stream operations in bytes') - .pc-form-grid-col-60(ng-if-end) - +number('Maximum space size:', `${model}.maxSpaceSize`, '"maxSpaceSize"', 'true', '0', '0', 'Maximum space available for data cache to store file system entries') - - .pc-form-grid-col-30 - +number('Maximum task range length:', `${model}.maximumTaskRangeLength`, '"maximumTaskRangeLength"', 'true', '0', '0', 'Maximum default range size of a file being split during IGFS task execution') - .pc-form-grid-col-30 - +number-min-max('Management port:', `${model}.managementPort`, '"managementPort"', 'true', '11400', '0', '65535', 'Port number for management endpoint') - .pc-form-grid-col-30 - +number('Per node batch size:', `${model}.perNodeBatchSize`, '"perNodeBatchSize"', 'true', '100', '0', 'Number of file blocks collected on local node before sending batch to remote node') - .pc-form-grid-col-30 - +number('Per node parallel batch count:', `${model}.perNodeParallelBatchCount`, '"perNodeParallelBatchCount"', 'true', '8', '0', 'Number of file block batches that can be concurrently sent to remote node') - .pc-form-grid-col-60 - +number('Prefetch blocks:', `${model}.prefetchBlocks`, '"prefetchBlocks"', 'true', '0', '0', 'Number of pre-fetched blocks if specific file chunk is requested') - .pc-form-grid-col-60 - +number('Sequential reads before prefetch:', `${model}.sequentialReadsBeforePrefetch`, '"sequentialReadsBeforePrefetch"', 'true', '0', '0', 'Amount of sequential block reads before prefetch is triggered') - - //- Removed in ignite 2.0 - .pc-form-grid-col-60(ng-if='$ctrl.available(["1.0.0", "2.0.0"])') - +number('Trash purge timeout:', `${model}.trashPurgeTimeout`, '"trashPurgeTimeout"', 'true', '1000', '0', 'Maximum timeout awaiting for trash purging in case data cache oversize is detected') - - .pc-form-grid-col-60 - +checkbox('Colocate metadata', `${model}.colocateMetadata`, '"colocateMetadata"', 'Whether to co-locate metadata on a single node') - .pc-form-grid-col-60 - +checkbox('Relaxed consistency', `${model}.relaxedConsistency`, '"relaxedConsistency"', - 'If value of this flag is <b>true</b>, IGFS will skip expensive consistency checks<br/>\ - It is recommended to set this flag to <b>false</b> if your application has conflicting\ - operations, or you do not know how exactly users will use your system') - - //- Since ignite 2.0 - .pc-form-grid-col-60(ng-if='$ctrl.available("2.0.0")') - +checkbox('Update file length on flush', model + '.updateFileLengthOnFlush', '"updateFileLengthOnFlush"', 'Update file length on flush flag') - - .pc-form-grid-col-60 - mixin igfs-misc-path-modes - .ignite-form-field - +ignite-form-field__label('Path modes:', '"pathModes"') - +tooltip(`Map of path prefixes to IGFS modes used for them`) - .ignite-form-field__control - -let items = pathModes - - list-editable(ng-model=items) - list-editable-item-view - | {{ $item.path + " [" + $item.mode + "]"}} - - list-editable-item-edit - - form = '$parent.form' - - .pc-form-grid-row - .pc-form-grid-col-30 - +ignite-form-field-text('Path:', '$item.path', '"path"', false, true, 'Enter path')(ignite-auto-focus) - .pc-form-grid-col-30 - +sane-ignite-form-field-dropdown({ - label: 'Mode:', - model: `$item.mode`, - name: '"mode"', - required: true, - placeholder: 'Choose igfs mode', - options: '{{::$ctrl.IGFSs.defaultMode.values}}' - })( - ng-model-options='{allowInvalid: true}' - ) - - list-editable-no-items - list-editable-add-item-button( - add-item=`$editLast((${items} = ${items} || []).push({}))` - label-single='path mode' - label-multiple='path modes' - ) - - +igfs-misc-path-modes - - .pca-form-column-6 - +preview-xml-java(model, 'igfsMisc') http://git-wip-us.apache.org/repos/asf/ignite/blob/c2c03a92/modules/web-console/frontend/app/modules/states/configuration/igfs/secondary.pug ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/app/modules/states/configuration/igfs/secondary.pug b/modules/web-console/frontend/app/modules/states/configuration/igfs/secondary.pug deleted file mode 100644 index 92c8210..0000000 --- a/modules/web-console/frontend/app/modules/states/configuration/igfs/secondary.pug +++ /dev/null @@ -1,55 +0,0 @@ -//- - 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 = 'secondaryFileSystem' --var model = 'backupItem' - -panel-collapsible(ng-form=form on-open=`ui.loadPanel('${form}')`) - panel-title Secondary file system - panel-description - | Secondary file system is provided for pass-through, write-through, and read-through purposes. - a.link-success(href="https://apacheignite-fs.readme.io/docs/secondary-file-system" target="_blank") More info - panel-content.pca-form-row(ng-if=`ui.isPanelLoaded('${form}')`) - .pca-form-column-6.pc-form-grid-row - -var enabled = `${model}.secondaryFileSystemEnabled` - -var secondaryFileSystem = `${model}.secondaryFileSystem` - - .pc-form-grid-col-60 - +sane-form-field-checkbox({ - label: 'Enabled', - name: '"secondaryFileSystemEnabled"', - model: enabled - })( - ng-model-options='{allowInvalid: true}' - ui-validate=`{ - requiredWhenIGFSProxyMode: '$ctrl.IGFSs.secondaryFileSystemEnabled.requiredWhenIGFSProxyMode(${model})', - requiredWhenPathModeProxyMode: '$ctrl.IGFSs.secondaryFileSystemEnabled.requiredWhenPathModeProxyMode(${model})' - }` - ui-validate-watch-collection=`"[${model}.defaultMode, ${model}.pathModes]"` - ui-validate-watch-object-equality='true' - ) - +form-field-feedback(null, 'requiredWhenIGFSProxyMode', 'Secondary file system should be configured for "PROXY" IGFS mode') - +form-field-feedback(null, 'requiredWhenPathModeProxyMode', 'Secondary file system should be configured for "PROXY" path mode') - .pc-form-grid-col-60 - +text-enabled('URI:', `${secondaryFileSystem}.uri`, '"hadoopURI"', enabled, 'false', 'hdfs://[namenodehost]:[port]/[path]', 'URI of file system') - .pc-form-grid-col-60 - +text-enabled('Config path:', `${secondaryFileSystem}.cfgPath`, '"cfgPath"', enabled, 'false', 'Path to additional config', 'Additional path to Hadoop configuration') - .pc-form-grid-col-60 - +text-enabled('User name:', `${secondaryFileSystem}.userName`, '"userName"', enabled, 'false', 'Input user name', 'User name') - .pca-form-column-6 - +preview-xml-java(model, 'igfsSecondFS')