Manage read scale-out setting in Azure Portal - sql-server

I'm trying to see the current setting for read-scale out in the Azure Portal.
The document says:
You can manage the read scale-out setting on the Configure database
blade.
I'm unable to find any "Configure" option in the menu on the left in the SQL Managed Instance, or for individual DBs.
This is what I have available:
Where can I find this option?
The pricing tier for the SQL Managed Instance is:
Business Critical Standard-series (Gen 5) (2048 GB, 24 vCores,
Geo-redundant backup storage)

Read scale-out is enabled by default on Premium, Business Critical, and Hyperscale service tiers. For Hyperscale, one secondary replica is created by default for new databases. Read scale-out cannot be enabled in Basic, Standard, or General Purpose service tiers. Read scale-out is automatically disabled on Hyperscale databases configured with zero replicas.
Refer official document: Use read-only replicas to offload read-only query workloads

Related

AlwaysOn feature in CloudSQL-SQLServer

I'm migrating a SQLServer DB which uses AlwaysOn feature for high availability in cluster on-premises. How to enable this in CloudSQL-SQLServer?, if not possible, is there any workaround ?
I'm a little confuse with HA and replica approaches and not sure if the combination of both could help on this.
The primary reason for using replication is to scale the use of data in a database without degrading performance. Other reasons include migrating data between regions.
Additionally, if an original instance is corrupted, a replica could
be promoted to a standalone instance (in which case, existing
replicas would not consider that instance as primary).
When referring to a Cloud SQL instance, the instance that is
replicated is called the primary instance and the copies are called
read replicas. The primary instance and read replicas all reside in
Cloud SQL.
Replication in Cloud SQL : SQL Server is currently in Pre-General Availability stage. SQL Server replication is implemented using SQL Server Read Scale Availability Groups.This feature only applies to the SQL Server 2017 Enterprise version of Cloud SQL for SQL Server. The preview is limited to the instances created or cloned on or after June 21, 2021.
The document reference for the same is here.
However, the purpose of an HA configuration is to reduce downtime when a zone or instance becomes unavailable. This might happen during a zonal outage, or when an instance becomes corrupted. With HA, your data continues to be available to client applications. The HA configuration, sometimes called a cluster, provides data redundancy.
The document reference for configuring HA for new/existing SQL Server
instances is here.
Note : Once you start the high availability configuration on an instance, you cannot stop it.

Can I remotely connect to RDS sql server instance to support always on high availability, row level security feature?

My sql server db will be hosted on amazon RDS. I want to implement always on high availability feature, row level security feature, horizontal partitioning feature for my SaaS application to support multi tenancy without performance degradation. The RDS instance doesn't give me access to the underlying file system like an ec2 would, but if I connect remotely to the rds db instance through SSMS then will I be able to do such features implementation?
One of the value propositions (arguably the value proposition) of RDS is you're delegating some of the administrative burdens to Amazon. One of those is "how to provide HA". When last I looked, they were using Database Mirroring to provide that, but that shouldn't matter to you (or, if it does, I'd be interested in hearing more about why). Some day they'll transition to using Availability Groups, but as long as they're delivering on their RPO and RTO agreements, the actual technology they use to provide them shouldn't matter (much).
As to RLS, I don't have any experience with it but reading up on it I don't see anything that's incompatible with how RDS works that would prevent you from using it. That is, it all looks like database-scoped DDL which RDS (generally) doesn't restrict.
RDS instance does not provide access to underlying file system no matter what you use as client.
There are different SQL server versions and editions that are available.
More details at https://aws.amazon.com/rds/sqlserver/.
Regarding HA, AWS RDS provides so called Multi A-Z deployment and minimum SQL edition that can be used is standard edition. Before it used database mirroring, but thez support now Always On Availability Groups. Enabling Multi A-Z deployment is done through AWS Console.
https://aws.amazon.com/about-aws/whats-new/2018/11/amazon-rds-for-sql-server-now-supports-alwayson-availability-groups/

how to synchronize two Odoo (postgresql) databases

I need to syncronize two openerp physically distanced databases. One database is on local install, and the second database must on a cloud environment.
Since I lack of good internet access, I cannot have the system working full time on cloud, and the solution is to allow access to the database via cloud (A) and local install (B). When I am on the company, I use the local install (A), and when outside the company, I use the cloud Odoo system (B).
With synchronization, I want to have all data entered on the cloud A available on the local install B and vice-versa.
The synchronization should be time defined and/or on demand.
Any help?
you have to search about something called : Replication.
there are of types of replication, and what you are searching about is : Multi master replication.
it's a little bit complex processus to set up a replication between database and monitor that replication, so i will give you some useful ressources.
Replication Clustering and long pooling in PostgreSQL.
Replication in postgreSQL 9.5 [officiel documentation]

Whats the best redundancy setup on AWS for SQL Server 2014

We're migrating our environment over to AWS from a colo facility. As part of that we are upgrading our 2 SQL Server 2005s to 2014s. The two are currently mirrored and we'd like to keep it that way or find other ways to make the servers redundant. # of transactions/server-use is light for our app - but it's in production, requires high availability, and, as a result, requires some kind of fail over.
We have already setup one EC2 instance and put SQL server 2014 on it (as opposed to using RDBMS for licensing reasons and are now exploring what to do next to achieve this.
What suggestions do people have to achieve the redundancy we need?
I've seen two options thus far from here and googling around. I list them below - we're very open to other options!
First, use RDBMS mirroring service, but I can't tell if that only applies if the principal server is also RDBMS - it also doesn't help with licensing.
Second, use multiple availability zones. What are the pros/cons of this versus using different regions altogether (e.g., bandwidth issues) etc? And does multi-AZ actually give redundancy (if AWS goes down in Oregon, for example, then doesn't everything go down)?
Thanks for the help!
The Multi-AZ capability of Amazon RDS (Relational Database Service) is designed to offer high-availability for a database.
From Amazon RDS Multi-AZ Deployments:
When you provision a Multi-AZ DB Instance, Amazon RDS automatically creates a primary DB Instance and synchronously replicates the data to a standby instance in a different Availability Zone (AZ). Each AZ runs on its own physically distinct, independent infrastructure, and is engineered to be highly reliable. In case of an infrastructure failure (for example, instance hardware failure, storage failure, or network disruption), Amazon RDS performs an automatic failover to the standby, so that you can resume database operations as soon as the failover is complete. Since the endpoint for your DB Instance remains the same after a failover, your application can resume database operation without the need for manual administrative intervention.
Multiple Availability Zones are recommended to improve availability of systems. Each AZ is a separate physical facility such that any disaster that should befall one AZ should not impact another AZ. This is normally considered sufficient redundancy rather than having to run across multiple Regions. It also has the benefit that data can be synchronously replicated between AZs due to low-latency connections, while this might not be possible between Regions since they are located further apart.
One final benefit... The Multi-AZ capability of Amazon RDS can be activated by simply selecting "Yes" when the database is launched. Running your own database and using mirroring services requires you to do considerably more work on an on-going basis.

SQL Server Database real-time replication

I have a database on an SQL Server instance hosted on Azure Windows VM. There are two things I need to achieve.
Create a real-time duplicate of the database on another server. i.e. I need my database to make a copy of itself and then copy all of it's data to the duplicate at regular intervals. Let's say, 2 hours.
If my original database fails due to some reason, I need it to redirect all read/write requests to the duplicate database.
Any elaborate answer or links to any articles you deem helpful are welcome. Thank you!
You can have a high availability solution for your SQL Server databases in Azure using AlwaysOn Availability Groups or database mirroring.
Basically, you need 3 nodes for true HA. The third one can be a simple file server that will work as the witness to complete the quorum for your failover cluster. Primary and Secondary will be synchronized and in case of a failure, secondary will take over. You can also configure read requests to be split among instances.
If HA is not really that important for your use case, disaster recovery will be a cheaper solution. Check the article below for more info.
High Availability and Disaster Recovery for SQL Server in Azure Virtual Machines
https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-sql-server-high-availability-and-disaster-recovery-solutions/

Resources