Skip to content
Snippets Groups Projects
Unverified Commit d2c78826 authored by Levente Pap's avatar Levente Pap
Browse files

Fix bugs + enable spammer on peer_master

parent ae8c78f1
No related branches found
No related tags found
No related merge requests found
...@@ -55,16 +55,16 @@ func run(_ *node.Plugin) { ...@@ -55,16 +55,16 @@ func run(_ *node.Plugin) {
measureCPUUsage() measureCPUUsage()
measureMemUsage() measureMemUsage()
measureSynced() measureSynced()
measureMPSPerPayload()
measureMessageTips()
measureReceivedTPS()
measureValueTips()
// gossip network traffic // gossip network traffic
g := gossipCurrentTraffic() g := gossipCurrentTraffic()
gossipCurrentRx.Store(uint64(g.BytesRead)) gossipCurrentRx.Store(uint64(g.BytesRead))
gossipCurrentTx.Store(uint64(g.BytesWritten)) gossipCurrentTx.Store(uint64(g.BytesWritten))
}, 1*time.Second, shutdownSignal) }, 1*time.Second, shutdownSignal)
timeutil.Ticker(measureMPSPerPayload, MPSMeasurementInterval, shutdownSignal)
timeutil.Ticker(measureMessageTips, MessageTipsMeasurementInterval, shutdownSignal)
timeutil.Ticker(measureReceivedTPS, TPSMeasurementInterval, shutdownSignal)
timeutil.Ticker(measureValueTips, ValueTipsMeasurementInterval, shutdownSignal)
} }
}, shutdown.PriorityMetrics); err != nil { }, shutdown.PriorityMetrics); err != nil {
log.Panicf("Failed to start as daemon: %s", err) log.Panicf("Failed to start as daemon: %s", err)
......
...@@ -44,7 +44,7 @@ services: ...@@ -44,7 +44,7 @@ services:
command: > command: >
--config-dir=/tmp --config-dir=/tmp
--database.directory=/tmp/mainnetdb --database.directory=/tmp/mainnetdb
--node.enablePlugins=bootstrap,prometheus --node.enablePlugins=bootstrap,prometheus,spammer
volumes: volumes:
- ./config.docker.json:/tmp/config.json:ro - ./config.docker.json:/tmp/config.json:ro
- goshimmer-cache:/go - goshimmer-cache:/go
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment