Not only data but also replica size should be limited. Too much replica would occupy too much memory in fe and cause poor performance for tablet manage task in be, we need to know the replica usage and set the quota in db level, like the following implementation.
mysql> alter database test set replica quota 1000;
Query OK, 0 rows affected (0.06 sec)
mysql> show data;
+-------------+------------+-------------+
| TableName | DataSize | ReplicaSize |
+-------------+------------+-------------+
| table_hash | 1.771 KB | 32 |
| table_hash1 | .000 | 60 |
| table_hash2 | .000 | 60 |
| Total | 1.771 KB | 152 |
| Quota | 500.000 GB | 1000 |
| Left | 500.000 GB | 848 |
+-------------+------------+-------------+
6 rows in set (0.01 sec)
mysql>