An audio compressor controls the dynamics of sound. So when you are tweaking the compressor's attack and release settings, the goal is to tame the dynamics of the music in order to achieve your desired sound.
The rule of thumb for master bus compressor settings is very simple in the sense that if you want the track to be punchy and have those snappy drums then your best bet is to try medium to fairly long attack times e.g from 30 ms to 100 ms.
You need to be aware that some VST/AU/AAX mastering compressors don't have the option for more than 30 ms in attack time e.g Waves Audio SSL Compressor, Cytomic The Glue and so much more.
Fast attack times e.g 1 ms, 3 ms, 10 ms, and 15 ms have the downside of softening the transients of the...