Skip to content

Commit

Permalink
Increase logexporter timeout and add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamjvs committed Jun 12, 2018
1 parent e6f64d0 commit 87225c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster/log-dump/log-dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function dump_nodes_with_logexporter() {
local -r service_account_credentials="$(cat ${GOOGLE_APPLICATION_CREDENTIALS} | base64 | tr -d '\n')"
local -r cloud_provider="${KUBERNETES_PROVIDER}"
local -r enable_hollow_node_logs="${ENABLE_HOLLOW_NODE_LOGS:-false}"
local -r logexport_sleep_seconds="$(( 90 + NUM_NODES / 5 ))"
local -r logexport_sleep_seconds="$(( 90 + NUM_NODES / 3 ))"

# Fill in the parameters in the logexporter daemonset template.
sed -i'' -e "s@{{.LogexporterNamespace}}@${logexporter_namespace}@g" "${KUBE_ROOT}/cluster/log-dump/logexporter-daemonset.yaml"
Expand Down Expand Up @@ -345,6 +345,7 @@ function dump_nodes_with_logexporter() {
done

# Delete the logexporter resources and dump logs for the failed nodes (if any) through SSH.
"${KUBECTL}" get pods --namespace "${logexporter_namespace}" || true
"${KUBECTL}" delete namespace "${logexporter_namespace}" || true
if [[ "${#failed_nodes[@]}" != 0 ]]; then
echo -e "Dumping logs through SSH for the following nodes:\n${failed_nodes[@]}"
Expand Down

0 comments on commit 87225c0

Please sign in to comment.