BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH
Reach effective High Availability solution With Oracle and SqlServerWhy Oracle is still your best choice
Jacques KosticPrincipal Consultant IMS Lausanne
Tel. +41 79 909 72 [email protected]
TechEvent 2017-march-182 26/10/2017
Experience:
• Oracle DBA since 1990• High Availability and Backup & Recovery Architect• SQL and Instance Performance & Tuning• License Audit and Consolidation
Certifications:
• Oracle Certified Master 11g & 12c• Oracle 11g Performance Tuning Certified Expert• Oracle RAC 11g and Grid Infrastructure Administration• Oracle Exadata Administrator Certified Expert• Oracle Certified SQL Expert 11g• Pending: Microsoft Sql-Server 2016 Certified Professional
Teaching Courses at Trivadis:
• Oracle 11g & 12c Grid Infrastructure & RAC• Oracle 11g & 12c Data Guard• Oracle 11g & 12c Performance & Tuning• Oracle 11g & 12c Administration• SQL & PL-SQL• OEM – 12 & 13
About me
Agenda
TechEvent 15 Sept 20173 26-Oct-17
1. Introduction
2. What is High Availability and why we need that
3. The Business Case scenario
4. Microsoft Always On
5. Oracle Data Guard
6. Let‘s scale
7. What can Trivadis do for you?
8. Comparison
9. Conclusions
TechEvent 15 Sept 20174 26-Oct-17
Introduction
Introduction
TechEvent 15 Sept 20175 26-Oct-17
Today’s systems need to be up all the time
And scalability is a must!
Therefore businesses is becoming addicted to IT
TechEvent 15 Sept 20176 26-Oct-17
What is High Availability
And why we need that
What is High Availability ?
TechEvent 15 Sept 20177 26-Oct-17
High Availability
Group of techniques which try to assure the continuous functioning of services, even if computers fail, to avoid and minimize downtime
Data versus Service High Availability
More locations
of data
More locations
of serviceService High Availability
Data High Availability
What is High Availability ?
TechEvent 15 Sept 20178 26-Oct-17
Do I need High Availability
Avoid certain periods of downtime
Avoid certain lengths of downtime
Avoid certain results of downtime
Avoid a certain frequency of an error
For a decision, whether High Availability is needed, look at the consequences of a potential downtime
Why High Availability ?
TechEvent 15 Sept 20179 26-Oct-17
Generally
To preserve your businessHave you calculated the cost of downtime to your business?
To preserve your dataHave you calculated the impact of losing your data?
To improve your reputation and therefore your brandHave you evaluated customer perception of your company?
Why High Availability?
TechEvent 15 Sept 201710 26-Oct-17
To be more Technical
What do you want to protect against?
How long are you able to survive without your system?
What are your RTO and RPO?
How to keep your system up to date?
TechEvent 15 Sept 201711 26-Oct-17
The Business Case Scenario
The Business Case Scenario
TechEvent 15 Sept 201712 26-Oct-17
Description
Hand Spinner market is growing fast and there is a particular need forpersonal customized models. The goal is to:
Host a World Wide e*Commerce web site for selling custom Hand Spinners
Setup a Read Only reporting database for the marketing team, day-1 istolerated
Reporting must be accessible during office hours
The Business Case
TechEvent 15 Sept 201713 26-Oct-17
Concretely
SLA: 24 * 7 access, RTO and RPO 15 minutes
Less than five hours per month downtime is tolerated for plan maintenance
If production site is lost, a continuity scenario has to be in place to satisfy
the business within the SLA
Reporting database is not available if failover is requested
More than 50 concurrent connections to the web site is forecasted
Database initial size is 20 GB and grow estimate is 50 GB/month
Backup strategy with no impact on production
The Business Case
TechEvent 15 Sept 201714 26-Oct-17
Internet
Web Servers Database ServersBasic Diagram
The Business Case
TechEvent 15 Sept 201715 26-Oct-17
Available Hardware: non negotiable!
1 * 12 cores 2.9 Ghz E5-2650
256 GB of RAM
2 * 300 GB SSD for OS
4 * 1.8 SSD Read Intensive for data storage
2 * 2TB SATA drives for local data
2 * 1 GB NIC
4 * 10 GB NIC
The Business Case
TechEvent 15 Sept 201716 26-Oct-17
Software options are:
OS:Windows 2016 Linux RedHat or OEL 7
Database: SqlServer 2016 Oracle 12.2
TechEvent 15 Sept 201717 26-Oct-17
Microsoft Always On
Microsoft Always On
TechEvent 15 Sept 201718 26-Oct-17
BackupsAuto Failover
Always On Availability Group
Listener
Synchronisation
Synchronous replication is applied to
“Read Only” instance All workload is absorbed by the
primary instance
The two instances R are linked to
the Listener and Read-Only
instance can become primary in
case of switchover or failover
Accessing instance Read-
Only for reporting is
done using a dedicated
connect string
Backups taken from
Read-Only instance
Microsoft Always On
TechEvent 15 Sept 201719 26-Oct-17
OS License cost:W2K16 DCE: 1 * 12 = 12 cores 161 = 6’155 * 3 = 18’465 CHF
SQL-Server License cost: The replica instance is “Read Only” and therefore need to be licensed.
1 * 12 = 12 cores * 2 = 24 / 2 = 12 Licenses Packs SQL-Server 2016 EE 14’256 * 12 = 171’072 CHF
Total cost: 189’537 CHFYearly support: 47’384 CHF
1 Minimum of 8 core per processor, minimum 16 cores per servers
TechEvent 15 Sept 201720 26-Oct-17
Oracle Data Guard
Oracle Data Guard
TechEvent 15 Sept 201721 26-Oct-17
R
BackupsAuto Failover
Data Guard Configuration & Fast Start Failover
…
SqlNet
P
All workload is absorbed by the
primary instance
Synchronous replication is applied to
“Read Only” instance with Data Guard and
the Active Data Guard option
Synchronisation
Accessing the two instances in
case of switchover of failover is
done using a single connect
string alias
Accessing instance R for
reporting is done using a
dedicated connect string
Automatic Failover is
managed by the observer
Oracle Data Guard
TechEvent 15 Sept 201722 26-Oct-17
OS License cost: Free
Oracle License cost: In total, two servers need to be licensed.
2 * 12 = 24 cores / 2 = 12 Licenses CPU Oracle 12c EE + Oracle ADG 47’000 * 12 + 11’200 * 12 = 698’400 CHF
Total cost: 698’400 CHFYearly support: 153’648 CHF
TechEvent 15 Sept 201723 26-Oct-17
Let‘s scale
Let‘s scale…
TechEvent 15 Sept 201724 26-Oct-17
After few months…
Hand Spinner market is growing much faster than originallyplanned!
The e*Commerce system needs to scale as users are impactedby performance issues
System is sometime CPU bound
Recommendation is to nearly double the amount of CPU
Microsoft Always On
TechEvent 15 Sept 201725 26-Oct-17
P R
BackupsAuto Failover
Always On Availability Group
Listener
Synchronisation
P2
Microsoft Always On
TechEvent 15 Sept 201726 26-Oct-17
P R
BackupsAuto Failover
Always On Availability Group
Listener
Synchronisation
Microsoft Always On
TechEvent 15 Sept 201727 26-Oct-17
SQL-Server License cost: New production server has now 22 cores
Total cores to license is 34 compare to 24: increase is 10 so 5 Licenses Packs 14’256 * 5 = 71’280 CHF
Total cost increase: 71’280 CHFYearly support: 17’820 CHF
New Yearly support: 65’204 CHF
Oracle Data Guard
TechEvent 15 Sept 201728 26-Oct-17
R
BackupsAuto Failover
Data Guard Configuration & Fast Start Failover
…
SqlNet
P
Oracle Data Guard
TechEvent 15 Sept 201729 26-Oct-17
Oracle License cost: All servers need to be licensed.
1 * 12 + 1 * 24 = 36 / 2 =18 Licenses CPU Increase 6 EE + 6 ADG 47’000 * 6 + 11’200 * 6 = 349’200 CHF
Total cost increase: 349’200 CHFYearly support increase: 76’824 CHF
New Yearly support : 297’248 CHF
TechEvent 15 Sept 201730 26-Oct-17
What can Trivadis do for you?
What can Trivadis do for you?
TechEvent 15 Sept 201731 26-Oct-17
What is the alternative?
Application is purely website workload with very shorttransactions
Response time is the key driver
No I/O demanding queries
No additional options required
Hyper Converged Oracle RAC Standard Edition 2
TechEvent 15 Sept 201732 26-Oct-17
P2 R
TVD-BackupsManual /Auto Failover
TVD-Standby
Scan Listener
…
SqlNet
P1
Hyper Converged Infrastructure
Interconnect
Hyper-Converged Storage
Oracle Clusterware is used to manage
replication with ASM normal redundancy Hyper Converge Software, no need to
have access to shared storage
Workload is absorbed by the
two instances
5 minutes Gap with
TVD-StandbyBackup performed by
TVD-Backup module
Accessing the two instances in
case of switchover of failover is
done using a single connect
string alias
Accessing instance R for
reporting is done using a
dedicated connect string
Hyper Converged Oracle RAC Standard Edition 2
TechEvent 15 Sept 201733 26-Oct-17
Oracle License cost: The three servers need to be licensed.
3 sockets = 3 Licenses CPU SE2 17’000 * 3 = 51’000 CHF
Trivadis software cost: TVD-Backup (1 Server) = 7’000 CHFTVD-Standby (2 Databases) = 5’900 CHF
Total cost: 63’900 CHFYearly support: 36’5001 CHF
1 included 20’000 CHF for Hyper converge software support
Hyper Converged Oracle RAC Standard Edition 2
TechEvent 15 Sept 201734 26-Oct-17
Limitations:
Max 2 sockets in the cluster
Max 8 threads per nodes
No other options are licensable
Nothing prevent the customer to upgrade to EE one day
TechEvent 15 Sept 201735 26-Oct-17
Comparison
Comparison
TechEvent 15 Sept 201736 26-Oct-17
OptionInitial To Scale
Investment Support Investment Final Support
Microsoft Always-On 189’537 47’384 71’280 65’204
Oracle Enterprise Edition + DG 698’400 153’648 349’200 297’248
Oracle Standard Edition 2 +
TVD-Tools63’900 36’500 0 36’500
Option Total Investment Total Support
Microsoft Always-On 260’817 65’204
Oracle Enterprise Edition + DG 1’047’600 297’248
Oracle Standard Edition 2 + TVD-Tools 63’900 36’500
Comparison
TechEvent 15 Sept 201737 26-Oct-17
Option Implement Scale Performance Cost
Microsoft Always-On++++ + +++ ++
Oracle Enterprise
Edition + Data Guard ++++ + +++ -
Oracle Standard
Edition 2 RAC +
TVD-Tools+++ +++ ++++ ++++
TechEvent 15 Sept 201738 26-Oct-17
Conclusion
Conclusion
TechEvent 15 Sept 201739 26-Oct-17
Microsoft Always on is offering a very good alternative to Oracle for High
Availability but unfortunately, there are still limitations regarding scalability
Depending of the application profile, mixing SE2 RAC with Hyper-
Converged Storage and Trivadis tools, is offering very powerful features to
run your business
Even with some limitations like max 8 threads per RAC instance, Standard
Edition 2 version can handle a massive OLTP or Web Site workload
For High Availability and scalability, Oracle is still the best option
Questions?Jacques Kostic
Principal Consultant IMS Lausanne
Tel. +41 79 909 72 63
26-Oct-17 TechEvent 15 Sept 201740
Session Feedback – now
TechEvent 15 Sept 201741 26-Oct-17
Please use the Trivadis Events mobile app to give feedback on each session
Use "My schedule" if you have registered for a session
Otherwise use "Agenda" and the search function
If the mobile app does not work (or if you have a Windows smartphone), use your
smartphone browser
– URL: http://trivadis.quickmobileplatform.eu/
– User name: <your_loginname> (such as "svv")
– Password: sent by e-mail...
Top Related