-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Amit Jaiswal
committed
Sep 23, 2024
1 parent
1887918
commit ef819a6
Showing
6 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
python3 create-cluster.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
for pid in `ps -ef|grep 'CLUSTER_ENTITY'|grep -v 'grep'|awk '{print $2}'`; do | ||
echo "Killing $pid" | ||
kill $pid | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
mkdir -p logs | ||
./run-entity.sh "master" 2>&1 > logs/master.log & | ||
./run-entity.sh "resource_manager" 2>&1 > logs/resource_manager.log & | ||
./run-entity.sh "job_manager" 2>&1 > logs/job_manager.log & | ||
./run-entity.sh "task_manager" 2>&1 > logs/task_manager.log & | ||
./run-entity.sh "swf_manager" 2>&1 > logs/swf_manager.log & | ||
./run-entity.sh "wf_manager" 2>&1 > logs/wf_manager.log & | ||
./run-entity.sh "worker" 2>&1 > logs/worker.log & | ||
./run-entity.sh "agent" 2>&1 > logs/agent.log & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# command line parameters | ||
if [ $# != 2 ]; then | ||
echo "Usage: $0 <entity-type> <entity-marker>" | ||
if [ $# != 1 ]; then | ||
echo "Usage: $0 <entity-type>" | ||
exit 0 | ||
fi | ||
|
||
# read parameters | ||
ENTITY_TYPE="$1" | ||
ENTITY_MARKER="$2" | ||
|
||
# run | ||
python3 run-entity.py "$ENTITY_TYPE" "$ENTITY_MARKER" | ||
python3 run-entity.py "$ENTITY_TYPE" "CLUSTER_ENTITY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters