Cant create more than 5 triggers on M2 cluster

It says “maximum database trigger count for cluster size=‘M0’ is 5”

Hi @Grzegorz_Golec, welcome to the community forum.

I’m assuming that you’re raising the fact that the error message is referring to the wrong size of Atlas cluster?

I just successfully created 10 database triggers on an M2 and then got this error when attempting to add the 11th: maximum database trigger count for cluster size='M2' is 10. Can you confirm that this is an M2?

If your concern is the limited number of triggers, one approach is to make sure you only have 1 trigger per collection and then add logic to the function to handle inserts, deletes, etc. diferently.

1 Like