Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/google.golang.org/grpc…
Browse files Browse the repository at this point in the history
…-1.56.1
  • Loading branch information
cvetkovic authored Jul 3, 2023
2 parents 5136b42 + 7cbaf59 commit 1a69504
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metric/scrape_scales.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def promql_query():
query_unready_pods = 'max(autoscaler_not_ready_pods) by(configuration_name)'
query_pending_pods = 'max(autoscaler_pending_pods) by(configuration_name)'
query_terminating_pods = 'max(autoscaler_terminating_pods) by(configuration_name)'
query_activator_queue = 'max(activator_request_concurrency) by(configuration_name)'
query_activator_queue = 'sum(activator_request_concurrency) by(configuration_name)'

desired_pods_count = {x.split()[0]: int(x.split()[1]) for x in os.popen(get_promql_query(query_desired_pods)()).read().strip().split('\n')}
running_pods_count = {x.split()[0]: int(x.split()[1]) for x in os.popen(get_promql_query(query_running_pods)()).read().strip().split('\n')}
Expand Down
7 changes: 7 additions & 0 deletions scripts/setup/create_multinode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,13 @@ function clone_loader_on_workers() {

# Notify the master that all nodes have joined the cluster
server_exec $MASTER_NODE 'tmux send -t master "y" ENTER'

namespace_info=$(server_exec $MASTER_NODE "kubectl get namespaces")
while [[ ${namespace_info} != *'knative-serving'* ]]; do
sleep 60
namespace_info=$(server_exec $MASTER_NODE "kubectl get namespaces")
done

echo "Master node $MASTER_NODE finalised."

# Copy API server certificates from master to each worker node
Expand Down

0 comments on commit 1a69504

Please sign in to comment.