File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -986,6 +986,8 @@ this is configurable for each transport:
986
986
# e.g. 1 second delay, 2 seconds, 4 seconds
987
987
multiplier : 2
988
988
max_delay : 0
989
+ # applies randomness to the delay that can prevent the thundering herd effect
990
+ jitter : 0.1
989
991
# override all of this with a service that
990
992
# implements Symfony\Component\Messenger\Retry\RetryStrategyInterface
991
993
# service: null
@@ -1005,7 +1007,7 @@ this is configurable for each transport:
1005
1007
<framework : config >
1006
1008
<framework : messenger >
1007
1009
<framework : transport name =" async_priority_high" dsn =" %env(MESSENGER_TRANSPORT_DSN)%?queue_name=high_priority" >
1008
- <framework : retry-strategy max-retries =" 3" delay =" 1000" multiplier =" 2" max-delay =" 0" />
1010
+ <framework : retry-strategy max-retries =" 3" delay =" 1000" multiplier =" 2" max-delay =" 0" jitter = " 0.1 " />
1009
1011
</framework : transport >
1010
1012
</framework : messenger >
1011
1013
</framework : config >
@@ -1030,6 +1032,8 @@ this is configurable for each transport:
1030
1032
// e.g. 1 second delay, 2 seconds, 4 seconds
1031
1033
->multiplier(2)
1032
1034
->maxDelay(0)
1035
+ // applies randomness to the delay that can prevent the thundering herd effect
1036
+ ->jitter(0.1)
1033
1037
// override all of this with a service that
1034
1038
// implements Symfony\Component\Messenger\Retry\RetryStrategyInterface
1035
1039
->service(null)
You can’t perform that action at this time.
0 commit comments