I installed MySQL cluster and every thing is working well, however I don't know how to implement horizontal sharding in my database.
- I have 2 data node: Node1 and Node2.
- I created database Test with one table T1(key(int), field1..).
I want to write 50% of the records of T1 into Node1 (odd value of key), and 50% of the records into Node2 (even value of key).
I was looking through the documentation but have not found the answer to my problem.