我在storage中没有看到这两个配置,不过在graphd中找到了。
这两个配置的意义是?
下面分别是storage, graphd, meta的配置
storage1
########## basics ##########
# Whether to run as a daemon process
--daemonize=false
# The file to host the process id
--pid_file=/tmp/nebula-storaged.pid
########## logging ##########
# The directory to host logging files, which must already exists
--log_dir=/data/graphdb/storage/log
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=0
# Verbose log level, 1, 2, 3, 4, the higher of the level, the more verbose of the logging
--v=0
# Maximum seconds to buffer the log messages
--logbufsecs=0
# Whether to redirect stdout and stderr to separate output files
--redirect_stdout=true
# Destination filename of stdout and stderr, which will also reside in log_dir.
--stdout_log_file=storaged-stdout.log
--stderr_log_file=storaged-stderr.log
# 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.
--stderrthreshold=3
########## networking ##########
# Meta server address
--meta_server_addrs=xxxx:22343
# Local ip
--local_ip=xxxxx
# Storage daemon listening port
--port=xxx09
# HTTP service ip
--ws_ip=xxxxxx
# HTTP service port
--ws_http_port=12000
# HTTP2 service port
--ws_h2_port=12002
--ws_meta_http_port=11000
--ws_meta_h2_port=11002
--ws_storage_http_port=12000
--ws_storage_h2_port=12002
# heartbeat with meta service
--heartbeat_interval_secs=10
########## Disk ##########
# Root data path. split by comma. e.g. --data_path=/disk1/path1/,/disk2/path2/
# One path per Rocksdb instance.
--data_path=/data/graphdb/storage/1,/data/graphdb/storage/2,/data/graphdb/storage/3,/data/graphdb/storage/4,/data/graphdb/storage/5,/data/graphdb/storage/6,/data/graphdb/storage/7,/data/graphdb/storage/8,/data/graphdb/storage/9,/data/graphdb/storage/10,/data/graphdb/storage/11,/data/graphdb/storage/12,/data/graphdb/storage/13,/data/graphdb/storage/14,/data/graphdb/storage/15,/data/graphdb/storage/16,/data/graphdb/storage/17,/data/graphdb/storage/18,/data/graphdb/storage/19,/data/graphdb/storage/20,/data/graphdb/storage/21,/data/graphdb/storage/22,/data/graphdb/storage/23,/data/graphdb/storage/24,/data/graphdb/storage/25,/data/graphdb/storage/26,/data/graphdb/storage/27,/data/graphdb/storage/28,/data/graphdb/storage/29,/data/graphdb/storage/30,/data/graphdb/storage/31,/data/graphdb/storage/32,
######### Raft #########
# Raft election timeout
--raft_heartbeat_interval_secs=15
# storage not check leader
--check_leader=false
# RPC timeout for raft client (ms)
--raft_rpc_timeout_ms=15000
## recycle Raft WAL
--wal_ttl=604800
############## Rocksdb Options ##############
# The default reserved bytes for one batch operation
--rocksdb_batch_size=4096
# The default block cache size used in BlockBasedTable.
# The unit is MB.
--rocksdb_block_cache=8192
--rocksdb_disable_wal=false
--enable_partitioned_index_filter=true
--local_config=true
--num_compaction_threads=2
--rate_limit=64
--enable_rocksdb_prefix_filtering=true
--enable_rocksdb_whole_key_filtering=false
--rocksdb_filtering_prefix_length=16
# rocksdb DBOptions in json, each name and value of option is a string, given as "option_name":"option_value" separated by comma
--rocksdb_db_options={"max_background_jobs":"4","max_background_compactions":"4","max_subcompactions":"4","compaction_readahead_size":"32K","writable_file_max_buffer_size":"16M","allow_concurrent_memtable_write":"false","stats_dump_period_sec":"300","stats_persist_period_sec":"300","dump_malloc_stats":"true","table_cache_numshardbits":"12","atomic_flush":"false","write_thread_slow_yield_usec":"5","write_thread_max_yield_usec":"100","persist_stats_to_disk":"false","skip_log_error_on_recovery":"true","log_readahead_size":"4K","error_if_exists":"false","create_if_missing":"true","paranoid_checks":"false"}
# rocksdb ColumnFamilyOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma
--rocksdb_column_family_options={"prefix_extractor":"rocksdb.FixedPrefix.16","memtable_factory":"SkipListFactory","memtable_insert_with_hint_prefix_extractor":"rocksdb.FixedPrefix.16","compaction_style":"kCompactionStyleUniversal","num_levels":"7","compression_per_level":"kNoCompression:kNoCompression:kSnappyCompression:kSnappyCompression:kSnappyCompression:kSnappyCompression:kZSTD","memtable_whole_key_filtering":"false","write_buffer_size":"64M","max_write_buffer_number":"4","max_bytes_for_level_base":"256M","level0_file_num_compaction_trigger":"4","level0_slowdown_writes_trigger":"1K","level0_stop_writes_trigger":"4K", "soft_pending_compaction_bytes_limit":"4T", "hard_pending_compaction_bytes_limit":"16T","min_write_buffer_number_to_merge":"1","max_write_buffer_number_to_maintain":"1","compression":"kSnappyCompression","compaction_options_universal":"{stop_style=kCompactionStopStyleTotalSize;compression_size_percent=-1;allow_trivial_move=true;max_merge_width=4294967295;max_size_amplification_percent=50;min_merge_width=2;size_ratio=1;}","table_factory":"BlockBasedTable","bottommost_compression":"kZSTD","optimize_filters_for_hits":"false","level_compaction_dynamic_level_bytes":"true","periodic_compaction_seconds":"604800","disable_auto_compactions":"true","report_bg_io_stats":"true"}
# rocksdb BlockBasedTableOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma
--rocksdb_block_based_table_options={"block_size":"16K","block_restart_interval":"32","format_version":"5","enable_index_compression":"true","partition_filters":"true","whole_key_filtering":"false","data_block_index_type":"kDataBlockBinarySearch","index_type":"kTwoLevelIndexSearch","pin_l0_filter_and_index_blocks_in_cache":"true","block_restart_interval":"64","cache_index_and_filter_blocks_with_high_priority":"true","cache_index_and_filter_blocks":"true"}
############### misc ####################
--storage_http_thread_num=5
--storage_client_timeout_ms=600000
--enable_multi_versions=true
--num_io_threads=16
--num_worker_threads=16
--cluster_id_path=/data/graphdb/cluster.id
--gflags_mode_json=/data/graphdb/etc/gflags.json
############# edge samplings ##############
# --enable_reservoir_sampling=false
# --max_edge_returned_per_vertex=2147483647
--storage_remove_future_data=true
--enable_vertex_cache=true
--vertex_cache_num=67108864
--vertex_cache_ttl=3600
--vertex_cache_bucket_exp=12
--reader_handlers=36
--max_handlers_per_req=8
--min_vertices_per_bucket=64
--reserved_edges_one_vertex=4096
--max_edge_returned_per_vertex=262144
--slow_op_threshhold_ms=50
--enable_auto_repair=true
--max_scan_block_size=268435456
--conn_timeout_ms=15
graphd
########## basics ##########
# Whether to run as a daemon process
--daemonize=false
# The file to host the process id
--pid_file=/tmp/nebula-graphd.pid
########## logging ##########
# The directory to host logging files, which must already exists
--log_dir=/data/graphdb/log
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=0
# Verbose log level, 1, 2, 3, 4, the higher of the level, the more verbose of the logging
--v=0
# Maximum seconds to buffer the log messages
--logbufsecs=0
# Whether to redirect stdout and stderr to separate output files
--redirect_stdout=true
# Destination filename of stdout and stderr, which will also reside in log_dir.
--stdout_log_file=graphd-stdout.log
--stderr_log_file=graphd-stderr.log
# 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.
--stderrthreshold=3
########## networking ##########
# Meta Server Address
--meta_server_addrs=xxxxxxxxx:22343
# Local ip
--local_ip=xxxxxxxxxxxx
# Network device to listen on
--listen_netdev=any
# Port to listen on
--port=13708
# To turn on SO_REUSEPORT or not
--reuse_port=false
# Backlog of the listen socket, adjust this together with net.core.somaxconn
--listen_backlog=1024
# Seconds before the idle connections are closed, 0 for never closed
--client_idle_timeout_secs=0
# Seconds before the idle sessions are expired, 0 for no expiration
--session_idle_timeout_secs=0
# The number of threads to accept incoming connections
--num_accept_threads=1
# The number of networking IO threads, 0 for # of CPU cores
--num_netio_threads=36
# The number of threads to execute user queries, 0 for # of CPU cores
--num_worker_threads=36
# HTTP service ip
--ws_ip=xxxxxxx
# HTTP service port
--ws_http_port=13000
# HTTP2 service port
--ws_h2_port=13002
--ws_meta_http_port=11000
--ws_meta_h2_port=11002
--ws_storage_http_port=12000
--ws_storage_h2_port=12002
--heartbeat_interval_secs=10
--storage_client_timeout_ms=600000
########## authorization ##########
# Enable authorization
--enable_authorize=true
--whitelist=
--enable_local_authorize=false
--cluster_id_path=/data/graphdb/cluster.id
--gflags_mode_json=/data/graphdb/etc/gflags.json
--use_executor_access_cache=true
--conn_timeout_ms=15
meta
########## basics ##########
# Whether to run as a daemon process
--daemonize=false
# The file to host the process id
--pid_file=/tmp/nebula-metad.pid
########## logging ##########
# The directory to host logging files, which must already exists
--log_dir=/data/graphdb/meta/log
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=0
# Verbose log level, 1, 2, 3, 4, the higher of the level, the more verbose of the logging
--v=0
# Maximum seconds to buffer the log messages
--logbufsecs=0
# Whether to redirect stdout and stderr to separate output files
--redirect_stdout=true
# Destination filename of stdout and stderr, which will also reside in log_dir.
--stdout_log_file=metad-stdout.log
--stderr_log_file=metad-stderr.log
# 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.
--stderrthreshold=3
########## networking ##########
# Meta Server Address
--meta_server_addrs=xxxxxxxxx:22343
# Local ip
--local_ip=xxxxx
# Meta daemon listening port
--port=22343
# HTTP service ip
--ws_ip=xxxxxxxxx
# HTTP service port
--ws_http_port=11000
# HTTP2 service port
--ws_h2_port=11002
--ws_meta_http_port=11000
--ws_meta_h2_port=11002
--ws_storage_http_port=12000
--ws_storage_h2_port=12002
# heartbeat from storage with meta service
--heartbeat_interval_secs=10
########## storage ##########
# Root data path, here should be only single path for metad
--data_path=/data/graphdb/meta
############## rocksdb Options ##############
--rocksdb_disable_wal=false
--rocksdb_wal_sync=true
########## Misc #########
--meta_http_thread_num=256
--dispatch_thread_num=256
# The default number of parts when a space is created
--default_parts_num=512
# The default replica factor when a space is created
--default_replica_factor=1
--cluster_id_path=/data/graphdb/cluster.id
--gflags_mode_json=/data/graphdb/etc/gflags.json
--conn_timeout_ms=15
--storage_client_timeout_ms=600000
--task_concurrency=48