Browse Source

优化文档和配置1

pull/2/head
dailidong 6 years ago
parent
commit
e54a45575f
  1. 4
      install.sh

4
install.sh

@ -187,7 +187,7 @@ masterTaskCommitRetryTimes="5"
masterTaskCommitInterval="100" masterTaskCommitInterval="100"
# master最大cpu平均负载,用来判断master是否还有执行能力 # master最大cpu平均负载,用来判断master是否还有执行能力
masterMaxCupLoadAvg="10" masterMaxCpuLoadAvg="10"
# master预留内存,用来判断master是否还有执行能力 # master预留内存,用来判断master是否还有执行能力
masterReservedMemory="1" masterReservedMemory="1"
@ -272,7 +272,7 @@ sed -i ${txt} "s#master.exec.task.number.*#master.exec.task.number=${masterExecT
sed -i ${txt} "s#master.heartbeat.interval.*#master.heartbeat.interval=${masterHeartbeatInterval}#g" conf/master.properties sed -i ${txt} "s#master.heartbeat.interval.*#master.heartbeat.interval=${masterHeartbeatInterval}#g" conf/master.properties
sed -i ${txt} "s#master.task.commit.retryTimes.*#master.task.commit.retryTimes=${masterTaskCommitRetryTimes}#g" conf/master.properties sed -i ${txt} "s#master.task.commit.retryTimes.*#master.task.commit.retryTimes=${masterTaskCommitRetryTimes}#g" conf/master.properties
sed -i ${txt} "s#master.task.commit.interval.*#master.task.commit.interval=${masterTaskCommitInterval}#g" conf/master.properties sed -i ${txt} "s#master.task.commit.interval.*#master.task.commit.interval=${masterTaskCommitInterval}#g" conf/master.properties
sed -i ${txt} "s#master.max.cpuload.avg.*#master.max.cpuload.avg=${masterMaxCupLoadAvg}#g" conf/master.properties sed -i ${txt} "s#master.max.cpuload.avg.*#master.max.cpuload.avg=${masterMaxCpuLoadAvg}#g" conf/master.properties
sed -i ${txt} "s#master.reserved.memory.*#master.reserved.memory=${masterReservedMemory}#g" conf/master.properties sed -i ${txt} "s#master.reserved.memory.*#master.reserved.memory=${masterReservedMemory}#g" conf/master.properties

Loading…
Cancel
Save