跳到主要内容 跳到补充内容

配置确定将哪一个服务器用于负载均衡的指标

您可以编辑和改写用于在集群模式下确定将哪一个服务器用于负载均衡的默认配置。

步骤

  1. 打开位于以下 .jar 文件中的 monitoring_client.properties 文件:
    <ApplicationPath>\WEB-INF\lib\org.talend.monitoring.client-x.y.z.rabcd.jar
  2. 根据需要编辑值。
    例如:
    # Set the default NbCPULimit.WEIGHT
    org.talend.monitoring.limits.NbCPULimit.WEIGHT=5
    
    # Set the default minimum required number of CPU here
    org.talend.monitoring.limits.NbCPULimit.LOWER_LIMIT=2
    
    # Set the default maximum required number of CPU here
    org.talend.monitoring.limits.NbCPULimit.HIGHER_LIMIT=2147483647
    信息注释注: 此文件中定义的权重值 (0 到 5) 将影响用于处理数据的服务器。
  3. 保存您的修改。
  4. 复制以下目录中编辑过的文件以改写位于 .jar 文件中的该文件:
    <ApplicationPath>\WEB-INF\lib\org.talend.monitoring.client-x.y.z.rabcd.jar

本页面有帮助吗?

如果您发现此页面或其内容有任何问题 – 打字错误、遗漏步骤或技术错误 – 请告诉我们如何改进!