Skip to content

Instantly share code, notes, and snippets.

@mdcallag
Created October 20, 2020 23:16
Show Gist options
  • Save mdcallag/879a80fc454a05c4623f5a350fbf93ce to your computer and use it in GitHub Desktop.
Save mdcallag/879a80fc454a05c4623f5a350fbf93ce to your computer and use it in GitHub Desktop.
[mysqld]
sql_mode=no_engine_substitution,no_unsigned_subtraction
default_tmp_storage_engine=MyISAM
#query_cache_size=0
#query_cache_type=0
long_query_time=5
# skip_log_bin
max_binlog_size=128M
server_id=77
binlog_format=ROW
slow_query_log=1
# slow_query_log_file=/data/m/fbmy/slow.log
log_bin=/data/m/fbmy/binlogs/bl
tmpdir=/data/m/fbmy
datadir=/data/m/fbmy/data
performance_schema=1
ssl=0
default_authentication_plugin=mysql_native_password
character_set_server=latin1
collation-server=latin1_bin
eq_range_index_dive_limit=10
rocksdb
default-storage-engine=rocksdb
rocksdb_wal_dir=/data/m/fbmy/txlogs
transaction-isolation=READ-COMMITTED
sync_binlog=0
rocksdb_flush_log_at_trx_commit=2
# x1
rocksdb_block_cache_size=10G
# x2
rocksdb_max_background_jobs=2
# x3
#rocksdb_default_cf_options=level_compaction_dynamic_level_bytes=true
# x4b
#rocksdb_default_cf_options=level_compaction_dynamic_level_bytes=true;block_based_table_factory={cache_index_and_filter_blocks=1;filter_policy=bloomfilter:10:false;whole_key_filtering=1};optimize_filters_for_hits=true
# x5c
# rocksdb_default_cf_options=level_compaction_dynamic_level_bytes=true;block_based_table_factory={cache_index_and_filter_blocks=1;filter_policy=bloomfilter:10:false;whole_key_filtering=1};optimize_filters_for_hits=true;max_write_buffer_number=4;write_buffer_size=256m;max_bytes_for_level_base=1024m
# x6a
rocksdb_default_cf_options=level_compaction_dynamic_level_bytes=true;block_based_table_factory={cache_index_and_filter_blocks=1;filter_policy=bloomfilter:10:false;whole_key_filtering=1};optimize_filters_for_hits=true;max_write_buffer_number=4;write_buffer_size=256m;max_bytes_for_level_base=1024m;compression_per_level=kNoCompression
[mysqld_safe]
malloc-lib=/usr/lib/x86_64-linux-gnu/libjemalloc.so
@mdcallag
Copy link
Author

MyRocks 8.0.17 my.cnf.cx6a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment