Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Reduce the channel sizes (#206)
Browse files Browse the repository at this point in the history
* Reduce the channel sizes

* Increase the channel size to 2000

* Increase ack channel size to 2000 as well

* Reduce the channel size to 1000
  • Loading branch information
aravindvs authored and thuningxu committed May 25, 2017
1 parent d85ebe7 commit 6e43767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/outputhost/messagecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const (
stateProgressing
)

const ackChannelSize = 10000
const ackChannelSize = 1000

// AckID is an acknowledgement ID; not the same as common.AckID, which decomposes this string
// Capitalized because otherwise the type name conflicts horribly with local variables
Expand Down
2 changes: 1 addition & 1 deletion services/outputhost/outputhost.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import (
const (
// defaultIdleTimeout is the time to wait before we close all streams
defaultIdleTimeout = 10 * time.Minute
defaultPrefetchBufferSize = 10000 // XXX: find the optimal prefetch buffer size
defaultPrefetchBufferSize = 1000 // XXX: find the optimal prefetch buffer size
defaultUnloadChSize = 50
defaultAckMgrMapChSize = 500
defaultAckMgrIDStartFrom = 0 // the default ack mgr id for this host to start from
Expand Down

0 comments on commit 6e43767

Please sign in to comment.