what is the impact of increasing queue size from the default 100000 to 500000?

Is there a rule of thumb to calculate the reasonable maximum number of
queue size using the available resources like RAM, CPU core and anything else needed to be considered.

Any suggestion would be appreciated.