diff --git a/docs/NooBaaNonContainerized/ConfigFileCustomizations.md b/docs/NooBaaNonContainerized/ConfigFileCustomizations.md index 54598f4057..1a40dda54e 100644 --- a/docs/NooBaaNonContainerized/ConfigFileCustomizations.md +++ b/docs/NooBaaNonContainerized/ConfigFileCustomizations.md @@ -137,21 +137,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 9. Buffer size - -* Key: `NSFS_BUF_SIZE` -* Type: Number -* Default: 8MB = 8388608 bytes = 8 * 1024 * 1024 -* Description: Set Buffer size in order to increase performance of small/large objects requests, service restart required. -* Steps: - ``` - 1. Open /path/to/config_dir/config.json file. - 2. Set the config key in bytes- - Example: - "NSFS_BUF_SIZE": 10485760 - 3. systemctl restart noobaa - ``` - -### 10. Open read mode - +### 9. Open read mode - * Key: `NSFS_OPEN_READ_MODE` * Type: String * Default: 'r' @@ -164,7 +150,7 @@ The following list consists of supported optional developer customization - "NSFS_OPEN_READ_MODE": "rd" ``` -### 11. Trigger Check bucket boundaries - +### 10. Trigger Check bucket boundaries - * Key: `NSFS_CHECK_BUCKET_BOUNDARIES` * Type: Boolean * Default: true @@ -177,7 +163,7 @@ The following list consists of supported optional developer customization - "NSFS_CHECK_BUCKET_BOUNDARIES": false ``` -### 12. Trigger Fsync - +### 11. Trigger Fsync - * Key: `NSFS_TRIGGER_FSYNC` * Type: Boolean * Default: true @@ -190,7 +176,7 @@ The following list consists of supported optional developer customization - "NSFS_TRIGGER_FSYNC": false ``` -### 13. Whitelist IPs - +### 12. Whitelist IPs - * Key: `S3_SERVER_IP_WHITELIST` * Type:* Array * Default: false @@ -201,7 +187,7 @@ The following list consists of supported optional developer customization - sudo noobaa-cli whitelist --ips '["127.0.0.1", "192.000.10.000", "3002:0bd6:0000:0000:0000:ee00:0033:000"]' 2>/dev/null ``` -### 14. Config directory backend - +### 13. Config directory backend - * Key: `NSFS_NC_CONFIG_DIR_BACKEND` * Type: String * Default: '' @@ -214,7 +200,7 @@ The following list consists of supported optional developer customization - "NSFS_NC_CONFIG_DIR_BACKEND": "GPFS" ``` -### 15. Storage Backend - +### 14. Storage Backend - * Key: `NSFS_NC_STORAGE_BACKEND` * Type: String * Default: '' @@ -228,7 +214,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 16. Directories cache max directory size - +### 15. Directories cache max directory size - * Key: `NSFS_DIR_CACHE_MAX_DIR_SIZE` * Type: Number * Default: 67108864 // 64MB = 64 * 1024 * 1024 @@ -242,7 +228,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 17. Directories cache max total usage size - +### 16. Directories cache max total usage size - * Key: `NSFS_DIR_CACHE_MAX_TOTAL_SIZE` * Type: Number * Default: 268435456 // 256MB = 4 * config.NSFS_DIR_CACHE_MAX_DIR_SIZE = 4 * 1024 * 1024 @@ -257,7 +243,7 @@ The following list consists of supported optional developer customization - ``` -### 18. Disable random seeding - +### 17. Disable random seeding - * Key: `ENABLE_DEV_RANDOM_SEED` * Type: Boolean * Default: false @@ -271,7 +257,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 19. Set Master Keys Store type- +### 18. Set Master Keys Store type- * Key: `NC_MASTER_KEYS_STORE_TYPE` * Type: String * Default: 'file' @@ -285,7 +271,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 20. Set Master Keys File Location - +### 19. Set Master Keys File Location - * Key: `NC_MASTER_KEYS_FILE_LOCATION` * Type: String * Default: '/etc/noobaa.conf.d/master_keys.json' @@ -299,7 +285,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 21. Set Master Keys GET executable script - +### 20. Set Master Keys GET executable script - * Key: `NC_MASTER_KEYS_GET_EXECUTABLE` * Type: String * Default: undefined @@ -313,7 +299,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 22. Set Master Keys PUT executable script - +### 21. Set Master Keys PUT executable script - * Key: `NC_MASTER_KEYS_PUT_EXECUTABLE` * Type: String * Default: undefined @@ -327,7 +313,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa ``` -### 23. Set Virtual hosts - +### 22. Set Virtual hosts - * Key: `VIRTUAL_HOSTS` * Type: String * Default: '' @@ -341,7 +327,7 @@ The following list consists of supported optional developer customization - 3. systemctl restart noobaa_nsfs ``` -### 24. Disable schema check - +### 23. Disable schema check - * Key: `NC_DISABLE_SCHEMA_CHECK` * Type: Boolean * Default: false @@ -356,7 +342,7 @@ Warning: After setting this configuration, NooBaa will skip schema validations a ``` -### 25. Disable Read accessibility check - +### 24. Disable Read accessibility check - * Key: `NC_DISABLE_ACCESS_CHECK` * Type: Boolean * Default: false @@ -374,7 +360,7 @@ Warning: After setting this configuration, NooBaa will skip schema validations a "NC_DISABLE_ACCESS_CHECK": true ``` -### 26. Disable Read accessibility check on the Health CLI - +### 25. Disable Read accessibility check on the Health CLI - * Key: `NC_DISABLE_HEALTH_ACCESS_CHECK` * Type: Boolean * Default: false @@ -388,7 +374,7 @@ Warning: After setting this configuration, NooBaa will skip schema validations a "NC_DISABLE_HEALTH_ACCESS_CHECK": true ``` -### 27. Disable Read/Write POSIX mode bits check - +### 26. Disable Read/Write POSIX mode bits check - * Key: `NC_DISABLE_POSIX_MODE_ACCESS_CHECK` * Type: Boolean * Default: true @@ -407,7 +393,7 @@ Warning: After setting this configuration, NooBaa will skip schema validations a ``` -### 26. Set Endpoint process title - +### 27. Set Endpoint process title - * Key: `ENDPOINT_PROCESS_TITLE` * Type: String * Default: 'noobaa' @@ -422,7 +408,7 @@ Warning: After setting this configuration, NooBaa will skip schema validations a ## Config.json example ``` -### 27. GPFS down delay - +### 28. GPFS down delay - * Key: `GPFS_DOWN_DELAY` * Type: Number * Default: 1000 @@ -436,7 +422,7 @@ Warning: After setting this configuration, NooBaa will skip schema validations a 3. systemctl restart noobaa ``` -### 28. Syslog enable flag - +### 29. Syslog enable flag - * Key: `LOG_TO_SYSLOG_ENABLED` * Type: Boolean * Default: true @@ -450,7 +436,7 @@ Warning: After setting this configuration, NooBaa will skip schema validations a 3. systemctl restart noobaa ``` -### 29. Stderr enable flag - +### 30. Stderr enable flag - * Key: `LOG_TO_STDERR_ENABLED` * Type: Boolean * Default: false @@ -476,7 +462,6 @@ The following is an example of a config.json file - "UV_THREADPOOL_SIZE": 256, "GPFS_DL_PATH": "/usr/lpp/mmfs/lib/libgpfs.so", "NSFS_BUF_POOL_MEM_LIMIT": 4294967296, - "NSFS_BUF_SIZE": 16777216, "NSFS_OPEN_READ_MODE": "rd", "NSFS_CHECK_BUCKET_BOUNDARIES": false, "ALLOW_HTTP": true, diff --git a/src/server/system_services/schemas/nsfs_config_schema.js b/src/server/system_services/schemas/nsfs_config_schema.js index a0613685e8..cdce43a1e3 100644 --- a/src/server/system_services/schemas/nsfs_config_schema.js +++ b/src/server/system_services/schemas/nsfs_config_schema.js @@ -62,10 +62,6 @@ const nsfs_node_config_schema = { type: 'number', doc: 'number of nsfs buffer pool memory limit, suggested values 1-4GB, service restart required' }, - NSFS_BUF_SIZE: { - type: 'number', - doc: 'number of nsfs buffer size, service restart required' - }, NSFS_OPEN_READ_MODE: { type: 'string', doc: `describes the mode of open for read, use 'rd' for direct-io reads, hot reload` diff --git a/src/test/unit_tests/jest_tests/test_nc_nsfs_config_schema_validation.test.js b/src/test/unit_tests/jest_tests/test_nc_nsfs_config_schema_validation.test.js index 3e6916399c..af11ccc1a1 100644 --- a/src/test/unit_tests/jest_tests/test_nc_nsfs_config_schema_validation.test.js +++ b/src/test/unit_tests/jest_tests/test_nc_nsfs_config_schema_validation.test.js @@ -32,7 +32,6 @@ describe('schema validation NC NSFS config', () => { NSFS_NC_STORAGE_BACKEND: 'GPFS', NSFS_NC_CONFIG_DIR_BACKEND: 'GPFS', NSFS_BUF_POOL_MEM_LIMIT: 4294967296, - NSFS_BUF_SIZE: 16777216, NSFS_OPEN_READ_MODE: 'rd', NSFS_CHECK_BUCKET_BOUNDARIES: false, ALLOW_HTTP: true,