Hello,
I have installed on a sandbox an AlwaysOn Cluster. However, as it is a first time, I am not sure about my configuration and have some question.
Our infrastructure is a stretch cluster on 2 sites with a 3rd site as Witness. I have installed one SQL server (MSSQL 2016 SP2) on each site with my Quorum server on the Witness. Each SQL server have been installed with one
instance:
- SANDBOX01 -> MSSBOX01
- SANDBOX02 -> MSSBOX02
Both SQL have been added in a Windows Failover Cluster using the Microsoft Fail over feature with the Quorum configuration.
1) Question: Is there something to configure in the Failover Cluster to make it better? Or a key element to monitor to be sure that everything works as it should?
Then I have put the Failover Cluster in the SQL configuration on both servers.
Now for the SQL configuration:
I have created a new Availability Group using the Wizard. I had to modify my databases in “Recovery Full” to be able to add my Database. And did my full backup.
2) Question: Is there a best practice about databases in AlwaysOn. Should all databases in one Instance be in the AlwaysOn or will it work the same with only some databases selected?
I am talking about performances and such.
I have configured that our two servers should be in “Automatic Failover” with readable secondary. Then I have created our “Listener”.
3) Question: As I understand correctly, the listener will be the port of entry for the SQL systems to redirect all sql request to the servers (if
primary is down, go to secondary). As the second server is up in read mode, is there a way to have all write request go to primary and all the read request to the secondary in an auto way?
As a first Initialization, I have configured it in “join only” as we have two different Instance name and then restored the database on the other replica. Everything seems to be working fine.
I have tested what happens when I crash one server and it redirect, as it should.
I have a few other question:
4) Question: For our production environment, we have a database that is published (in “Transactional” mode). Is it possible to add it in an AlwaysOn Cluster? How about the configuration?
As the replication is based on a server and not the cluster. How will it work (if we say the replication is configured on the first server and it crashed to let the secondary take after)?
5) Question: Is there something to configure special to make it work better? Or something I should know?
6) Question: What about the backup, how should I backup my AlwaysOn Database? I use Avamar as client.
Thank you for taking the time to read me and to answer,
Best Regards,
Jon