Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-com
migration
Commits
3dd2f651
Commit
3dd2f651
authored
Aug 10, 2018
by
John Jarvis
Browse files
Will check replication status on all secondaries as well.
parent
d72d47c9
Pipeline
#89095
passed with stage
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bin/scripts/02_failover/060_go/p03/check-wal-secondary-sync.sh
View file @
3dd2f651
...
...
@@ -13,3 +13,10 @@ fi
last_event
=
$(
ssh
"
$POSTGRESQL_GCP_WAL_SECONDARY
"
'sudo gitlab-psql -t -d gitlabhq_production -c "SELECT now() - pg_last_xact_replay_timestamp();"'
)
echo
"Last event seen for
$POSTGRESQL_GCP_WAL_SECONDARY
was
${
last_event
}
ago."
echo
"-----"
for
secondary
in
${
POSTGRESQL_GCP_SECONDARIES
[*]
}
do
last_event
=
$(
ssh
"
$secondary
"
'sudo gitlab-psql -t -d gitlabhq_production -c "SELECT now() - pg_last_xact_replay_timestamp();"'
)
echo
"Last event seen for
$secondary
was
${
last_event
}
ago."
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment