更新时间:2024-11-29 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
ZooKeeper常用参数
参数入口:
请参考修改集群服务配置参数,进入ZooKeeper“全部配置”页面。在搜索框中输入参数名称。
| 
       配置参数  | 
     
       说明  | 
     
       默认值  | 
    
|---|---|---|
| 
       skipACL  | 
     
       是否跳过ZooKeeper节点的权限检查。  | 
     
       no  | 
    
| 
       maxClientCnxns  | 
     
       ZooKeeper的最大连接数,在连接数多的情况下,建议增加。  | 
     
       2000  | 
    
| 
       LOG_LEVEL  | 
     
       日志级别,在调试的时候,可以改为DEBUG。  | 
     
       INFO  | 
    
| 
       acl.compare.shortName  | 
     
       当Znode的ACL权限认证类型为SASL时,是否仅使用principal的用户名部分进行ACL权限认证。  | 
     
       true  | 
    
| 
       synclimit  | 
     
       Follower与leader进行同步的时间间隔(单位为tick)。如果在指定的时间内leader没响应,连接将不能被建立。  | 
     
       15  | 
    
| 
       tickTime  | 
     
       一次tick的时间(毫秒),它是ZooKeeper使用的基本时间单位,心跳、超时的时间都由它来规定。  | 
     
       4000  | 
    
 
  ZooKeeper内部时间由参数ticktime和参数synclimit控制,如需调大ZooKeeper内部超时时间,需要调大客户端连接ZooKeeper的超时时间。
   父主题: 使用ZooKeeper