We recommend keeping all the resources as consistent as possible for the nodes within a given service. This ensures that the software can treat them all the same, and if there is a failure of one, it doesn’t overwhelm the others.
Additionally, the memory quota will be limited by the node with the lowest available memory. So for device 3 above, you won’t actually be able to use the extra 20GB. Technically there shouldn’t be any issue with having the extra memory.