Geo: Implement PITR recovery before promotion of secondary node
If replication was paused on secondary, we need to use the last point in time for the database when we promote the node.
parent
e9405505
No related branches found
No related tags found
Showing
- changelogs/unreleased/pitr.yml 5 additions, 0 deletionschangelogs/unreleased/pitr.yml
- files/gitlab-ctl-commands-ee/lib/geo/promote_db.rb 108 additions, 0 deletionsfiles/gitlab-ctl-commands-ee/lib/geo/promote_db.rb
- files/gitlab-ctl-commands-ee/lib/geo/promote_to_primary_node.rb 6 additions, 7 deletions...gitlab-ctl-commands-ee/lib/geo/promote_to_primary_node.rb
- files/gitlab-ctl-commands-ee/lib/geo/replication_toggle_command.rb 27 additions, 0 deletions...lab-ctl-commands-ee/lib/geo/replication_toggle_command.rb
- files/gitlab-ctl-commands-ee/promote_db.rb 22 additions, 0 deletionsfiles/gitlab-ctl-commands-ee/promote_db.rb
- files/gitlab-ctl-commands-ee/promote_to_primary_node.rb 1 addition, 1 deletionfiles/gitlab-ctl-commands-ee/promote_to_primary_node.rb
- spec/gitlab-ctl-commands-ee/lib/geo/promote_db_spec.rb 61 additions, 0 deletionsspec/gitlab-ctl-commands-ee/lib/geo/promote_db_spec.rb
- spec/gitlab-ctl-commands-ee/lib/geo/promote_to_primary_node_spec.rb 22 additions, 2 deletions...b-ctl-commands-ee/lib/geo/promote_to_primary_node_spec.rb
- spec/gitlab-ctl-commands-ee/lib/geo/replication_toggle_command_spec.rb 13 additions, 5 deletions...tl-commands-ee/lib/geo/replication_toggle_command_spec.rb
- spec/gitlab-ctl-commands-ee/promote_db_spec.rb 14 additions, 0 deletionsspec/gitlab-ctl-commands-ee/promote_db_spec.rb
Loading
Please register or sign in to comment