Mariadb with more than one node each node will have recent 1 year data I am creating a saas which will then have time based data every seconds for example.
I want horizontal scalling when data reach its limit of 1 year.
after 1 year old data should be shift to another server so only 1 year data is available on 1st node
2nd will have 1 year old data and 3rd will have 2 years old data so on.

let me know which db tool I should use to achieve this and how?
or
let me know better solution if any
You may want to look at the MariaDB Spider storage engine which is a sharding engine that allows you to partition the data e.g. by range so that data in a certain range will be stored on a certain backend server.

Let's say you have a table with year column. You can then say that values in a particular year should go to a particular backend server. See some example use cases here.

This will give you node 1 for the first year, node 2 for the second year and so on, and no shifting of data, but that is probably better anyway. You can always rename the servers, if that helps. 

If you're storing a new row every second, that means 31,536,000 rows per year, which is probably absolutely fine, though it's always a good idea to make sure the table(s) are optimally designed especially when you're storing a lot of data like this.