Skip to content

Commit

Permalink
codis-ha change log level and change redis-server default daemonsize …
Browse files Browse the repository at this point in the history
…value
  • Loading branch information
left2right committed Oct 17, 2017
1 parent 63f906d commit 0f5a543
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/ha/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ Options:

t, err := client.Model()
if err != nil {
log.PanicErrorf(err, "rpc fetch model failed")
log.ErrorErrorf(err, "rpc fetch model failed")
}
log.Warnf("topom =\n%s", t.Encode())

client.SetXAuth(t.ProductName)

overview, err := client.Overview()
if err != nil {
log.PanicErrorf(err, "rpc fetch overview failed")
log.ErrorErrorf(err, "rpc fetch overview failed")
}
prodcutAuth := overview.Config.ProductAuth

Expand Down Expand Up @@ -121,7 +121,7 @@ type HealthyChecker struct {
func newHealthyChecker(client *topom.ApiClient) *HealthyChecker {
stats, err := client.Stats()
if err != nil {
log.PanicErrorf(err, "rpc stats failed")
log.ErrorErrorf(err, "rpc stats failed")
}

hc := &HealthyChecker{Stats: stats}
Expand Down
2 changes: 1 addition & 1 deletion config/redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ tcp-keepalive 300

# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize yes
daemonize no

# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
Expand Down
2 changes: 1 addition & 1 deletion extern/redis-3.2.8/redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ tcp-keepalive 300

# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize yes
daemonize no

# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
Expand Down

0 comments on commit 0f5a543

Please sign in to comment.