mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 10:28:28 +02:00
♻️ Fix some fundamental bugs on climit module
The climit previously of this commit is heavily used inside a transactions, so in heavy contention operation such that file thumbnail creation can cause a db pool exhaust. This commit fixes this issue setting up a better resource limiting mechanism that works outside the transactions so, contention will no longer hold an open connection/transaction. It also adds general improvement to the traceability to the climit mechanism: it now properly logs the profile-id that is currently cause some contention on specific resources. It also add a general/root climit that is applied to all requests so if someone start making abussive requests, we can clearly detect it.
This commit is contained in:
parent
658c26014b
commit
a5c6d78ee5
12 changed files with 291 additions and 212 deletions
|
@ -71,6 +71,7 @@
|
|||
:enable-email-verification
|
||||
:enable-smtp
|
||||
:enable-quotes
|
||||
:enable-rpc-climit
|
||||
:enable-feature-fdata-pointer-map
|
||||
:enable-feature-fdata-objets-map
|
||||
:enable-feature-components-v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue