Some Terminologies for geo-replication:
Automatic asynchronous replication – a geo-secondary is
created for an existing database on any logical server other than the server
where the primary database is located. When it is created, it is populated with
the data of the primary database by a process known as seeding. Updates to the
database are automatically and asynchronously replicated. Asynchronous
replication means that the transactions are committed on the primary database
before they are replicated.
Readable geo-secondary replicas – An application can access
a geo-secondary replica to execute read-only queries using the same or
different security principals. The geo-secondary replicas are chargeable after
replication and failover but if they remain read-only geo-secondary to the
primary, they are free of charge.
A planned geo-failover switches the roles of the primary and
geo-secondary databases after completing full data synchronization. A planned
failover does not result in data loss. Since the replication is done based on
well-known log shipping techniques, it duration depends on the size of the log
at the origin. This kind of failover is applicable to performing disaster
recovery drills, relocating the database to a different region, returning the
database to the primary region after the outage has been mitigated.
On the other hand, unplanned geo-failover immediately
switches the geo-secondary to the primary role without any synchronization with
the primary. Any transactions committed on the primary but not yet replicated
to the secondary are lost. Only when the primary is not available, should the
geo-failover be unplanned.
There can be at most four geo-secondaries for a single
primary. Multiple geo-secondaries is tactical redundancy. Additional
secondaries can also be used to scale out read-only workloads.
There can be at most four geo-secondaries for a
single primary. Multiple geo-secondaries are tactical redundancy. Additional
secondaries can also be used to scale out read-only workloads. If there’s only
one secondary and it fails, the application is exposed to higher risk until a
new secondary is created.
Each geo-secondary can be a single database or a
database in an elastic pool. The elastic pool choice for each geo-secondary database
is separate and does not depend on the configuration of any other replica. Each
elastic pool is contained within a single logical server. Database names must
be unique in a pool so multiple geo secondaries cannot share the same pool.
A geo-secondary that has finished initial seeding
can be failed over on demand by the user. If the primary is unavailable, only
the unplanned geo-failover can be used. The geo-secondary becomes the new
primary. Once the outage is mitigated, the system makes the recovered primary a
geo-secondary. Linking of all secondaries to the new primary is automatically
done and replication relationships are reconfigured. After the outage that
caused the geo-failover is mitigated, it may be desirable to return the primary
to its original region.
Preparing for a geo-failover involves validating
that the authentication and network access for the secondary server are
properly configured. The backup retention policy on the secondary database
matches that of the primary. This setting is not part of the database, and it
is not replicated from the primary. The default configuration of a
geo-secondary has a default Point-in-time Recovery (PITR) retention period of 7
days.
No comments:
Post a Comment