Commit 6e139b8d authored by Nick Thomas's avatar Nick Thomas
Browse files

Merge branch 'check-all-production-lbs' into 'master'

Add production LBs to the list of checked hosts

See merge request gitlab-com/migration!154
parents eea7752a 6716eaac
...@@ -222,7 +222,7 @@ you see something happening that shouldn't be public, mention it. ...@@ -222,7 +222,7 @@ you see something happening that shouldn't be public, mention it.
- [ ] 🐺 {+ Coordinator +}: To monitor the state of DNS, network blocking etc, run the below command on two machines - one with VPN access, one without. - [ ] 🐺 {+ Coordinator +}: To monitor the state of DNS, network blocking etc, run the below command on two machines - one with VPN access, one without.
* Staging: `watch -n 5 bin/hostinfo staging.gitlab.com registry.staging.gitlab.com altssh.staging.gitlab.com gitlab-org.staging.gitlab.io gstg.gitlab.com altssh.gstg.gitlab.com gitlab-org.gstg.gitlab.io` * Staging: `watch -n 5 bin/hostinfo staging.gitlab.com registry.staging.gitlab.com altssh.staging.gitlab.com gitlab-org.staging.gitlab.io gstg.gitlab.com altssh.gstg.gitlab.com gitlab-org.gstg.gitlab.io`
* Production: `watch -n 5 bin/hostinfo gitlab.com registry.gitlab.com altssh.gitlab.com gitlab-org.gitlab.io gprd.gitlab.com altssh.gprd.gitlab.com gitlab-org.gprd.gitlab.io` * Production: `watch -n 5 bin/hostinfo gitlab.com registry.gitlab.com altssh.gitlab.com gitlab-org.gitlab.io gprd.gitlab.com altssh.gprd.gitlab.com gitlab-org.gprd.gitlab.io fe{01..14}.lb.gitlab.com altssh{01..02}.lb.gitlab.com`
### Health check ### Health check
......
...@@ -51,7 +51,7 @@ function ssh_port() { ...@@ -51,7 +51,7 @@ function ssh_port() {
} }
function http_status() { function http_status() {
local status=$((curl --head --connect-timeout 5 --max-time 5 --silent ${1}|head -1|cut -d\ -f2) || echo "Error") local status=$((curl --insecure --head --connect-timeout 5 --max-time 5 --silent ${1}|head -1|cut -d\ -f2) || echo "Error")
if [[ -z $status ]]; then if [[ -z $status ]]; then
echo "Invalid" echo "Invalid"
else else
...@@ -61,7 +61,7 @@ function http_status() { ...@@ -61,7 +61,7 @@ function http_status() {
function redirect() { function redirect() {
if ! curl --head --connect-timeout 5 --max-time 5 --silent "$1"|grep Location|sed -E 's/^.*: +//'|cut -c 1-40; then if ! curl --insecure --head --connect-timeout 5 --max-time 5 --silent "$1"|grep Location|sed -E 's/^.*: +//'|cut -c 1-40; then
echo "-" echo "-"
fi fi
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment