Skip to content

Commit

Permalink
Merge pull request #88 from Clever/sphinx-memory
Browse files Browse the repository at this point in the history
decrease log rollup time frame
  • Loading branch information
ghirsch1 authored Feb 8, 2021
2 parents 14343fc + fd53a30 commit 401bff2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# v0.7.4 Decrease rollup window

# v0.7.3: Add log rollups

# v0.7.2: Update to use latest leakybucket
Expand Down
2 changes: 1 addition & 1 deletion daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (d *daemon) LoadConfig(newConfig config.Config) error {
return fmt.Errorf("unrecognized handler %s", d.proxy.Handler)
}

middleware.EnableRollups(context.Background(), logger.New("sphinx"), 20*time.Second)
middleware.EnableRollups(context.Background(), logger.New("sphinx"), 10*time.Second)
d.handler = middleware.New(handler, "sphinx", func(req *http.Request) map[string]interface{} {
return map[string]interface{}{
"guid": req.Header.Get("X-Request-Id"),
Expand Down
2 changes: 1 addition & 1 deletion deb/sphinx/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: sphinx
Version: 0.7.3
Version: 0.7.4
Section: base
Priority: optional
Architecture: amd64
Expand Down

0 comments on commit 401bff2

Please sign in to comment.