on master help sign in
Bugfix: default retry policy on ES was much faster than documented
commitb777cc50d8a76268ce4845997aceaefe5eadfadd authorMichael Xavier <michael@michaelxavier.net> dateTue 18 Dec 2018, 10:43 (8 years ago) parent4b43748
1 file changed+2−2
katip-elasticsearch/src/Katip/Scribes/ElasticSearch/Internal.hs+2−2
katip-elasticsearch/src/Katip/Scribes/ElasticSearch/Internal.hs+2−2
@@ -85,7 +85,7 @@ data EsScribeCfg v = EsScribeCfg {
8585--
8686-- * defaultManagerSettings
8787--
88−-- * exponential backoff with 25ms base delay up to 5 retries
88+-- * exponential backoff with 25ms base delay up to 5 retries, for a total cumulative delay of 775ms
8989--
9090-- * Queue size of 1000
9191--
@@ -96,7 +96,7 @@ data EsScribeCfg v = EsScribeCfg {
9696-- * DailyIndexSharding
9797defaultEsScribeCfg' :: ESVersion v => proxy v -> EsScribeCfg v
9898defaultEsScribeCfg' prx = EsScribeCfg {
99− essRetryPolicy = exponentialBackoff 25 <> limitRetries 5
99+ essRetryPolicy = exponentialBackoff 25000 <> limitRetries 5
100100 , essQueueSize = EsQueueSize 1000
101101 , essPoolSize = EsPoolSize 2
102102 , essAnnotateTypes = False