Reference: magma (GUC)#

The magma special configuration item is saved in the magma-site.xml file, which is located in the directory /usr/local/oushu/conf/.

The configuration takes effect in the following two ways:

  • initdb: It takes effect on initdb, and cannot be changed later.

  • restart: It takes effect on restart, and the changes will not be detected after start.

nbuffers#

The buffer number of buffer manager.

Value Range

Default

Set Classifications

int

10240

initdb

follower_nbuffers#

The buffer number of the follower’s buffer manager.

Value Range

Default

Set Classifications

int

10240

initdb

shared_buffer_size_per_table_per_range#

Ap L0 buffer size of per range per table.

Value Range

Default

Set Classifications

int

8388608

initdb

compact_trigger_ap_ratio_limit#

The threshold of triggering compact in MAGMAAP format.

Value Range

Default

Set Classifications

float

0.2

initdb,restart

compact_trigger_tp_ratio_limit#

The threshold of triggering compact in MAGMAAP catalog

Value Range

Default

Set Classifications

float

0.5

initdb,restart

compact_data_worker_limit_pernode#

The limit of running concurrent compact workers in one node.

Value Range

Default

Set Classifications

int

4

initdb, restart

compact_data_worker_limit_perrg#

The limit of running concurrent compact workers in one range group.

Value Range

Default

Set Classifications

int

1

initdb,restart

compact_cleanup_worker_limit_perrg#

The limit of runnings concurrent compact workers for cleaning up jobs in one range group.

Value Range

Default

Set Classifications

int

16

initdb,restart

compact_tablestats_queue_limit#

The limit of table-stats queue in compact.

Value Range

Default

Set Classifications

int

4096

initdb,restart

compact_tablestats_queue_timeout#

The timeout in milliseconds of push or pop operation of table-stats queue in compact.

Value Range

Default

Set Classifications

int

250

initdb

compact_collect_interval#

The interval in milliseconds of collecting dropped-tables in compact.

Value Range

Default

Set Classifications

int

10000

initdb,restart

compact_clear_interval#

The interval in milliseconds of clearing dropped-tables in compact.

Value Range

Default

Set Classifications

int

600000

initdb,restart

compact_sleep_interval_idle#

The sleep interval in milliseconds in compact when idle.

Value Range

Default

Set Classifications

int

500

initdb,restart

raft_election_timeout#

The timeout of raft election in second.

Value Range

Default

Set Classifications

int

120

initdb,restart

blacklist_log_threshold#

The maximum gap of an offline node measured by log size in MB behind its corresponding leaders before moving it into blacklist.

Value Range

Default

Set Classifications

int

81920

initdb,restart

rg_checkpoint_threshold#

The minimum size in KB of accumulated Raft log items should trigger checkpoint in one range group.

Value Range

Default

Set Classifications

int

262144

initdb,restart

raftlog_checkflush_num#

The minimum log numbber of accumulated Raft log items should trigger checkpoint in one range group.

Value Range

Default

Set Classifications

int

100000

initdb,restart

rpc_server_work_thread_num#

rpc server’s work thread nums.

Value Range

Default

Set Classifications

int

8

initdb,restart

metadata_cache_capacity#

the capacity of magma catalog’s cache

Value Range

Default

Set Classifications

int

4096

initdb

log_min_messages#

The message levels that are logged.

Value Range

Default

Set Classifications

string

warning

initdb,restart

create_index_sort_work_dir#

The directory used for magma create index external sort.

Value Range

Default

Set Classifications

string

/tmp

initdb,restart