Skip to content

Commit

Permalink
Merge branch 'master' into edit-config_help
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored May 30, 2022
2 parents 5a5d280 + 04c4927 commit 5d2e876
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/bench/ycsb.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ func (config ycsbConfig) toProperties() (*properties.Properties, error) {

// these config are always included in the config file
// should be overwritten if they are passed through the command line
if config.ReadProportion != 0 {
if config.ReadProportion != 0.95 {
// we don't need to check errors since we disabled expansion
_, _, _ = result.Set("readproportion", fmt.Sprint(config.ReadProportion))
}
if config.UpdateProportion != 0 {
if config.UpdateProportion != 0.05 {
_, _, _ = result.Set("updateproportion", fmt.Sprint(config.UpdateProportion))
}
if config.ScanProportion != 0 {
Expand Down
2 changes: 1 addition & 1 deletion embed/templates/systemd/system.service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LimitSTACK=10485760
AmbientCapabilities=CAP_NET_RAW
{{- end}}
User={{.User}}
ExecStart={{.DeployDir}}/scripts/run_{{.ServiceName}}.sh
ExecStart=/bin/bash -c '{{.DeployDir}}/scripts/run_{{.ServiceName}}.sh'
{{- if eq .ServiceName "prometheus"}}
ExecReload=/bin/bash -c 'kill -HUP $MAINPID $(pidof {{.DeployDir}}/bin/ng-monitoring-server)'
{{end}}
Expand Down
4 changes: 2 additions & 2 deletions embed/templates/systemd/tispark.service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ User={{.User}}
{{- if ne .JavaHome ""}}
Environment="JAVA_HOME={{.JavaHome}}"
{{- end}}
ExecStart={{.DeployDir}}/sbin/start-{{.ServiceName}}.sh
ExecStop={{.DeployDir}}/sbin/stop-{{.ServiceName}}.sh
ExecStart=/bin/bash -c '{{.DeployDir}}/sbin/start-{{.ServiceName}}.sh'
ExecStop=/bin/bash -c '{{.DeployDir}}/sbin/stop-{{.ServiceName}}.sh'
Type=forking
{{- if .Restart}}
Restart={{.Restart}}
Expand Down
4 changes: 2 additions & 2 deletions pkg/cluster/operation/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ func checkOSInfo(opt *CheckOptions, osInfo *sysinfo.OS) *CheckResult {
// check version
// CentOS 8 is known to be not working, and we don't have plan to support it
// as of now, we may add support for RHEL 8 based systems in the future.
if ver, _ := strconv.ParseFloat(osInfo.Version, 64); ver < 7 || ver >= 8 {
result.Err = fmt.Errorf("%s %s not supported, use version 7 please",
if ver, _ := strconv.ParseFloat(osInfo.Version, 64); ver < 7 {
result.Err = fmt.Errorf("%s %s not supported, use version 8 please",
osInfo.Name, osInfo.Release)
return result
}
Expand Down

0 comments on commit 5d2e876

Please sign in to comment.