This topic describes the key parameters and differences between parameter templates when creating tenants.
Note
Parameter template configuration is currently only supported for newly created OceanBase database V4.3.3 and later versions.
Background
OceanBase Cloud supports selecting different parameter templates when creating tenants to quickly match specific usage scenarios. Users can choose appropriate parameter templates for different business scenarios to achieve optimal performance.
Currently supported parameter templates include:
OLTP Simple Transactions (Default): Suitable for core systems such as online orders and payments, as well as high-concurrency, point-query-intensive internet applications. Ideal for scenarios with simple SQL executions requiring fast responses.
OLTP Complex Transactions: Suitable for online transaction systems with complex transactions, such as scenarios involving complex join calculations, subqueries, or batch jobs written in PL. Supports long or large transactions. If the instance is dedicated to OLTP workloads, it is recommended to optimize the instance parameter
large_query_thresholdfrom the default 600s to 5s.HTAP Mixed Workloads: Suitable for hybrid workloads running both transactions and online analysis. Enhances computing capabilities for analytical scenarios through vectorization while maintaining OLTP performance.
OLAP Online Analytics: Suitable for real-time data warehouse scenarios with online analytical processing (OLAP). Tables are created using columnar storage by default, with an optimized vectorization engine to enhance computing capabilities for complex analytical scenarios. For instances dedicated to OLAP analytics, it is recommended to optimize system variables and instance parameters accordingly, such as enabling adaptive parallel computing, optimizing SQL sorting memory space, configuring SQL and transaction timeouts, and large query policies. It is also recommended to use
utf8mb4_binas the tenant character set.
Parameter template comparison
| Parameter Type | Parameter Name | OLTP Simple Transactions | OLTP Complex Transactions | HTAP Mixed Workloads | OLAP Online Analytics |
|---|---|---|---|---|---|
| Instance Parameter | large_query_threshold | 5s | 600s | 600s | 0ms (large query disabled) |
| Instance Parameter | trace_log_slow_query_watermark | 1s | 1s | 1s | 7d |
| Tenant Parameter | _rowsets_max_rows | 1 | 4 | 32 | 256 |
| Tenant Parameter | log_transport_compress_all | TRUE | TRUE | TRUE | FALSE |
| Tenant Parameter | default_table_store_format | row store | row store | row store | column store |
| Tenant Parameter | _io_read_batch_size | 0K | 0K | 0K | 128K |
| Tenant Parameter | _io_read_redundant_limit_percentage | 0 | 0 | 0 | 50 |
| System Variable | ob_query_timeout | 10s | 10s | 10s | 604800000000 (7 days) |
| System Variable | ob_trx_timeout | 1 day | 1 day | 1 day | 604800000000 (7 days) |
| System Variable | parallel_degree_policy | MANUAL | MANUAL | MANUAL | AUTO |
| System Variable | parallel_min_scan_time_threshold | 1s | 1s | 1s | 10 ms |
| System Variable | ob_sql_work_area_percentage | 0.05 | 0.05 | 0.05 | 0.3 |
| System Variable | collation_server | utf8mb4_general_ci | utf8mb4_general_ci | utf8mb4_general_ci | utf8mb4_bin |
| System Variable | collation_connection | utf8mb4_general_ci | utf8mb4_general_ci | utf8mb4_general_ci | utf8mb4_bin |