mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Allow upto 15 minutes of timeskew for RPC calls as well (#5774)
Default installations of cloned VMs on VMware like env might experience serious problems with time skewing, allow for a higher value instead of 3 seconds we are moving to 15 minutes just like API level skew. Access to internet and configuring ntp might not be possible, in such situations providing atleast a 15 minute skew could cater for majority of situations.
This commit is contained in:
parent
f8a3fd0c2a
commit
861550446a
@ -23,9 +23,9 @@ import (
|
||||
"github.com/minio/dsync"
|
||||
)
|
||||
|
||||
// Allow any RPC call request time should be no more/less than 3 seconds.
|
||||
// 3 seconds is chosen arbitrarily.
|
||||
const rpcSkewTimeAllowed = 3 * time.Second
|
||||
// Allow any RPC call request time should be no more/less than 15 minutes.
|
||||
// 15 minute is chosen to be best for majority use cases.
|
||||
const rpcSkewTimeAllowed = 15 * time.Minute
|
||||
|
||||
// RPC V1 - Initial version
|
||||
// RPC V2 - format.json XL version changed to 2
|
||||
|
Loading…
Reference in New Issue
Block a user