Perform rate and burst limit on filesystem operations
Maintainer(s):
dentiny
Installing and Loading
INSTALL rate_limit_fs FROM community;
LOAD rate_limit_fs;
Example
SELECT rate_limit_fs_wrap('RateLimitFsFakeFileSystem');
SELECT rate_limit_fs_quota('RateLimitFileSystem - RateLimitFsFakeFileSystem', 'read', 1000000, 'blocking');
About rate_limit_fs
This extension implements rate and burst limit for duckdb filesystems. It supports a few key features:
- Support filesystem and operation based limit.
- Support burst limit and GCRA-based rate limit.
- Supports wrap custom filesystems, so users don't need to change their query.
Added Functions
| function_name | function_type | description | comment | examples |
|---|---|---|---|---|
| rate_limit_fs_burst | scalar | NULL | NULL | |
| rate_limit_fs_clear | scalar | NULL | NULL | |
| rate_limit_fs_configs | table | NULL | NULL | |
| rate_limit_fs_list_filesystems | table | NULL | NULL | |
| rate_limit_fs_quota | scalar | NULL | NULL | |
| rate_limit_fs_wrap | scalar | NULL | NULL |