Skip to content

Commit

Permalink
Row level parallelism (#161)
Browse files Browse the repository at this point in the history
* refactor(scheduler): latched msg shouldn't block others

* add more metric for sliding window

* use xxhash instead of hashstructure/fnv

* update grafana dashboard
  • Loading branch information
Ryan-Git authored May 22, 2019
1 parent 886692c commit d671aeb
Show file tree
Hide file tree
Showing 12 changed files with 671 additions and 200 deletions.
7 changes: 5 additions & 2 deletions cmd/gravity/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import (
"runtime"
"syscall"

"github.com/OneOfOne/xxhash"
"github.com/fsnotify/fsnotify"
hplugin "github.com/hashicorp/go-plugin"
jsoniter "github.com/json-iterator/go"
json "github.com/json-iterator/go"
"github.com/juju/errors"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
Expand All @@ -25,7 +26,7 @@ import (
"github.com/moiot/gravity/pkg/utils"
)

var myJson = jsoniter.Config{
var myJson = json.Config{
EscapeHTML: true,
SortMapKeys: true,
ValidateJsonRawMessage: true,
Expand All @@ -51,6 +52,8 @@ func main() {
os.Exit(0)
}

log.Info("xxhash backend: ", xxhash.Backend)

if cfg.ConfigFile != "" {
if err := cfg.ConfigFromFile(cfg.ConfigFile); err != nil {
log.Fatalf("failed to load config from file: %v", errors.ErrorStack(err))
Expand Down
Loading

0 comments on commit d671aeb

Please sign in to comment.