Skip to content

Commit

Permalink
Add timeout queue and process interval durations to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Mar 19, 2019
1 parent 5fb2735 commit 5929023
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gossip/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ func DefaultConfig() *Config {
EnableCompression: false,
BroadcastTimeout: 5 * time.Second,
LeavePropagateDelay: 0,
TimeoutQueues: 200 * time.Millisecond,
ProcessInterval: 1 * time.Second,
}
}

// Config is the configuration for creating an Auditor instance
// Config is the configuration for creating an Agent instance
type Config struct {
// The name of this node. This must be unique in the cluster. If this
// is not set, Auditor will set it to the hostname of the running machine.
Expand Down Expand Up @@ -99,6 +101,12 @@ type Config struct {

// Comma-delimited list of Alert servers ([host]:port), through which an agent can post alerts
AlertsUrls []string

// Timeout enqueuing elements on a channel
TimeoutQueues time.Duration

// Interval to send out messages to other agents
ProcessInterval time.Duration
}

// AddrParts returns the parts of the BindAddr that should be
Expand Down

0 comments on commit 5929023

Please sign in to comment.