[clustering] improve configuration. Add support for readonly datadir.