The system saves compiled CLASS files for library functions. Compilations affect all nodes on the cluster.
Your current ruleset list is not relevant when you generate a library. The system compiles all versions of each function in the library. At run time, users run a version that is appropriate to their own ruleset list.
To compile a library:
In a cluster, during system pulse processing by the Pega-RULES agent, that library is compiled on each node.