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

feat: config parsing for error and latency-based routing control #127

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

polsar88
Copy link
Contributor

@polsar88 polsar88 commented Aug 8, 2024

Design document: https://www.notion.so/alchemotion/Error-and-latency-based-routing-in-the-Satsuma-node-gateway-3a60d896c5844f82bf90f68570b00608

This PR adds parsing support for new parameters to configure error and latency-based routing as described in the design document.

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 😎 New feature (non-breaking change which adds functionality)
  • ⁉️ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ⚒️ Refactor (no functional changes)
  • 📖 Documentation (updating or adding docs)

* Added instructions to `README.md`

* feat: update dependencies

* feat: updated dependencies

* feat: new mockery version

* feat: add routing config params

* feat: upgrade Go version

* fix: suppress legacy linter errors

* fix: field alignments in structs

* fix: field linter errors

* fix: linter errors

* feat: add routing config params

* feat: validate routing error rate

* feat: refactoring

* feat: add a TODO

* feat: `ErrorsConfig` and `LatencyConfig` are now pointers

* feat: add a field to routing config test

* feat: set defaults for `DetectionWindow` and `BanWindow`

* feat: move RoutingConfig functions closer to the struct

* feat: changed `or` to `and`

* feat: split function into validation and setting defaults components

* feat: settings the config defaults now mirrors the validation workflow

* feat: remove redundant call
@polsar88 polsar88 changed the title feat: add fine-grained routing control feat: add error and latency-based routing control Aug 15, 2024
@polsar88 polsar88 changed the title feat: add error and latency-based routing control feat: initial implementation of config parsing for error and latency-based routing control Aug 30, 2024
@polsar88 polsar88 changed the title feat: initial implementation of config parsing for error and latency-based routing control feat: config parsing for error and latency-based routing control Aug 30, 2024
@polsar88 polsar88 requested a review from brianluong August 30, 2024 23:49
@polsar88 polsar88 requested a review from pavelm September 16, 2024 16:45
pavelm

This comment was marked as resolved.

@polsar88 polsar88 requested a review from pavelm September 23, 2024 00:51
@polsar88 polsar88 merged commit d1b6941 into main Sep 25, 2024
5 checks passed
@polsar88 polsar88 deleted the feat/routing-enhancements branch September 25, 2024 20:00
@polsar88 polsar88 restored the feat/routing-enhancements branch September 25, 2024 20:05
polsar88 added a commit that referenced this pull request Sep 25, 2024
@polsar88 polsar88 deleted the feat/routing-enhancements branch September 25, 2024 20:39
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.

3 participants