fetch port number, msg maximum length and redis db from config file