3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-28 23:19:30 +01:00

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)
This commit is contained in:
Shivaram Lingamneni 2021-01-21 01:42:28 -05:00
parent 2e7cf3cc1e
commit e191e67632
2 changed files with 4 additions and 2 deletions

View File

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

View File

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