We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef17cc commit 860d5deCopy full SHA for 860d5de
18 files changed
.gitignore
@@ -17,6 +17,9 @@ archbin
17
# Output of the go coverage tool, specifically when used with LiteIDE
18
*.out
19
20
+# Profile output.
21
+*.prof
22
+
23
# Output of the build and experiment runs
24
out/
25
Makefile
@@ -151,7 +151,7 @@ bench-loadgen: FORCE
151
152
# Run dependency detector benchmarks with added op/sec column.
153
bench-dep: FORCE
154
- $(go_cmd) test ./service/coordinator/dependencygraph/... -bench "BenchmarkDependencyGraph.*" -run="^$$" | awk -f scripts/bench-tx-per-sec.awk
+ $(go_cmd) test ./service/coordinator/dependencygraph/... -timeout 60m -bench "BenchmarkDependencyGraph.*" -run="^$$" | awk -f scripts/bench-tx-per-sec.awk
155
156
157
bench-preparer: FORCE
cmd/config/app_config_test.go
@@ -118,9 +118,8 @@ func TestReadConfigCoordinator(t *testing.T) {
118
Server: makeServer("localhost", 9001),
119
Monitoring: makeMonitoring("localhost", 2119),
120
DependencyGraphConfig: &coordinator.DependencyGraphConfig{
121
- NumOfLocalDepConstructors: 1,
122
- WaitingTxsLimit: 100_000,
123
- NumOfWorkersForGlobalDepManager: 1,
+ NumOfLocalDepConstructors: 1,
+ WaitingTxsLimit: 100_000,
124
},
125
ChannelBufferSizePerGoroutine: 10,
126
@@ -137,9 +136,8 @@ func TestReadConfigCoordinator(t *testing.T) {
137
136
Endpoints: []*connection.Endpoint{makeEndpoint("validator-persister", 6001)},
138
139
140
141
- WaitingTxsLimit: 10_000,
142
143
144
145
cmd/config/samples/coordinator.yaml
@@ -17,8 +17,7 @@ validator-committer:
dependency-graph:
num-of-local-dep-constructors: 1
- waiting-txs-limit: 10_000
- num-of-workers-for-global-dep-manager: 1
+ waiting-txs-limit: 100_000
per-channel-buffer-size-per-goroutine: 10
logging:
cmd/config/templates/coordinator.yaml
@@ -21,8 +21,7 @@ validator-committer:
26
# Add monitoring configuration here if applicable
27
28
cmd/config/viper.go
@@ -20,7 +20,6 @@ func NewViperWithCoordinatorDefaults() *viper.Viper {
v := NewViperWithServiceDefault(9001, 2119)
v.SetDefault("dependency-graph.num-of-local-dep-constructors", 1)
v.SetDefault("dependency-graph.waiting-txs-limit", 100_000)
- v.SetDefault("dependency-graph.num-of-workers-for-global-dep-manager", 1)
v.SetDefault("per-channel-buffer-size-per-goroutine", 10)
return v
}
loadgen/client_test.go
@@ -150,9 +150,8 @@ func TestLoadGenForCoordinator(t *testing.T) {
150
VerifierConfig: *test.ServerToClientConfig(sigVerServer.Configs...),
ValidatorCommitterConfig: *test.ServerToClientConfig(vcServer.Configs...),
158
service/coordinator/config.go
@@ -24,8 +24,7 @@ type (
// DependencyGraphConfig is the configuration for dependency graph manager. It contains resource limits.
DependencyGraphConfig struct {
- NumOfLocalDepConstructors int `mapstructure:"num-of-local-dep-constructors"`
- WaitingTxsLimit int `mapstructure:"waiting-txs-limit"`
29
- NumOfWorkersForGlobalDepManager int `mapstructure:"num-of-workers-for-global-dep-manager"`
+ NumOfLocalDepConstructors int `mapstructure:"num-of-local-dep-constructors"`
+ WaitingTxsLimit int `mapstructure:"waiting-txs-limit"`
30
31
)
service/coordinator/coordinator.go
@@ -131,7 +131,7 @@ func NewCoordinatorService(c *Config) *Service {
131
metrics := newPerformanceMetrics()
132
133
depMgr := dependencygraph.NewManager(
134
- &dependencygraph.Config{
+ &dependencygraph.Parameters{
135
IncomingTxs: queues.coordinatorToDepGraphTxs,
OutgoingDepFreeTxsNode: queues.depGraphToSigVerifierFreeTxs,
IncomingValidatedTxsNode: queues.vcServiceToDepGraphValidatedTxs,
service/coordinator/coordinator_test.go
@@ -75,9 +75,8 @@ func newCoordinatorTestEnv(t *testing.T, tConfig *testConfig) *coordinatorTestEn
75
VerifierConfig: *test.ServerToClientConfig(svServers.Configs...),
76
ValidatorCommitterConfig: *test.ServerToClientConfig(vcServerConfigs...),
77
DependencyGraphConfig: &DependencyGraphConfig{
78
- NumOfLocalDepConstructors: 3,
79
- WaitingTxsLimit: 10,
80
- NumOfWorkersForGlobalDepManager: 3,
+ NumOfLocalDepConstructors: 3,
+ WaitingTxsLimit: 10,
81
82
ChannelBufferSizePerGoroutine: 2000,
83
Monitoring: monitoring.Config{
0 commit comments