github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/nebula/configs/nebula-storaged.conf.tpl (about) 1 ########## basics ########## 2 # Whether to run as a daemon process 3 --daemonize=true 4 # The file to host the process id 5 --pid_file=pids/nebula-storaged.pid 6 # Whether to use the configuration obtained from the configuration file 7 --local_config=true 8 9 ########## logging ########## 10 # The directory to host logging files 11 --log_dir=logs 12 # Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively 13 --minloglevel=0 14 # Verbose log level, 1, 2, 3, 4, the higher of the level, the more verbose of the logging 15 --v=0 16 # Maximum seconds to buffer the log messages 17 --logbufsecs=0 18 # Whether to redirect stdout and stderr to separate output files 19 --redirect_stdout=true 20 # Destination filename of stdout and stderr, which will also reside in log_dir. 21 --stdout_log_file=storaged-stdout.log 22 --stderr_log_file=storaged-stderr.log 23 # Copy log messages at or above this level to stderr in addition to logfiles. The numbers of severity levels INFO, WARNING, ERROR, and FATAL are 0, 1, 2, and 3, respectively. 24 --stderrthreshold=3 25 # Wether logging files' name contain time stamp. 26 --timestamp_in_logfile_name=true 27 28 ########## networking ########## 29 # Comma separated Meta server addresses 30 --meta_server_addrs=127.0.0.1:9559 31 # Local IP used to identify the nebula-storaged process. 32 # Change it to an address other than loopback if the service is distributed or 33 # will be accessed remotely. 34 --local_ip=127.0.0.1 35 # Storage daemon listening port 36 --port=9779 37 # HTTP service ip 38 --ws_ip=0.0.0.0 39 # HTTP service port 40 --ws_http_port=19779 41 # heartbeat with meta service 42 --heartbeat_interval_secs=10 43 44 ######### Raft ######### 45 # Raft election timeout 46 --raft_heartbeat_interval_secs=30 47 # RPC timeout for raft client (ms) 48 --raft_rpc_timeout_ms=500 49 # recycle Raft WAL 50 --wal_ttl=14400 51 # whether send raft snapshot by files via http 52 --snapshot_send_files=true 53 54 ########## Disk ########## 55 # Root data path. Split by comma. e.g. --data_path=/disk1/path1/,/disk2/path2/ 56 # One path per Rocksdb instance. 57 --data_path=data/storage 58 59 # Minimum reserved bytes of each data path 60 --minimum_reserved_bytes=268435456 61 62 # The default reserved bytes for one batch operation 63 --rocksdb_batch_size=4096 64 # The default block cache size used in BlockBasedTable. 65 # The unit is MB. 66 --rocksdb_block_cache=4 67 # Disable page cache to better control memory used by rocksdb. 68 # Caution: Make sure to allocate enough block cache if disabling page cache! 69 --disable_page_cache=false 70 # The type of storage engine, rocksdb, memory, etc. 71 --engine_type=rocksdb 72 73 # Compression algorithm, options: no,snappy,lz4,lz4hc,zlib,bzip2,zstd 74 # For the sake of binary compatibility, the default value is snappy. 75 # Recommend to use: 76 # * lz4 to gain more CPU performance, with the same compression ratio with snappy 77 # * zstd to occupy less disk space 78 # * lz4hc for the read-heavy write-light scenario 79 --rocksdb_compression=lz4 80 81 # Set different compressions for different levels 82 # For example, if --rocksdb_compression is snappy, 83 # "no:no:lz4:lz4::zstd" is identical to "no:no:lz4:lz4:snappy:zstd:snappy" 84 # In order to disable compression for level 0/1, set it to "no:no" 85 --rocksdb_compression_per_level= 86 87 # Whether or not to enable rocksdb's statistics, disabled by default 88 --enable_rocksdb_statistics=false 89 90 # Statslevel used by rocksdb to collection statistics, optional values are 91 # * kExceptHistogramOrTimers, disable timer stats, and skip histogram stats 92 # * kExceptTimers, Skip timer stats 93 # * kExceptDetailedTimers, Collect all stats except time inside mutex lock AND time spent on compression. 94 # * kExceptTimeForMutex, Collect all stats except the counters requiring to get time inside the mutex lock. 95 # * kAll, Collect all stats 96 --rocksdb_stats_level=kExceptHistogramOrTimers 97 98 # Whether or not to enable rocksdb's prefix bloom filter, enabled by default. 99 --enable_rocksdb_prefix_filtering=true 100 # Whether or not to enable rocksdb's whole key bloom filter, disabled by default. 101 --enable_rocksdb_whole_key_filtering=false 102 103 ############## rocksdb Options ############## 104 # rocksdb DBOptions in json, each name and value of option is a string, given as "option_name":"option_value" separated by comma 105 --rocksdb_db_options={} 106 # rocksdb ColumnFamilyOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma 107 --rocksdb_column_family_options={"write_buffer_size":"67108864","max_write_buffer_number":"4","max_bytes_for_level_base":"268435456"} 108 # rocksdb BlockBasedTableOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma 109 --rocksdb_block_based_table_options={"block_size":"8192"} 110 111 ############## storage cache ############## 112 # Whether to enable storage cache 113 --enable_storage_cache=false 114 # Total capacity reserved for storage in memory cache in MB 115 --storage_cache_capacity=0 116 # Estimated number of cache entries on this storage node in base 2 logarithm. E.g., in case of 20, the estimated number of entries will be 2^20. 117 # A good estimate can be log2(#vertices on this storage node). The maximum allowed is 31. 118 --storage_cache_entries_power=20 119 120 # Whether to add vertex pool in cache. Only valid when storage cache is enabled. 121 --enable_vertex_pool=false 122 # Vertex pool size in MB 123 --vertex_pool_capacity=50 124 # TTL in seconds for vertex items in the cache 125 --vertex_item_ttl=300 126 127 # Whether to add negative pool in cache. Only valid when storage cache is enabled. 128 --enable_negative_pool=false 129 # Negative pool size in MB 130 --negative_pool_capacity=50 131 # TTL in seconds for negative items in the cache 132 --negative_item_ttl=300 133 134 ############### misc #################### 135 # Whether turn on query in multiple thread 136 --query_concurrently=true 137 # Whether remove outdated space data 138 --auto_remove_invalid_space=true 139 # Network IO threads number 140 --num_io_threads=16 141 # Worker threads number to handle request 142 --num_worker_threads=32 143 # Maximum subtasks to run admin jobs concurrently 144 --max_concurrent_subtasks=10 145 # The rate limit in bytes when leader synchronizes snapshot data 146 --snapshot_part_rate_limit=10485760 147 # The amount of data sent in each batch when leader synchronizes snapshot data 148 --snapshot_batch_size=1048576 149 # The rate limit in bytes when leader synchronizes rebuilding index 150 --rebuild_index_part_rate_limit=4194304 151 # The amount of data sent in each batch when leader synchronizes rebuilding index 152 --rebuild_index_batch_size=1048576 153 154 ############## non-volatile cache ############## 155 # Cache file location 156 --nv_cache_path=/tmp/cache 157 # Cache file size in MB 158 --nv_cache_size=0 159 # DRAM part size of non-volatile cache in MB 160 --nv_dram_size=50 161 # DRAM part bucket power. The value is a logarithm with a base of 2. Optional values are 0-32. 162 --nv_bucket_power=20 163 # DRAM part lock power. The value is a logarithm with a base of 2. The recommended value is max(1, nv_bucket_power - 10). 164 --nv_lock_power=10 165 166 ########## Black box ######## 167 # Enable black box 168 --ng_black_box_switch=true 169 # Black box log folder 170 --ng_black_box_home=black_box 171 # Black box dump metrics log period 172 --ng_black_box_dump_period_seconds=5 173 # Black box log files expire time 174 --ng_black_box_file_lifetime_seconds=1800 175 176 ########## memory tracker ########## 177 # trackable memory ratio (trackable_memory / (total_memory - untracked_reserved_memory) ) 178 --memory_tracker_limit_ratio=0.8 179 # untracked reserved memory in Mib 180 --memory_tracker_untracked_reserved_memory_mb=50 181 182 # enable log memory tracker stats periodically 183 --memory_tracker_detail_log=false 184 # log memory tacker stats interval in milliseconds 185 --memory_tracker_detail_log_interval_ms=60000 186 187 # enable memory background purge (if jemalloc is used) 188 --memory_purge_enabled=true 189 # memory background purge interval in seconds 190 --memory_purge_interval_seconds=10