.The number of PGs per OSD is now limited
Previously, it was possible to create pools that included a large number of placement groups (PGs) which could overload the cluster. This update introduces a new configuration option, `mon_max_pg_per_osd`, that limits the number of PGs per OSD to 200. Creating pools or adjusting the `pg_num` parameter now fails if the change would make the number of PGs per OSD exceed the configured limit. You can adjust this option in the Ceph configuration file. In addition, the `mon_pg_warn_max_per_osd` option has been removed.
Description of problem:
Users can create pools with lots of pgs and overload the cluster. Prevent that via a config option that limits the pgs per osd.
See upstream PR https://github.com/ceph/ceph/pull/17427. This will need to be backported to luminous and (maybe) 2.y.
https://github.com/ceph/ceph/pull/17814 is backport PR
*** This bug has been marked as a duplicate of bug 1491007 ***
*** Bug 1491007 has been marked as a duplicate of this bug. ***
Verified on 12.2.1-29
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.