[SERVER-75893] Allow js hooks to run js file with some specified frequency Created: 10/Apr/23  Updated: 24/May/23  Resolved: 24/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Davis Haupt (Inactive)
Resolution: Duplicate Votes: 0
Labels: greenerbuild, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-76555 Stress-test $queryStats in core passt... Closed
Related
is related to SERVER-51403 Create concurrency suite with backgro... Closed
is related to SERVER-75596 Stress $queryStats read path for aggr... Closed
Assigned Teams:
Query Integration
Participants:

 Description   

We currently do some manual rate limiting in the invoked JS test, as in run_aggregate_metrics_background.js

As mentioned there, it would be better to have the test harness do this. We are adding another instance of this in SERVER-75596.



 Comments   
Comment by Davis Haupt (Inactive) [ 24/May/23 ]

This ticket will be fixed in the PR for SERVER-76555.

Comment by Charlie Swanson [ 21/Apr/23 ]

I think I made this work in SERVER-75596, but I'll wait to resolve until we iron out the details and review there.

Comment by Tausif Rahman (Inactive) [ 20/Apr/23 ]

I took a quick pass. It seems like we the "continuous running" happens in _ContinuousDynamicJSTestCase which is what we use in AggregateResouceConsumptionMetricsInBackground we can probably add a param to _ContinuousDynamicJSTestCase to sleep after each run. That should make this new behavior reusable. I trust max.hirschhorn@mongodb.com pointed you in the right direction in case this isn't exactly what you were thinking. Feel free to add me on the PR if you want.

Comment by Alex Neben [ 20/Apr/23 ]

Tagging tausif.rahman@mongodb.com as he will know more than me on how much work this would be.

Comment by Charlie Swanson [ 14/Apr/23 ]

I'll investigate as part of putting the suite back in the second time after it got reverted. I have an idea after max.hirschhorn@mongodb.com showed me some other code

Generated at Thu Feb 08 06:31:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.