Framework for repl ica select ion in fault-tolerant distributed systems