Selaa lähdekoodia

reduce recommended bcrypt cost to the lowest allowed value

Two objectives:

1. Reduce thundering-herd effects on server restart (a cost of 4 should be
approximately 1 millisecond of CPU time per reconnecting client)
2. Speed up mobile reattach as much as possible (see also #1420)
tags/v2.5.0-rc1
Shivaram Lingamneni 3 vuotta sitten
vanhempi
commit
e191e67632
2 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 2
    1
      default.yaml
  2. 2
    1
      traditional.yaml

+ 2
- 1
default.yaml Näytä tiedosto

@@ -372,7 +372,8 @@ accounts:
372 372
             max-attempts: 30
373 373
 
374 374
         # this is the bcrypt cost we'll use for account passwords
375
-        bcrypt-cost: 9
375
+        # (note that 4 is the lowest value allowed by the bcrypt library)
376
+        bcrypt-cost: 4
376 377
 
377 378
         # length of time a user has to verify their account before it can be re-registered
378 379
         verify-timeout: "32h"

+ 2
- 1
traditional.yaml Näytä tiedosto

@@ -344,7 +344,8 @@ accounts:
344 344
             max-attempts: 30
345 345
 
346 346
         # this is the bcrypt cost we'll use for account passwords
347
-        bcrypt-cost: 9
347
+        # (note that 4 is the lowest value allowed by the bcrypt library)
348
+        bcrypt-cost: 4
348 349
 
349 350
         # length of time a user has to verify their account before it can be re-registered
350 351
         verify-timeout: "32h"

Loading…
Peruuta
Tallenna