Aria System Variables
This page documents system variables related to the Aria storage engine. For options that are not system variables, see Aria Options.
See Server System Variables for instructions on setting system variables.
aria_block_size
aria_block_sizeDescription: Block size to be used for Aria index pages. Changing this requires dumping, deleting old tables and deleting all log files, and then restoring your Aria tables. If key lookups take too long (and one has to search roughly 8192/2 by default to find each key), can be made smaller, e.g.
4096.Command line:
--aria-block-size=#Scope: Global
Dynamic: No
Data Type:
numericDefault Value:
8192Range:
= MariaDB 10.4.7:
4096to32768in increments of1024<= MariaDB 10.4.6:
1024to32768in increments of1024
aria_checkpoint_interval
aria_checkpoint_intervalDescription: Interval in seconds between automatic checkpoints. 0 means 'no automatic checkpoints' which makes sense only for testing.
Command line:
--aria-checkpoint-interval=#Scope: Global
Dynamic: Yes
Data Type:
numericDefault Value:
30Range:
0to4294967295
aria_checkpoint_log_activity
aria_checkpoint_log_activityDescription: Number of bytes that the transaction log has to grow between checkpoints before a new checkpoint is written to the log.
Command line:
aria-checkpoint-log-activity=#Scope: Global
Dynamic: Yes
Data Type:
numericDefault Value:
1048576Range
0to4294967295
aria_encrypt_tables
aria_encrypt_tablesDescription: Enables automatic encryption of all user-created Aria tables that have the ROW_FORMAT table option set to PAGE. See Data at Rest Encryption and Enabling Encryption for User-created Tables.
Command line:
aria-encrypt-tables={0|1}Scope: Global
Dynamic: Yes
Data Type:
booleanDefault Value:
OFF
aria_force_start_after_recovery_failures
aria_force_start_after_recovery_failuresDescription: Number of consecutive log recovery failures after which logs are automatically deleted to cure the problem; 0 (the default) disables the feature.
Command line:
--aria-force-start-after-recovery-failures=#Scope: Global
Dynamic: No
Data Type:
numericDefault Value:
0
aria_group_commit
aria_group_commitDescription: Specifies Aria group commit mode.
Command line:
--aria_group_commit="value"Alias:
maria_group_commitScope: Global
Dynamic: No
Data Type:
stringValid values:
none- Group commit is disabled.hard- Wait the number of microseconds specified by aria_group_commit_interval before actually doing the commit. If the interval is 0 then just check if any other threads have requested a commit during the time this commit was preparing (just before sync() file) and send their data to disk also before sync().soft- The service thread will wait the specified time and then sync() to the log. If the interval is 0 then it won't wait for any commits (this is dangerous and should generally not be used in production)
Default Value:
none
aria_group_commit_interval
aria_group_commit_intervalDescription: Interval between Aria group commits in microseconds (1/1000000 second) for other threads to come and do a commit in "hard" mode and sync()/commit at all in "soft" mode. Option only has effect if aria_group_commit is used.
Command line:
--aria_group_commit_interval=#Alias:
maria_group_commit_intervalScope: Global
Dynamic: No
Type: numeric
Valid Values:
Default Value:
0(no waiting)Range:
0-4294967295
aria_log_dir_path
aria_log_dir_pathDescription: Path to the directory where transactional log should be stored
Command line:
--aria-log-dir-path=valueScope: Global
Dynamic: No
Data Type:
stringDefault Value: Same as DATADIR
Introduced: MariaDB 10.5.20, MariaDB 10.6.13, MariaDB 10.11.3 (as a system variable, existed as an option only before that)
aria_log_file_size
aria_log_file_sizeDescription: Limit for Aria transaction log size
Command line:
--aria-log-file-size=#Scope: Global
Dynamic: Yes
Data Type:
numericDefault Value:
1073741824
aria_log_purge_type
aria_log_purge_typeDescription: Specifies how the Aria transactional log are purged. Set to
at_flushto keep a copy of the transaction logs (good as an extra backup). The logs will stay until the next FLUSH LOGS;Command line:
--aria-log-purge-type=nameScope: Global
Dynamic: Yes
Data Type:
enumerationDefault Value:
immediateValid Values:
immediate,external,at_flush
aria_max_sort_file_size
aria_max_sort_file_sizeDescription: Don't use the fast sort index method to created index if the temporary file would get bigger than this.
Command line:
--aria-max-sort-file-size=#Scope: Global
Dynamic: Yes
Data Type:
numericDefault Value:
9223372036853727232Range:
0to9223372036854775807
aria_page_checksum
aria_page_checksumDescription: Determines whether index and data should use page checksums for extra safety. Can be overridden per table with PAGE_CHECKSUM clause in CREATE TABLE.
Command line:
--aria-page-checksum=#Scope: Global
Dynamic: Yes
Data Type:
booleanDefault Value:
ON
aria_pagecache_age_threshold
aria_pagecache_age_thresholdDescription: This characterizes the number of hits a hot block has to be untouched until it is considered aged enough to be downgraded to a warm block. This specifies the percentage ratio of that number of hits to the total number of blocks in the page cache.
Command line:
--aria-pagecache-age-threshold=#Scope: Global
Dynamic: Yes
Data Type:
numericDefault Value:
300Range:
100to9999900
aria_pagecache_buffer_size
aria_pagecache_buffer_sizeDescription: The size of the buffer used for index and data blocks for Aria tables. This can include explicit Aria tables, system tables, and temporary tables. Increase this to get better handling and measure by looking at aria-status-variables/#aria_pagecache_reads (should be small) vs aria-status-variables/#aria_pagecache_read_requests.
Command line:
--aria-pagecache-buffer-size=#Scope: Global
Dynamic: No
Data Type:
numericDefault Value:
134217728(128MB)Range:
131072(128KB) upwards
aria_pagecache_division_limit
aria_pagecache_division_limitDescription: The minimum percentage of warm blocks in the key cache.
Command line:
--aria-pagecache-division-limit=#Scope: Global
Dynamic: Yes
Data Type:
numericDefault Value:
100Range:
1to100
aria_pagecache_file_hash_size
aria_pagecache_file_hash_sizeDescription: Number of hash buckets for open and changed files. If you have many Aria files open you should increase this for faster flushing of changes. A good value is probably 1/10th of the number of possible open Aria files.
Command line:
--aria-pagecache-file-hash-size=#Scope: Global
Dynamic: No
Data Type:
numericDefault Value:
512Range:
128to16384
aria_pagecache_segments
aria_pagecache_segmentsDescription: The number of segments in the page_cache. Each file is put in their own segments of size pagecache_buffer_size / segments. Having many segments improves parallel performance.
Command line:
--aria-pagecache-segments=#Scope: Global
Dynamic: No
Data Type:
numericDefault Value:
1Range:
1to128
aria_recover
aria_recoverDescription:
aria_recoverhas been renamed toaria_recover_optionsin MariaDB 10.2.0. See aria_recover_options for the description.
aria_recover_options
aria_recover_optionsDescription: Specifies how corrupted tables should be automatically repaired. More than one option can be specified, for example
FORCE,BACKUP.NORMAL: Normal automatic repair, the default until MariaDB 10.2.3OFF: Autorecovery is disabled, the equivalent of not using the optionQUICK: Does not check rows in the table if there are no delete blocks.FORCE: Runs the recovery even if it determines that more than one row from the data file are lost.BACKUP: Keeps a backup of the data files.
Command line:
--aria-recover-options[=#]Scope: Global
Dynamic: Yes
Data Type:
enumerationDefault Value:
BACKUP,QUICK(>= MariaDB 10.2.4)NORMAL(<= MariaDB 10.2.3)
Valid Values:
NORMAL,BACKUP,FORCE,QUICK,OFFIntroduced: MariaDB 10.2.0
aria_repair_threads
aria_repair_threadsDescription: Number of threads to use when repairing Aria tables. The value of 1 disables parallel repair. Increasing from the default will usually result in faster repair, but will use more CPU and memory.
Command line:
--aria-repair-threads=#Scope: Global, Session
Dynamic: Yes
Data Type:
numericDefault Value:
1
aria_sort_buffer_size
aria_sort_buffer_sizeDescription: The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE.
Command line:
--aria-sort-buffer-size=#Scope: Global, Session
Dynamic: Yes
Data Type:
numericDefault Value:
268434432
aria_stats_method
aria_stats_methodDescription: Determines how NULLs are treated for Aria index statistics purposes. If set to
nulls_equal, all NULL index values are treated as a single group. This is usually fine, but if you have large numbers of NULLs the average group size is slanted higher, and the optimizer may miss using the index for ref accesses when it would be useful. If set tonulls_unequal, the default, the opposite approach is taken, with each NULL forming its own group of one. Conversely, the average group size is slanted lower, and the optimizer may use the index for ref accesses when not suitable. Setting tonulls_ignoredignores NULLs altogether from index group calculations. Statistics need to be recalculated after this method is changed. See also Index Statistics, myisam_stats_method and innodb_stats_method.Command line:
--aria-stats-method=#Scope: Global, Session
Dynamic: Yes
Data Type:
numericDefault Value:
nulls_unequalValid Values:
nulls_equal,nulls_unequal,nulls_ignored
aria_sync_log_dir
aria_sync_log_dirDescription: Controls syncing directory after log file growth and new file creation.
Command line:
--aria-sync-log-dir=#Scope: Global
Dynamic: Yes
Data Type:
enumerationDefault Value:
NEWFILEValid Values:
NEWFILE,NEVER,ALWAYS
aria_used_for_temp_tables
aria_used_for_temp_tablesDescription: Readonly variable indicating whether the Aria storage engine is used for temporary tables. If set to
ON, the default, the Aria storage engine is used. If set toOFF, MariaDB reverts to using MyISAM for on-disk temporary tables. The MEMORY storage engine is used for temporary tables regardless of this variable's setting where appropriate. The default can be changed by not using the--with-aria-tmp-tablesoption when building MariaDB.Command line: No
Scope: Global
Dynamic: No
Data Type:
booleanDefault Value:
ON
deadlock_search_depth_long
deadlock_search_depth_longDescription: Long search depth for the two-step deadlock detection. Only used by the Aria storage engine.
Command line:
--deadlock-search-depth-long=#Scope: Global, Session
Dynamic: Yes
Data Type:
numericDefault Value:
15Range:
0to33
deadlock_search_depth_short
deadlock_search_depth_shortDescription: Short search depth for the two-step deadlock detection. Only used by the Aria storage engine.
Command line:
--deadlock-search-depth-short=#Scope: Global, Session
Dynamic: Yes
Data Type:
numericDefault Value:
4Range:
0to32
deadlock_timeout_long
deadlock_timeout_longDescription: Long timeout in microseconds for the two-step deadlock detection. Only used by the Aria storage engine.
Command line:
--deadlock-timeout-long=#Scope: Global, Session
Dynamic: Yes
Data Type:
numericDefault Value:
50000000Range:
0to4294967295
deadlock_timeout_short
deadlock_timeout_shortDescription: Short timeout in microseconds for the two-step deadlock detection. Only used by the Aria storage engine.
Command line:
--deadlock-timeout-short=#Scope: Global, Session
Dynamic: Yes
Data Type:
numericDefault Value:
10000Range:
0to4294967295
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

