Skip to content

Commit

Permalink
[Ingest Manager] Agent longpoll (elastic#19244)
Browse files Browse the repository at this point in the history
* init

* simple things made simple

* Update fleet_gateway.go
  • Loading branch information
michalpristas authored Jun 18, 2020
1 parent ac51570 commit e465e96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions x-pack/elastic-agent/pkg/agent/application/fleet_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import (

// Default Configuration for the Fleet Gateway.
var defaultGatewaySettings = &fleetGatewaySettings{
Duration: 30 * time.Second,
Jitter: 5 * time.Second,
Backoff: backoffSettings{
Init: 1 * time.Second,
Max: 10 * time.Second,
Duration: 1 * time.Second, // time between successful calls
Jitter: 500 * time.Millisecond, // used as a jitter for duration
Backoff: backoffSettings{ // time after a failed call
Init: 5 * time.Second,
Max: 60 * time.Second,
},
}

Expand Down
2 changes: 1 addition & 1 deletion x-pack/elastic-agent/pkg/kibana/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func NewWithRawConfig(log *logger.Logger, config *config.Config, wrapper wrapper

cfg := &Config{}
if err := config.Unpack(cfg); err != nil {
return nil, errors.Wrap(err, "invidate configuration")
return nil, errors.Wrap(err, "invalidate configuration")
}

return NewWithConfig(l, cfg, wrapper)
Expand Down

0 comments on commit e465e96

Please sign in to comment.