Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit d1914bc

Browse files
committed
Avoid unnecessary syscalls by using absolute paths in shell
1 parent ed5a499 commit d1914bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

metrics/scaling/k8s_scale_nc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ nc_port=33101
2424
nc_req_msg=$(head -c $nc_req_msg_len /dev/zero | tr '\0' 'x')
2525
nc_percentiles=(0 1 5 25 50 75 95 99 100)
2626

27-
pod_command="[\"nc\", \"-lk\", \"-p\", \"${nc_port}\", \"-e\", \"sh\", \"-c\", \"echo \${EPOCHREALTIME/./}; cat; echo \${EPOCHREALTIME/./}\"]"
27+
pod_command="[\"nc\", \"-lk\", \"-p\", \"${nc_port}\", \"-e\", \"/bin/sh\", \"-c\", \"/bin/echo \${EPOCHREALTIME/./}; /bin/cat; /bin/echo \${EPOCHREALTIME/./}\"]"
2828

2929
# Set some default metrics env vars
3030
TEST_ARGS="runtime=${RUNTIME}"

0 commit comments

Comments
 (0)