The default max wait timeout (DEFAULT_POOL_MAX_WAIT_TIMEOUT) should be lowered from 5000 milliseconds to 500 milliseconds. Having a higher wait time leads to more query timeouts and failures. The only downside of lowering it is that you'll fallback to S3 reads more frequently, but this is probably the correct behavior when the system is under heavy load and not responding within the default allowed time.
The default max wait timeout (DEFAULT_POOL_MAX_WAIT_TIMEOUT) should be lowered from 5000 milliseconds to 500 milliseconds. Having a higher wait time leads to more query timeouts and failures. The only downside of lowering it is that you'll fallback to S3 reads more frequently, but this is probably the correct behavior when the system is under heavy load and not responding within the default allowed time.