mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
a5c6d78ee5
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. |
||
---|---|---|
.. | ||
test_files | ||
bounce_handling_test.clj | ||
email_sending_test.clj | ||
helpers.clj | ||
http_middleware_access_token_test.clj | ||
loggers_webhooks_test.clj | ||
rpc_access_tokens_test.clj | ||
rpc_audit_test.clj | ||
rpc_comment_test.clj | ||
rpc_cond_middleware_test.clj | ||
rpc_file_test.clj | ||
rpc_file_thumbnails_test.clj | ||
rpc_font_test.clj | ||
rpc_management_test.clj | ||
rpc_media_test.clj | ||
rpc_profile_test.clj | ||
rpc_project_test.clj | ||
rpc_quotes_test.clj | ||
rpc_team_test.clj | ||
rpc_viewer_test.clj | ||
rpc_webhooks_test.clj | ||
storage_test.clj | ||
tasks_telemetry_test.clj | ||
util_objects_map_test.clj | ||
util_pointer_map_test.clj |