Calculate cluster id by catalog