Skip to content

Commit

Permalink
Merge pull request #485 from iotaledger/fix/node-shutdown
Browse files Browse the repository at this point in the history
Fix node shutdown and cleanup Docker
  • Loading branch information
karimodm authored Nov 2, 2023
2 parents 81f9fea + d9c93ab commit 8ae574a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/metrics/collector/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (m *Metric) schedulePruning(labelValues []string) {

func (m *Metric) shutdown() {
if m.pruningExecutor != nil {
m.pruningExecutor.Shutdown()
m.pruningExecutor.Shutdown(timed.CancelPendingElements)
}
}

Expand Down
9 changes: 4 additions & 5 deletions tools/docker-network/run.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#!/bin/bash
set -e


# Create a function to join an array of strings by a given character
function join { local IFS="$1"; shift; echo "$*"; }

# All parameters can be optional now, just make sure we don't have too many
if [[ $# -gt 4 ]] ; then
echo 'Call with ./run [replicas=1|2|3|...] [monitoring=0|1] [feature=0|1]'
if [[ $# -gt 2 ]] ; then
echo 'Call with ./run.sh [monitoring=0|1]'
exit 0
fi

REPLICAS=${1:-1}
MONITORING=${2:-0}
MONITORING=${1:-0}

export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
Expand Down
2 changes: 1 addition & 1 deletion tools/genesis-snapshot/presets/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ var Feature = []options.Option[snapshotcreator.Options]{
iotago.NewV3ProtocolParameters(
iotago.WithNetworkOptions("feature", "rms"),
iotago.WithSupplyOptions(4_600_000_000_000_000, 100, 1, 10, 100, 100, 100),
iotago.WithTimeProviderOptions(1697631694, 10, 13),
iotago.WithTimeProviderOptions(time.Now().Unix(), 10, 13),
iotago.WithLivenessOptions(30, 30, 10, 20, 30),
// increase/decrease threshold = fraction * slotDurationInSeconds * schedulerRate
iotago.WithCongestionControlOptions(500, 500, 500, 800000, 500000, 100000, 1000, 100),
Expand Down

0 comments on commit 8ae574a

Please sign in to comment.