Spider Table Parameters
When a table uses the Spider storage engine, the following Spider table parameters can be set in the COMMENT clause of the CREATE TABLE statement. Many Spider table parameters have corresponding system variables, so they can be set for all Spider tables on the node. For additional information, see the Spider System Variables page.
From MariaDB 11.3, many table parameters can be set using dedicated Spider table options, see the Table Option Name fields below. From MariaDB 11.4, using the COMMENT clause is deprecated, as well as table parameters that do not have corresponding table options.
access_balances
access_balancesDescription: Connection load balancing integer weight.
Default Table Value:
0DSN Parameter Name:
ablDeprecated: MariaDB 11.4.0
active_link_count
active_link_countDescription: Number of active remote servers, for use in load balancing read connections
Default Table Value:
all backendsDSN Parameter Name:
alcDeprecated: MariaDB 11.4.0
auto_increment_mode
auto_increment_modeDescription: The table level value of spider_auto_increment_mode
Table Option Name:
AUTO_INCREMENT_MODETable Option Introduced: MariaDB 11.3.0
bgs_mode
bgs_modeDescription: The table level value of spider_bgs_mode.
Table Option Name:
BGS_MODETable Option Introduced: MariaDB 11.3.0
bulk_size
bulk_sizeDescription: The table level value of spider_bulk_size.
Table Option Name:
BULK_SIZETable Option Introduced: MariaDB 11.3.0
bulk_update_size
bulk_update_sizeDescription: The table level value of spider_bulk_update_size.
Table Option Name:
BULK_UPDATE_SIZETable Option Introduced: MariaDB 11.3.0
casual_read
casual_readDescription:
Default Table Value:
DSN Parameter Name:
Introduced: Spider 3.2
Deprecated: MariaDB 11.4.0
connect_timeout
connect_timeoutDescription: The table level value of spider_connect_timeout.
Table Option Name:
CONNECT_TIMEOUTTable Option Introduced: MariaDB 11.3.0
database
databaseDescription: Database name for reference table that exists on remote backend server.
Default Table Value:
local table databaseDSN Parameter Name:
databaseTable Option Name:
REMOTE_DATABASETable Option Introduced: MariaDB 10.8.0
default_file
default_fileDescription: Configuration file used when connecting to remote servers. When the default_group table variable is set, this variable defaults to the values of the
--defaults-extra-fileor--defaults-fileoptions. When the default_group table variable is not set, it defaults tonone.Default Table Value:
noneDSN Parameter Name:
dffTable Option Name:
DEFAULT_FILETable Option Introduced: MariaDB 11.3.0
default_group
default_groupDescription: Group name in configuration file used when connecting to remote servers.
Default Table Value:
noneDSN Parameter Name:
dfgTable Option Name:
DEFAULT_GROUPTable Option Introduced: MariaDB 11.3.0
delete_all_rows_type
delete_all_rows_typeDescription: The table level value of spider_delete_all_rows_type.
Introduced: Spider 3.2
Table Option Name:
DELETE_ALL_ROWS_TYPETable Option Introduced: MariaDB 11.3.0
force_bulk_delete
force_bulk_deleteDescription:
Introduced: MariaDB 10.0.5
Table Option Name:
FORCE_BULK_DELETETable Option Introduced: MariaDB 11.3.0
force_bulk_update
force_bulk_updateDescription:
Introduced: MariaDB 10.0.5
Table Option Name:
FORCE_BULK_UPDATETable Option Introduced: MariaDB 11.3.0
host
hostDescription: Host name of remote server.
Default Table Value:
localhostDSN Parameter Name:
hostTable Option Name:
REMOTE_HOSTTable Option Introduced: MariaDB 11.3.0
idx000
idx000Description: When using an index on Spider tables for searching, Spider uses this hint to search the remote table. The remote table index is related to the Spider table index by this hint. The number represented by
000is the index ID, which is the number of the index shown by the SHOW CREATE TABLE statement.000is the Primary Key. For instance,idx000 "force index(PRIMARY)"(in abbreviated formatidx000 "f PRIMARY").fforce indexuuse indexigignore index
Default Table Value:
noneTable Option Name:
IDXTable Option Introduced: MariaDB 11.3.0
link_status
link_statusDescription: Change status of the remote backend server link.
0Doesn't change status.1Changes status toOK.2Changes status toRECOVERY.3Changes status to no more in group communication.
Default Table Value:
0DSN Parameter Name:
lstDeprecated: MariaDB 11.4.0
monitoring_bg_interval
monitoring_bg_intervalDescription: Interval of background monitoring in microseconds.
Default Table Value:
10000000DSN Parameter Name:
mbiDeprecated: MariaDB 11.4.0
monitoring_bg_kind
monitoring_bg_kindDescription: Kind of background monitoring to use.
0Disables background monitoring.1Monitors connection state.2Monitors state of table withoutWHEREclause.3Monitors state of table withWHEREclause (currently unsupported).
Default Table Value:
0DSN Parameter Name:
mbkDeprecated: MariaDB 11.4.0
monitoring_kind
monitoring_kindDescription: Kind of monitoring.
0Disables monitoring1Monitors connection state.2Monitors state of table withoutWHEREclause.3Monitors state of table withWHEREclause (currently unsupported).
Default Table Value:
0DSN Parameter Name:
mkdDeprecated: MariaDB 11.4.0
monitoring_limit
monitoring_limitDescription: Limits the number of records in the monitoring table. This is only effective when Spider monitors the state of a table, which occurs when the monitoring_kind table variable is set to a value greater than
1.Default Table Value:
1Range:
0upwardsDSN Parameter Name:
mltDeprecated: MariaDB 11.4.0
monitoring_server_id
monitoring_server_idDescription: Preferred monitoring
@@server_idfor each backend failure. You can use this to geo-localize backend servers and set the first Spider monitoring node to contact for failover. In the event that this monitor fails, other monitoring nodes are contacted. For multiple copy backends, you can set a lazy configuration with a single MSI instead of one per backend.Default Table Value:
server_idDSN Parameter Name:
msiDeprecated: MariaDB 11.4.0
multi_split_read
multi_split_readDescription: The table level value of spider_multi_split_read.
Table Option Name:
MULTI_SPLIT_READTable Option Introduced: MariaDB 11.3.0
net_read_timeout
net_read_timeoutDescription: The table level value of spider_net_read_timeout.
Table Option Name:
NET_READ_TIMEOUTTable Option Introduced: MariaDB 11.3.0
net_write_timeout
net_write_timeoutDescription: The table level value of spider_net_write_timeout.
Table Option Name:
NET_WRITE_TIMEOUTTable Option Introduced: MariaDB 11.3.0
password
passwordDescription: Remote server password.
Default Table Value:
noneDSN Parameter Name:
passwordTable Option Name:
REMOTE_PASSWORDTable Option Introduced: MariaDB 11.3.0
port
portDescription: Remote server port.
Default Table Value:
3306DSN Parameter Name:
portTable Option Name:
REMOTE_PORTTable Option Introduced: MariaDB 11.3.0
priority
priorityDescription: Priority. Used to define the order of execution. For instance, Spider uses priority when deciding the order in which to lock tables on a remote server.
Default Table Value:
1000000DSN Parameter Name:
prtTable Option Name:
PRIORITYTable Option Introduced: MariaDB 11.3.0
query_cache
query_cacheDescription: Uses the option for the Query Cache when issuing SELECT statements to the remote server.
0No option used.1Uses the SQL_CACHE option.2Uses the SQL_NO_CACHE option.
Default Table Value:
0DSN Parameter Name:
qchTable Option Name:
QUERY_CACHETable Option Introduced: MariaDB 11.3.0
query_cache_sync
query_cache_syncDescription: A two-bit bitmap. Whether to pass the option for the Query Cache (if any) when issuing SELECT statements to the remote server.
0No option passed.1Passes the SQL_CACHE option, if specified in the query to the spider table.2Passes the SQL_NO_CACHE option, if specified in the query to the spider table.3Passes both the SQL_CACHE option and the SQL_NO_CACHE option, if specified in the query to the spider table.
Default Table Value:
3Table Option Name:
QUERY_CACHE_SYNCTable Option Introduced: MariaDB 11.3.0
read_rate
read_rateDescription: Rate used to calculate the amount of time Spider requires when executing index scans.
Default Table Value:
0.0002DSN Parameter Name:
rrtDeprecated: MariaDB 11.4.0
scan_rate
scan_rateDescription: Rate used to calculate the amount of time Spider requires when scanning tables.
Default Table Value:
0.0001DSN Parameter Name:
srtDeprecated: MariaDB 11.4.0
server
serverDescription: Server name. Used when generating connection information with CREATE SERVER statements.
Default Table Value:
noneDSN Parameter Name:
srvTable Option Name:
REMOTE_SERVERTable Option Introduced: MariaDB 10.8.0
skip_parallel_search
skip_parallel_searchDescription: The table level value of spider_skip_parallel_search.
Table Option Name:
SKIP_PARALLEL_SEARCHTable Option Introduced: MariaDB 11.3.0
socket
socketDescription: Remote server socket.
Default Table Value:
noneDSN Parameter Name:
socketTable Option Name:
REMOTE_SOCKETTable Option Introduced: MariaDB 11.3.0
ssl_ca
ssl_caDescription: Path to the Certificate Authority file.
Default Table Value:
noneDSN Parameter Name:
scaTable Option Name:
SSL_CATable Option Introduced: MariaDB 11.3.0
ssl_capath
ssl_capathDescription: Path to directory containing trusted TLS CA certificates in PEM format.
Default Table Value:
noneDSN Parameter Name:
scpTable Option Name:
SSL_CAPATHTable Option Introduced: MariaDB 11.3.0
ssl_cert
ssl_certDescription: Path to the certificate file.
Default Table Value:
noneDSN Parameter Name:
scrTable Option Name:
SSL_CERTTable Option Introduced: MariaDB 11.3.0
ssl_cipher
ssl_cipherDescription: List of allowed ciphers to use with TLS encryption.
Default Table Value:
noneDSN Parameter Name:
schTable Option Name:
SSL_CIPHERTable Option Introduced: MariaDB 11.3.0
ssl_key
ssl_keyDescription: Path to the key file.
Default Table Value:
noneDSN Parameter Name:
skyTable Option Name:
SSL_KEYTable Option Introduced: MariaDB 11.3.0
ssl_verify_server_cert
ssl_verify_server_certDescription: Enables verification of the server's Common Name value in the certificate against the host name used when connecting to the server.
0Disables verification.1Enables verification.
Default Table Value:
0DSN Parameter Name:
svcTable Option Name:
SSL_VSCTable Option Introduced: MariaDB 11.3.0
table
tableDescription: Destination table name.
Default Table Value:
Same table nameDSN Parameter Name:
tblTable Option Name:
REMOTE_TABLETable Option Introduced: MariaDB 10.8.0
table_count_mode
table_count_modeDescription: for setting table flags HA_STATS_RECORDS_IS_EXACT and HA_HAS_RECORDS.
Default Table Value:
0Table Option Name:
TABLE_COUNT_MODETable Option Introduced: MariaDB 11.3.0
username
usernameDescription: user name for the data node.
Default Table Value:
Same user nameTable Option Name:
REMOTE_USERNAMETable Option Introduced: MariaDB 11.3.0
use_pushdown_udf
use_pushdown_udfDescription: The table level value of spider_use_pushdown_udf.
Table Option Name:
USE_PUSHDOWN_UDFTable Option Introduced: MariaDB 11.3.0
wrapper
wrapperDescription: wrapper for the data node.
Table Option Name:
WRAPPERTable Option Introduced: MariaDB 11.3.0
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

