Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replication Lag Consistently Increased During Sysbench OLTP_WRITE_ONLY Testing #258

Open
VWagen1989 opened this issue Dec 6, 2024 · 0 comments
Assignees

Comments

@VWagen1989
Copy link
Contributor

VWagen1989 commented Dec 6, 2024

Test environment:

Hosts: Volcano Engine ecs.g3i.xlarge 4C16GB x 2

Test Tool: Sysbench with workload setting
- type: OLTP_WRITE_ONLY
- threads: 40
- table-count: 10
- table-size: 2,000,000

MySQL Configuration:
innodb_buffer_pool_size=11297935
innodb_log_file_size=536870912
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DIRECT

This picture depicts that the replication lag continuously increased as the sysbench testing performing.

image

After initial troubleshooting, I identified that the issue stems from the slow write performance of DuckDB. Additionally, the current implementation in MyDuck Server flushes the data stored in the delta buffer sequentially for each table (as introduced in #93), which further exacerbates the performance bottleneck during data persistence.

To address this, I propose adopting a concurrent flushing mechanism for delta buffers across multiple tables. This approach would reduce the time required for data persistence compared to the current sequential method. However, the underlying problem remains DuckDB’s poor write performance. After implementing the concurrent flushing improvement, we should investigate and resolve the root cause of DuckDB’s slow data persistence.

@VWagen1989 VWagen1989 self-assigned this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant