1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
VALID_OF_STORAGE_STRATEGY_CREAT = { "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "required": [ "name", "redundancy_strategy", "small_file_merge", "client_cache" ], "properties": { "name": { "type": "string", "pattern": "^(.*)$" }, "desc": { "type": "string", "pattern": "^(.*)$" }, "redundancy_strategy": { "type": "string", "enum": ["rep2", "ec"] }, "small_file_merge": { "type": "object", "properties": { "small_file_merge_enable": { "type": "string", "enum": ["enable", "disable"] }, "file_size": { "type": "integer", "minimum": 0, "maximum": 4096 } }, "required": ["small_file_merge_enable"] }, "client_cache": { "type": "object", "properties": { "metadata_cache": { "type": "string", "enum": ["enable", "disable"] }, "data_cache": { "type": "integer", "minimum": 0, "maximum": 2 }, "prefetch": { "type": "string", "enum": ["low", "middle", "high"] } }, "required": ["metadata_cache", "data_cache", "prefetch"] } } }
|