reiabreu commented on code in PR #8706:
URL: https://github.com/apache/storm/pull/8706#discussion_r3307378963


##########
dev-tools/cluster/netsim.sh:
##########
@@ -0,0 +1,101 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Simulate network delay/jitter/loss on the worker hosts (supervisor 
containers)
+# using Linux tc/netem. The Storm image has no `tc`, so we inject the qdisc 
from
+# a throwaway helper container that shares each supervisor's network namespace
+# (--net container:...) -- no image rebuild, no compose change required.
+#
+# netem applies to *egress* on each supervisor's eth0, so it shapes ALL traffic
+# leaving that container (inter-worker tuples, but also heartbeats to 
Nimbus/ZK).
+# Keep the delay moderate (<= ~150ms) so heartbeats don't time out. With both

Review Comment:
   can we echo a warning if supplied delay > 150?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to