Feature/yarn memory percent

Allow overriding the YARN memory calculation with our own percentage.