Add dynamic memory configuration to es cookbook