Join GitHub today
raftstore/apply: make it scale #4044
Note this commit doesn't utilize the control FSM. It creates apply
We use 3 TiKVs and 1 TiDBs.
This commit uses the batch/router system introduced in #3927 and #3916 to make apply scale. Note this commit doesn't utilize the control FSM. It creates apply delegate directly when sending a messages. That's because all messages in apply are order-sensitive, using control FSM to create apply delegate can introduce messages reorder. Creating a delegate is pretty lightweight, so put it inside send method is acceptable. Signed-off-by: Jay Lee <firstname.lastname@example.org>