Skip to content

Conversation

@AbdulRahmanAlHamali
Copy link
Contributor

@AbdulRahmanAlHamali AbdulRahmanAlHamali commented Sep 23, 2025

Note: this implementation is currently 100% vibe-coded, the plan is to close this PR and create a new, clean one

attr_reader :name, :pid_controller, :ping_thread

def initialize(name:, kp: 1.0, ki: 0.1, kd: 0.0,
window_size: 10, history_duration: 3600,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the calculation of online mean, Welford's algorithm was discussed as a solution to use constant space

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, do we want to allow developers to configure the interval of integration? (history_duration)?

AbdulRahmanAlHamali and others added 24 commits October 22, 2025 17:08
Update variable names

Fill sliding window with 1 hr worth data

Add comment

Update experiemnt resource to be deterministic

Change deterministic default value to false

Cleanup

Remove unused variable

Make initial seed error rate more customizable

Add seed_error_rate as a property
* Prefilling added

* Change initial duration to 900 s
* testing different circuit breaking scenarios

* adding concurrency

* adds more puts to get further information during phases

* Fixing concurrency, unprotected ping, extras

* update classic sustained test

* cleaning up outdated tests, and testing without ping rate

* modify ki instead of dividing by window size

---------

Co-authored-by: Abdulrahman Alhamali <[email protected]>
kris-gaudel and others added 30 commits October 31, 2025 14:20
notify on state transitions and on controller updates
add vertical reference lines on classic CB state changes and more helper flex
…reads

Different Semians between different threads
* Set up automated test for PID controller

Reset

Update experiment graphs

Delete existing image

Done

Update experiment graphs

Update experiment graphs

Refactor experiments folder and CI

Update scope of commit

Update experiment graphs

Update experiment graphs

Update Gemfile

Update experiment graphs

Move windup file into test folder

Update experiment graphs

CI should only commit main graphs

Update experiment graphs

New bot

Fail fast

Test

Delete comment

Update experiment graphs

test

Revert

test

Add the commit

Test

Test

* Rework CI check

Done

Final
* allow max threads, and introduce slow query experiment

* fix my experiment, and run all other experiments
* add tables, and fix bug in helper

* remove useless check

* replace with csv tables for better display
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.

5 participants