All Products
Search
Document Center

ApsaraDB for OceanBase:Parameter templates

Last Updated:Nov 27, 2024

This topic describes the key parameters and differences between different parameter templates available for tenant creation.

Note

You can configure a parameter template only for OceanBase Database V4.3.3 and later.

Background information

ApsaraDB for OceanBase allows you to select different parameter templates when creating a tenant based on your business requirements to ensure optimal performance.

ApsaraDB for OceanBase supports the following parameter templates:

  • Simple OLTP (default): suitable for core systems for Internet businesses that require point queries with high concurrency, such as online order transactions and payments. The SQL statements executed are simple, ensuring a fast response speed.

  • Complex OLTP: suitable for online transaction systems with complex transactions. This includes handling long-running and large transactions that involve complex joins, subqueries, and batch jobs written in PL. If a cluster instance is dedicated for online transactional processing (OLTP) workloads, we recommend that you optimize the value of the large_query_threshold parameter from the default 600 seconds to 5 seconds.

  • HTAP: suitable for systems that simultaneously run OLTP and online analytical processing (OLAP) workloads for improved performance in online analysis though a vectorized engine.

  • OLAP: suitable for real-time data warehouses that require OLAP. By default, tables created use columnar storage and an optimized vectorized engine to enhance performance for complex analysis. If a cluster instance is dedicated for OLAP workloads, we recommend that you optimize system variables and cluster parameters. This includes enabling adaptive parallel computation, optimizing SQL statement sorting memory, configuring timeout settings for SQL statements and transactions, and adjusting large query strategies. We also recommend that you use the character set 10utf8mb4_bin for tenants.

Comparison

Type

Parameter

Simple OLTP

Complex OLTP

HTAP

OLAP

Cluster parameters

large_query_threshold

5s

600s

600s

0 ms (disable LARGE QUERY)

trace_log_slow_query_watermark

1s

1s

1s

7d

Tenant parameters

_rowsets_max_rows

1

4

32

256

log_transport_compress_all

True

True

True

False

default_table_store_format

Row store

Row store

Row store

Column store

_io_read_batch_size

0K

0K

0K

128K

_io_read_redundant_limit_percentage

0

0

0

50

System variables

ob_query_timeout

10s

10s

10s

604800000000 ms (7 days)

ob_trx_timeout

1 day

1 day

1 day

604800000000 ms (7 days)

parallel_degree_policy

MANUAL

MANUAL

MANUAL

AUTO

parallel_min_scan_time_threshold

1s

1s

1s

10 ms

ob_sql_work_area_percentage

5%

5%

5%

30%

collation_server

utf8mb4_general_ci

utf8mb4_general_ci

utf8mb4_general_ci

utf8mb4_bin

collation_connection

utf8mb4_bin