File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ where
305305 // Reduce poll timeout if we're frequently getting tasks, to avoid having many
306306 // outstanding long polls for a full minute after a burst subsides.
307307 let timeout_override =
308- if report_handle. ingested_this_period . load ( Ordering :: Relaxed ) > 2 {
308+ if report_handle. ingested_this_period . load ( Ordering :: Relaxed ) > 1 {
309309 Some ( Duration :: from_secs ( 11 ) )
310310 } else {
311311 None
@@ -468,8 +468,10 @@ where
468468 }
469469 let ingested = rhc. ingested_this_period . swap ( 0 , Ordering :: Relaxed ) ;
470470 let ingested_last = rhc. ingested_last_period . swap ( ingested, Ordering :: Relaxed ) ;
471- rhc. scale_up_allowed
472- . store ( ingested_last >= ingested, Ordering :: Relaxed ) ;
471+ rhc. scale_up_allowed . store (
472+ ingested >= ( ingested_last as f64 * 1.1 ) as usize ,
473+ Ordering :: Relaxed ,
474+ ) ;
473475 }
474476 } ) )
475477 } else {
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ async fn poller_load_spiky() {
4343 . worker_config
4444 . max_cached_workflows ( 5000_usize )
4545 . max_outstanding_workflow_tasks ( 1000_usize )
46+ . max_outstanding_activities ( 1000_usize )
4647 . workflow_task_poller_behavior ( PollerBehavior :: Autoscaling {
4748 minimum : 1 ,
4849 maximum : 200 ,
You can’t perform that action at this time.
0 commit comments