HADOOP-18906. Increase default batch size of ZKDTSM token seqnum to reduce overflow speed of zonde dataVersion. (#6097)
This commit is contained in:
parent
60f3a2b101
commit
23c22b2823
@ -110,8 +110,9 @@ public abstract class ZKDelegationTokenSecretManager<TokenIdent extends Abstract
|
|||||||
public static final int ZK_DTSM_ZK_CONNECTION_TIMEOUT_DEFAULT = 10000;
|
public static final int ZK_DTSM_ZK_CONNECTION_TIMEOUT_DEFAULT = 10000;
|
||||||
public static final int ZK_DTSM_ZK_SHUTDOWN_TIMEOUT_DEFAULT = 10000;
|
public static final int ZK_DTSM_ZK_SHUTDOWN_TIMEOUT_DEFAULT = 10000;
|
||||||
public static final String ZK_DTSM_ZNODE_WORKING_PATH_DEAFULT = "zkdtsm";
|
public static final String ZK_DTSM_ZNODE_WORKING_PATH_DEAFULT = "zkdtsm";
|
||||||
// by default it is still incrementing seq number by 1 each time
|
// By default, increase seq number by 100 each time to reduce overflow
|
||||||
public static final int ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE_DEFAULT = 1;
|
// speed of znode dataVersion which is 32-integer now.
|
||||||
|
public static final int ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE_DEFAULT = 100;
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory
|
private static final Logger LOG = LoggerFactory
|
||||||
.getLogger(ZKDelegationTokenSecretManager.class);
|
.getLogger(ZKDelegationTokenSecretManager.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user