[Architecture] add master, slave and manager