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 e702e3a commit 2c05217Copy full SHA for 2c05217
priv/bin_script
@@ -77,7 +77,14 @@ relx_rem_sh() {
77
78
# Generate a random id
79
relx_gen_id() {
80
- od -X -N 4 /dev/urandom | head -n1 | awk '{print $2}'
+ # To prevent exhaustion of atoms on target node, optionally avoid
81
+ # generation of random node prefixes, if it is guaranteed calls
82
+ # are always sequential.
83
+ if [ -z "${NODETOOL_NODE_PREFIX}" ]; then
84
+ dd count=1 bs=4 if=/dev/urandom 2> /dev/null | od -x | head -n1 | awk '{print $2$3}'
85
+ else
86
+ echo "${NODETOOL_NODE_PREFIX}"
87
+ fi
88
}
89
90
# Control a node
0 commit comments