There are not many changes to Slurm from Centos 7.9 to Rocky Linux 8.6. The documentation of Slurm can be found here:
The only difference is, that if one wants to submit a job to a Rocky Linux 8.6 node, one will for the moment have to additionally set
#SBATCH --constraint=RL8
to your jobscript.