Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rate limit function #2002

Merged
merged 4 commits into from
May 22, 2024
Merged

Update rate limit function #2002

merged 4 commits into from
May 22, 2024

Conversation

jirevwe
Copy link
Collaborator

@jirevwe jirevwe commented May 14, 2024

This PR aims to reduce the CPU usage of the convoy.take_token() function.

sql/1715118159.sql Outdated Show resolved Hide resolved
sql/1715118159.sql Outdated Show resolved Hide resolved
@subomi subomi merged commit bae8b92 into main May 22, 2024
4 checks passed
@subomi subomi deleted the raymond/fix/rate-limit-perf branch May 22, 2024 15:01
Oluwadaminiola pushed a commit that referenced this pull request May 22, 2024
* chore: update rate limit function

* fix: return when locked row is null

* fix: select only specific rows

* chore: create record if not exists
jirevwe added a commit that referenced this pull request May 27, 2024
* added metrics for the data plane (#2005)

* added metrics for the data plane

* updated docker-compose.dev.yml with optional prometheus image

* updated RedisQueue as a metrics collector

* updated postgres as a metrics collector

* revert error check in process_meta_event.go

* updated metrics collection for different http status codes

* updated postgres_collector.go

* fixed lint issues and updated some queries

* updated metrics to be configurable

* updated test config

* fixed failing CI tests

* gated metrics with feature flags

* fixed CI issues

* updated metrics tests

* refactored postgres_collector.go

* Update rate limit function (#2002)

* chore: update rate limit function

* fix: return when locked row is null

* fix: select only specific rows

* chore: create record if not exists

* Add subscription name filter to GetSubscriptions (#2014)

* fix: add subscription name filter to GetSubscriptions

* fix: add % directly in arg map

* fix: add portal link checks to subscription apis

* fix: remove isPortaLinkReq

* fix: use util.StringSliceContains

* fix: revert envs

* fix: check if data.FilterBy.EndpointIDs was present before setting it

---------

Co-authored-by: Smart Mekiliuwa <st.nonso@gmail.com>
Co-authored-by: Raymond Tukpe <jirevwe@users.noreply.github.com>
Co-authored-by: Pelumi Muyiwa-Oni <Pelumioni25@gmail.com>
jirevwe added a commit that referenced this pull request May 27, 2024
* add subscriptions list and form to portal links

* update endpoints dropdown

* added metrics for the data plane (#2005)

* added metrics for the data plane

* updated docker-compose.dev.yml with optional prometheus image

* updated RedisQueue as a metrics collector

* updated postgres as a metrics collector

* revert error check in process_meta_event.go

* updated metrics collection for different http status codes

* updated postgres_collector.go

* fixed lint issues and updated some queries

* updated metrics to be configurable

* updated test config

* fixed failing CI tests

* gated metrics with feature flags

* fixed CI issues

* updated metrics tests

* refactored postgres_collector.go

* Update rate limit function (#2002)

* chore: update rate limit function

* fix: return when locked row is null

* fix: select only specific rows

* chore: create record if not exists

* Add subscription name filter to GetSubscriptions (#2014)

* fix: add subscription name filter to GetSubscriptions

* fix: add % directly in arg map

* add search for subscriptions on portal links

* update route for subscriptions

* move abd update portal link layout

* delete apps module

* fix and update subscriptions form

* update subscriptions/endpoints page

* fix endpoint search

* Add portal link checks to subscription apis (#2016)

* added metrics for the data plane (#2005)

* added metrics for the data plane

* updated docker-compose.dev.yml with optional prometheus image

* updated RedisQueue as a metrics collector

* updated postgres as a metrics collector

* revert error check in process_meta_event.go

* updated metrics collection for different http status codes

* updated postgres_collector.go

* fixed lint issues and updated some queries

* updated metrics to be configurable

* updated test config

* fixed failing CI tests

* gated metrics with feature flags

* fixed CI issues

* updated metrics tests

* refactored postgres_collector.go

* Update rate limit function (#2002)

* chore: update rate limit function

* fix: return when locked row is null

* fix: select only specific rows

* chore: create record if not exists

* Add subscription name filter to GetSubscriptions (#2014)

* fix: add subscription name filter to GetSubscriptions

* fix: add % directly in arg map

* fix: add portal link checks to subscription apis

* fix: remove isPortaLinkReq

* fix: use util.StringSliceContains

* fix: revert envs

* fix: check if data.FilterBy.EndpointIDs was present before setting it

---------

Co-authored-by: Smart Mekiliuwa <st.nonso@gmail.com>
Co-authored-by: Raymond Tukpe <jirevwe@users.noreply.github.com>
Co-authored-by: Pelumi Muyiwa-Oni <Pelumioni25@gmail.com>

* check option name in select component

* fix portal links form

* remove comments

---------

Co-authored-by: Smart Mekiliuwa <st.nonso@gmail.com>
Co-authored-by: Raymond Tukpe <jirevwe@users.noreply.github.com>
Co-authored-by: Daniel Oluojomu <danvixent@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants