-
Notifications
You must be signed in to change notification settings - Fork 287
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
Owner OOM when upstream TiDB has too many tables #1386
Comments
Design document (internal only): Design: TiCDC Optimization for Large Number of Unreplicated Tables |
I think this issue should not be marked as This issue should be marked as a feature request. @IANTHEREAL @amyangfei @overvenus How do you think? |
How many tables do we define as a large number of tables? As many tables as tidb can support, we should support as many tables as we can. This can refer to the definition of TiDB; in addition, we need to support incremental data backup in Q2/Q3. By then, this goal will definitely be accomplished. |
For now, OOM only occurs when upstream TiDB 1) has many tables and DDL frequently, it's not the case for most users, change to severity/moderate. |
In #4068, we found that truncating tables also triggers the issue. Reproduce steps: mysql -h $HOST -P $PORT -u root -E -e 'create database if not exists truncate500;'
for i in $(seq 1 500); do {
mysql -h $HOST -P $PORT -u root -E -e "
CREATE TABLE if not exists truncate500.orders_$i (
o_id int(11) NOT NULL,
o_d_id int(11) NOT NULL,
o_w_id int(11) NOT NULL,
o_c_id int(11) DEFAULT NULL,
o_entry_d datetime DEFAULT NULL,
o_carrier_id int(11) DEFAULT NULL,
o_ol_cnt int(11) DEFAULT NULL,
o_all_local int(11) DEFAULT NULL,
PRIMARY KEY (o_w_id,o_d_id,o_id),
KEY idx_order (o_w_id,o_d_id,o_c_id,o_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;";
} done
for i in $(seq 0 25000); do {
t=$(( i % 500 ))
mysql -h $HOST -P $PORT -u root -E -e "TRUNCATE TABLE truncate500.orders_$t;"
} done |
/label affects-5.1 |
/unassign @overvenus |
Bug Report
Please answer these questions before submitting your issue. Thanks!
Versions of the cluster
TiCDC version (execute
cdc version
):The text was updated successfully, but these errors were encountered: