This document discusses opportunities for using spatial data and analysis. Key points include:
- Increased user sophistication and availability of location-based data and tools enable new integrated systems and applications.
- Spatial data and analysis can be used for real estate development, environmental planning, scientific research, economic analysis and more.
- SQL Server provides robust spatial data types and methods to build high performance spatial solutions and integrate geospatial applications.
Using GIS to analyze historical data; digital humanities: spatial and temporal patterns . samples shown are related to part of the bibliography of the Jewish National Library.
This document discusses using census and spatial data in SQL Server 2008 for hazard mitigation and analysis. It describes how the North Central Texas Council of Governments uses SQL Server 2008 to rapidly access and analyze data on storms, flood plains, earthquakes and more to support emergency management. Spatial features like polygons can be queried, updated and analyzed directly in SQL Server 2008 without needing external GIS software. This allows for fast, automated access and reporting of dynamic spatial data to support emergency response and planning.
The document discusses the SQL Server plan cache, which stores and reuses query execution plans. It describes what is stored in the plan cache, how plans are looked up and aged out, and dynamic management views for exploring the plan cache. Methods covered include identifying unoptimized ad hoc queries, parameterizing queries for better plan reuse, and handling cases where plan reuse is not possible like with local variables.
Windows azure sql_database_security_isug012013sqlserver.co.il
This document discusses security for Microsoft SQL Azure (now called Windows Azure SQL Database). It provides an overview of SQL Database and its security capabilities, best practices for securing SQL Database like using encryption and configuring firewall rules, and limitations compared to on-premises SQL Server. It also introduces GreenSQL as a software-based database proxy that can provide additional security functionality for SQL Database like preventing SQL injection, auditing, and data masking. GreenSQL aims to offer a more complete solution for security, compliance, and hybrid application support compared to the native capabilities in SQL Database.
This document discusses opportunities for using spatial data and analysis. Key points include:
- Increased user sophistication and availability of location-based data and tools enable new integrated systems and applications.
- Spatial data and analysis can be used for real estate development, environmental planning, scientific research, economic analysis and more.
- SQL Server provides robust spatial data types and methods to build high performance spatial solutions and integrate geospatial applications.
Using GIS to analyze historical data; digital humanities: spatial and temporal patterns . samples shown are related to part of the bibliography of the Jewish National Library.
This document discusses using census and spatial data in SQL Server 2008 for hazard mitigation and analysis. It describes how the North Central Texas Council of Governments uses SQL Server 2008 to rapidly access and analyze data on storms, flood plains, earthquakes and more to support emergency management. Spatial features like polygons can be queried, updated and analyzed directly in SQL Server 2008 without needing external GIS software. This allows for fast, automated access and reporting of dynamic spatial data to support emergency response and planning.
The document discusses the SQL Server plan cache, which stores and reuses query execution plans. It describes what is stored in the plan cache, how plans are looked up and aged out, and dynamic management views for exploring the plan cache. Methods covered include identifying unoptimized ad hoc queries, parameterizing queries for better plan reuse, and handling cases where plan reuse is not possible like with local variables.
Windows azure sql_database_security_isug012013sqlserver.co.il
This document discusses security for Microsoft SQL Azure (now called Windows Azure SQL Database). It provides an overview of SQL Database and its security capabilities, best practices for securing SQL Database like using encryption and configuring firewall rules, and limitations compared to on-premises SQL Server. It also introduces GreenSQL as a software-based database proxy that can provide additional security functionality for SQL Database like preventing SQL injection, auditing, and data masking. GreenSQL aims to offer a more complete solution for security, compliance, and hybrid application support compared to the native capabilities in SQL Database.
This document summarizes upcoming SQL Server events in January 2013 in Israel, including multi-day training sessions, user group meetings, and virtual chapter meetings on SQL Server administration and development topics. It also lists current job openings and previews the tips and presentations for an upcoming user group meeting, including how Database Administration Console improvements in SQL Server 2012 will impact administrators and real-world query tuning case studies.
The document discusses the evolution of data-tier applications (DACs) and database administration over time. It notes that in the past, database administrators (DBAs) and developers worked in silos, making development, deployment, and management challenging. Recent investments in tools like SQL Server Data-tier Applications (DACs) now allow for more integrated development workflows and easier deployment and management of databases at scale. The document outlines some key concepts and enhancements in DACs over multiple versions to improve collaboration and move developers to a more declarative model.
The document discusses the role of the SQL query optimizer in generating efficient query plans. It describes the optimizer's multi-stage process of parsing the SQL statement, binding objects, optimizing through different search levels, applying logical and physical properties and over 350 rules to simplify and optimize the query tree, and selecting the cheapest plan. It notes challenges like a large number of possible join orders and timeouts during complex optimizations.
The document describes several SQL server monitoring and management tools from Docco Labs, including ClipTable for data import, Database File Explorer for file usage monitoring, Log Table Viewer for logging, and SQL Stripes for server monitoring and control. SQL Stripes is a T-SQL based solution that monitors metrics like CPU, disk usage, locks, and pings and notifies users of issues by email, web, audio or visual alerts. It aims to fill the gap between generic monitoring tools and agent-specific alerts.
Introducing 3 FREE Smart solutions for SQL Server (Adi Sapir, Docco Labs)
As Database experts, we work with SQL Server Databases on a daily basis. We face the same problems every SQL Administrator and/or developer does. And – we spend our time writing solutions for these problems! In this session Adi will introduce the following 3, totally FREE solutions:
· ClipTable – A revolutionary new *anything* to SQL Table importer
· Database File Explorer – a much easier way to explore our database->filegroups->files->storage mapping
· Log Table Viewer – a complete client/server logger solution for SQL Server
Read committed snapshot isolation (RCSI) allows readers to see committed data without blocking writers or other readers. It can greatly reduce locking and deadlocking. SQL Server supports partition-level lock escalation, allowing concurrent access to different partitions. Filtered indexes improve performance by indexing a subset of table data. Optimize for ad hoc workloads improves plan caching for queries that are run infrequently. Enabling data compression reduces database size and storage costs without requiring application changes.
- Distributed Replay allows replaying a captured workload from multiple client computers to better simulate production loads.
- A controller coordinates the replay across clients to reproduce the original query rates or run in stress test mode faster than original rates.
- It improves on SQL Server Profiler for application compatibility testing, performance debugging, capacity planning, and benchmarking.
- Events are replayed in synchronization mode to match original order, or unsynchronized to stress test without timing constraints.
Predicates allow filtering events based on:
- Event properties (fields)
- Session properties
- System properties
They are evaluated synchronously when the event fires. This allows filtering events and reducing overhead compared to capturing all events.
Common predicates:
- event_name = 'sql_statement_completed'
- database_id = 5
- cpu_time > 1000
Predicates give granular control over what events are captured.
The document discusses enhancements to Extended Events in SQL Server 2012. It provides an overview of Extended Events, terminology used in Extended Events, and highlights key enhancements in SQL Server 2012 such as an improved user interface, expanded system coverage, and a managed code API.
SQL Explore 2012 - Michael Zilberstein: ColumnStoresqlserver.co.il
This document discusses how columnstore indexes in Microsoft SQL Server can boost query performance. It provides an overview of column-oriented databases and columnstore technology. Columnstore indexes store data by column rather than by row, allowing for improved compression techniques like dictionary encoding. This reduces storage space and I/O. It also allows for more efficient query processing through batch execution and new execution plan elements. The document outlines best practices, limitations, issues and workarounds, as well as how to load data with columnstore indexes. It provides references for further reading on columnstore performance tuning.
- The document discusses the challenges of database development and deployment processes and how the Data-Tier Application Framework (DAC Fx) addresses these challenges.
- DAC Fx allows developers to model the database in a declarative way and generates deployment scripts and files (.dacpac) that simplify the deployment process for both developers and DBAs.
- It also enables cross-platform deployment of databases to both on-premises and cloud platforms like SQL Azure.
SQL Server 2012 introduced new spatial data types like circular arcs and support for full globe objects. It also enhanced spatial indexing with automatic grid generation and index hints. Other improvements included additional methods for spatial aggregations and reorienting objects on the globe. Overall, the new capabilities expanded support for advanced geospatial analysis and improved performance of spatial queries.
Hadoop is an open-source framework for storing and processing large datasets in a distributed computing environment. It allows for the storage and analysis of datasets that are too large for single servers. The document discusses several key Hadoop components including HDFS for storage, MapReduce for processing, HBase for column-oriented storage, Hive for SQL-like queries, Pig for data flows, and Sqoop for data transfer between Hadoop and relational databases. It provides examples of how each component can be used and notes that Hadoop is well-suited for large-scale batch processing of data.
More Related Content
Similar to Active active sql 2008 r2 cluster - Aviad Deri
This document summarizes upcoming SQL Server events in January 2013 in Israel, including multi-day training sessions, user group meetings, and virtual chapter meetings on SQL Server administration and development topics. It also lists current job openings and previews the tips and presentations for an upcoming user group meeting, including how Database Administration Console improvements in SQL Server 2012 will impact administrators and real-world query tuning case studies.
The document discusses the evolution of data-tier applications (DACs) and database administration over time. It notes that in the past, database administrators (DBAs) and developers worked in silos, making development, deployment, and management challenging. Recent investments in tools like SQL Server Data-tier Applications (DACs) now allow for more integrated development workflows and easier deployment and management of databases at scale. The document outlines some key concepts and enhancements in DACs over multiple versions to improve collaboration and move developers to a more declarative model.
The document discusses the role of the SQL query optimizer in generating efficient query plans. It describes the optimizer's multi-stage process of parsing the SQL statement, binding objects, optimizing through different search levels, applying logical and physical properties and over 350 rules to simplify and optimize the query tree, and selecting the cheapest plan. It notes challenges like a large number of possible join orders and timeouts during complex optimizations.
The document describes several SQL server monitoring and management tools from Docco Labs, including ClipTable for data import, Database File Explorer for file usage monitoring, Log Table Viewer for logging, and SQL Stripes for server monitoring and control. SQL Stripes is a T-SQL based solution that monitors metrics like CPU, disk usage, locks, and pings and notifies users of issues by email, web, audio or visual alerts. It aims to fill the gap between generic monitoring tools and agent-specific alerts.
Introducing 3 FREE Smart solutions for SQL Server (Adi Sapir, Docco Labs)
As Database experts, we work with SQL Server Databases on a daily basis. We face the same problems every SQL Administrator and/or developer does. And – we spend our time writing solutions for these problems! In this session Adi will introduce the following 3, totally FREE solutions:
· ClipTable – A revolutionary new *anything* to SQL Table importer
· Database File Explorer – a much easier way to explore our database->filegroups->files->storage mapping
· Log Table Viewer – a complete client/server logger solution for SQL Server
Read committed snapshot isolation (RCSI) allows readers to see committed data without blocking writers or other readers. It can greatly reduce locking and deadlocking. SQL Server supports partition-level lock escalation, allowing concurrent access to different partitions. Filtered indexes improve performance by indexing a subset of table data. Optimize for ad hoc workloads improves plan caching for queries that are run infrequently. Enabling data compression reduces database size and storage costs without requiring application changes.
- Distributed Replay allows replaying a captured workload from multiple client computers to better simulate production loads.
- A controller coordinates the replay across clients to reproduce the original query rates or run in stress test mode faster than original rates.
- It improves on SQL Server Profiler for application compatibility testing, performance debugging, capacity planning, and benchmarking.
- Events are replayed in synchronization mode to match original order, or unsynchronized to stress test without timing constraints.
Predicates allow filtering events based on:
- Event properties (fields)
- Session properties
- System properties
They are evaluated synchronously when the event fires. This allows filtering events and reducing overhead compared to capturing all events.
Common predicates:
- event_name = 'sql_statement_completed'
- database_id = 5
- cpu_time > 1000
Predicates give granular control over what events are captured.
The document discusses enhancements to Extended Events in SQL Server 2012. It provides an overview of Extended Events, terminology used in Extended Events, and highlights key enhancements in SQL Server 2012 such as an improved user interface, expanded system coverage, and a managed code API.
SQL Explore 2012 - Michael Zilberstein: ColumnStoresqlserver.co.il
This document discusses how columnstore indexes in Microsoft SQL Server can boost query performance. It provides an overview of column-oriented databases and columnstore technology. Columnstore indexes store data by column rather than by row, allowing for improved compression techniques like dictionary encoding. This reduces storage space and I/O. It also allows for more efficient query processing through batch execution and new execution plan elements. The document outlines best practices, limitations, issues and workarounds, as well as how to load data with columnstore indexes. It provides references for further reading on columnstore performance tuning.
- The document discusses the challenges of database development and deployment processes and how the Data-Tier Application Framework (DAC Fx) addresses these challenges.
- DAC Fx allows developers to model the database in a declarative way and generates deployment scripts and files (.dacpac) that simplify the deployment process for both developers and DBAs.
- It also enables cross-platform deployment of databases to both on-premises and cloud platforms like SQL Azure.
SQL Server 2012 introduced new spatial data types like circular arcs and support for full globe objects. It also enhanced spatial indexing with automatic grid generation and index hints. Other improvements included additional methods for spatial aggregations and reorienting objects on the globe. Overall, the new capabilities expanded support for advanced geospatial analysis and improved performance of spatial queries.
Hadoop is an open-source framework for storing and processing large datasets in a distributed computing environment. It allows for the storage and analysis of datasets that are too large for single servers. The document discusses several key Hadoop components including HDFS for storage, MapReduce for processing, HBase for column-oriented storage, Hive for SQL-like queries, Pig for data flows, and Sqoop for data transfer between Hadoop and relational databases. It provides examples of how each component can be used and notes that Hadoop is well-suited for large-scale batch processing of data.
SQL Server allows for parallel processing to improve query performance. It uses multiple threads or workers that can run tasks such as reading, writing, and calculating in parallel across multiple CPU cores. The degree of parallelism (DOP) or number of threads used can be configured through settings like MAXDOP. Determining the optimal DOP requires testing different values and monitoring performance and waits to find the best setting for each workload type.
Common Errors That Effect Performance (Adi Cohen, Naya-Tech)
There are a few common errors that have a negative effect on performance. In this session we will review some of them, see why they impact performance and provide alternative solutions. Among the issues we will cover are:
· Misunderstanding of the query plan when using procedures
· Query plan differences between procedures and ad-hoc batches
· The differences between a temporary table and a table variable
· And many more…
Who is afraid of Columnstore Indexes? (Michael Zilberstein, DB-Art)
This talk describes new SQL Server 2012 feature called "columnstore index". In this session we will learn about the differences between columnstore indexes and B-Tree indexes we are used to work with. We will see when it is best to use and when not to use this new index. We will cover limitations that columnstore index imposes on the tables that use it and how to live with those limitations. Like in all my sessions, I won't let you go without some internals – how columnstore index is organized on a physical level and how Query Processor works this new type of index. And of course Demos, Demos, Demos…
Bi303 data warehousing with fast track and pdw - Assaf Fraenkelsqlserver.co.il
HP offers two solutions for data warehousing - Fast Track and Parallel Data Warehouse. Fast Track provides reference architectures using SQL Server for balanced deployments scaling from 8-80TB. Parallel Data Warehouse uses a massively parallel processing architecture to scale SQL Server deployments to petabytes of data. It uses a scale-out architecture with distributed data and query processing. This provides very high performance for large and complex workloads.
Trace flags are used to temporarily change SQL Server's behavior for debugging or diagnosing issues. This document discusses several trace flags including:
TF 652, 661, 834, 836 which disable certain SQL Server processes or enable large page allocations.
TF 1211, 1224 which avoid lock escalation. TF 1117 forces data files to auto grow equally. TF 1204, 1205, 1222 provide more information on deadlocks.
TF 1118 addresses tempdb contention. TFs 3226, 3014, 3004 provide more backup/restore details. TF 4199 enables query processor fixes. TF 3502 prints checkpoint messages.
The document provides explanations of these trace flags
Fast transition to sql server 2012 from mssql 2005 2008 for developers - Dav...sqlserver.co.il
Rafael Advanced Defense Systems is an Israeli defense technology company that designs, develops, manufactures and supplies defense systems for air, land, sea and space applications. It has annual sales exceeding $1.85 billion and employs about 7,000 people. The document discusses using analytic functions in SQL Server 2012, including new functions added in 2012 and enhanced window function support, and provides examples of how various analytic functions can be used to analyze sales data.
The document discusses Microsoft SQL Server 2008 R2's FILESTREAM feature. FILESTREAM allows storing unstructured binary large objects (BLOBs) such as documents, images, and videos on the file system rather than in a database. It integrates access to this file data into the database for transactional consistency. Some key points covered include FILESTREAM storage in NTFS directories, its security model using standard SQL Server permissions, and accessing BLOBs using both T-SQL queries and file streaming APIs.
1. בלמ"ס
ללא סיווג עסקי
?Active/Active SQL 2008 R2 Cluster
אביעד דרעי
רפא"ל – מערכות לחימה מתקדמות בע"מ
aviadd@rafael.co.il
1102/6/6
1 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
2. בלמ"ס
ללא סיווג עסקי
קצת על רפאל...
• מפתחת, מייצרת ומספקת מגוון מערכות לחימה
מתקדמות אשר תורמות למערכת הביטחון יכולות:
– בים
– באוויר
– ביבשה
• רווחים בשנת 0102 – למעלה מ 8.1 מיליארד ₪
• למעלה מ-0005 עובדים
2 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ 7 יוני, 1102
3. בלמ"ס
ללא סיווג עסקי
אז מי אני?
• בוגר החוג למערכות מידע באוניברסיטת חיפה
• DBAתשתיתי כ-5.4 שנים:
– 2MS SQL 2000-2008R
– Oracle 9i-11g
– 01 SQL Anywhere
– Sybase
3 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
4. בלמ"ס
ללא סיווג עסקי
תחומי אחריות
תחזוקה שוטפת של למעלה מ-001 שרתים במערכות מרכזיות. •
פיתוח, הדרכה והטמעה של מגוון שירותים וכלים: •
– Reporting Services
– Integration Services
– Spatial
– PowerShell
– Mirroring, Replicationועוד...
שיפור ביצועים וכיוונון שאילתות •
ייעוץ וליווי פרוייקטים ברפא"ל •
אבטחת מידע בבסיסי נתונים •
4 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
5. בלמ"ס
ללא סיווג עסקי
?מה בתפריט
• Overview - Active/Passive & Active/Active SQL Cluster
• The advantages of active/active cluster
• Preparing Active/Active Cluster
• Configuring Active/Active Cluster
• Managing Performance with Multiple Instances
• Using Windows System Resource Manager
• Resource Governor
• Active/Active Cluster best practices
• High-Availability Feature Comparison
• What's next (HADR in Denali)?
5 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
6. בלמ"ס
ללא סיווג עסקי
Overview - Active/Passive & Active/Active SQL
Cluster
ActivePassive Cluster
יש שם וירטואלי אחד לDBושם וירטואלי •
אחד למערכת ההפעלה
VirtualName
יש דיסקים משותפים לכל הצמתים •
רק צומת אחת יכולה להחזיק את המשאבים •
המשותפים ברגע נתון
ניתן לשלב עם רפליקציה ,db mirroring •
2 Node 1 Node ו- log shipping
ניתן להוסיף ל- clusterמשאבים שהם לא •
FileShare SQL
יש תמיכה ב-(SSISמלאה) וב-( SSRSחלקית) •
6 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
7. בלמ"ס
ללא סיווג עסקי
Overview - Active/Passive & Active/Active SQL
Cluster
ActiveActive Cluster
יש שם וירטואלי אחד לDBושם וירטואלי •
אחד למערכת ההפעלה
VirtualName
יש דיסקים משותפים לכל הצמתים •
כל הצמתים יכולים לכתוב בו זמנית •
לאותם דיסקים משותפים
משמש כ-load balancer •
1 Node 2 Node
FileShare
7 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
8. בלמ"ס
ללא סיווג עסקי
Overview - Active/Passive & Active/Active SQL
Cluster
Multi-Instance Cluster
יש שם וירטואלי אחד לכל DBושני שמות וירטואליים למערכת •
ההפעלה
יש דיסקים משותפים לכל הצמתים בכל מופע •
רק צומת אחת בכל מופע יכולה להחזיק את המשאבים המשותפים •
ברגע נתון
ניתן לשלב עם רפליקציה , db mirroringו- log shipping •
ניתן להוסיף ל- clusterמשאבים שהם לא SQL •
תמיכה בעייתית ב-SSIS •
8 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
10. בלמ"ס
ללא סיווג עסקי
יתרונות Multi-Instance cluster
• לא מבזבזים משאבים
הצומת השני משמש כשרת פעיל לכל דבר ולא עומד ללא שימוש.
• מתן יתירות למערכות נוספות
מכיוון שיש לנו עוד צומת שמשמשת כ- Clusterנוסף ניתן להעביר אליה
עוד בסיסי נתונים שייהנו מיתירות
• חלוקת עומסים
ניתן לחלק את בסיסי הנתונים הפעילים יותר ופעילים פחות בצורה
שווה בין מופעי ה-Cluster
החיסרון הגדול – מלחמה על משאבים
01 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
11. בלמ"ס
ללא סיווג עסקי
Preparing to Active/Active Cluster
• הבנת הדרישות מבסיסי הנתונים שיהיו על השרת
– נפח פעילות
– צפי גדילה
– אופי שימוש
• ביצוע בדיקות קדם והכנת מפרט לשרת החדש
עומסים –
I/O –
רשת –
CPU –
11 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
12. בלמ"ס
ללא סיווג עסקי
Configuring Active/Active Cluster
• הגדרת דיסקים משותפים לכל מופע
– כולל הגדרת Multipath i/o
– פירמוט הדיסקים כ-64Kb ,NTFS
– אם משתמשים ב- Mount pointsצריך להגדיר דיסק אחד עם אות
כונן שיכיל את ה-.mount points
• הגדרת תקשורת
– רשת פנימית בין השרתים המשמשים כצמתים
– רשת חיצונית דרכה פונים ה-clients
21 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
13. בלמ"ס
ללא סיווג עסקי
Configuring Active/Active Cluster
• הגדרת כתובות IPפנויות (4 פיזיות, 4 וירטואליות):
שתי כתובות עבור הצמתים הפיזיים –
שתי כתובות עבור שמות וירטואליים למערכת ההפעלה –
שתי כתובות עבור שמות מופעי ה-SQL –
שתי כתובות עבור DTC –
• הרשאות בActive Directory
– כדאי ליצור מראש את האובייקטים ולתת להם
הרשאות כדי להימנע מנפילות במהלך ההתקנה
31 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
14. בלמ"ס
ללא סיווג עסקי
Configuring MSDTC in
Active/Active Cluster
DTC – Distributed Transaction Coordinator •
– משמש לטרזקציות מבוזרות בין שרתים ובסיסי נתונים
linked servers-– משמש למערכות שמשתמשות ב
הנוסף יש לשייך אתcluster -• לאחר ההתקנה של ה
SQL- הנוסף שהגדרנו למופע החדש של הDTC-ה
msdtc.exe -tmMappingSet -name PortaDTC -service
MSSQL$InstanceName -clusterResourceName
msdtc-portalDTC
14 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
15. בלמ"ס
ללא סיווג עסקי
Managing Performance with Multiple
Instances
• הגדרות צריכת הזיכרון של המופעים
– הגדרת ערכי מקסימום ומינימום של הזיכרון עבור כל מופע
,SQLכך לכל מופע יהיה את מרחב הכתובות שלו במידה ויהיה
מצב בו שני המופעים רצים על אותה מכונה פיזית
;1 ,'sp_configure 'show advanced options
GO
;RECONFIGURE
GO
;2918 ,'sp_configure 'max server memory
GO
;RECONFIGURE
GO
;2918 ,'sp_configure 'min server memory
GO
;RECONFIGURE
GO
51 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
16. בלמ"ס
ללא סיווג עסקי
Managing Performance with Multiple
Instances
• הגדרות ניצול CPUע"י שימוש ב-WSRM
– בגרסת 2 win server 2008 rנוסף פיצ'ר חדש בשם:
Windows system resource manager
ע"י שימוש בפיצ'ר הנ"ל ניתן לקבוע את צריכת הזיכרון וה-CPUשל
כל תהליך ותהליך שרץ במערכת ההפעלה. אנחנו ננצל את
האפשרות הנ"ל כדי להגביל את ה- SQLבמצב של failoverבו
שני מופעי ה- clusterרצים על אותה מכונה פיזית.
61 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
17. בלמ"ס
ללא סיווג עסקי
Using Windows System Resource Manager
71 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
18. בלמ"ס
ללא סיווג עסקי
Using Windows System Resource Manager
• Define Process Matching Criteria
Process matching criteria
are used to match processes
that are running on the system
and to aggregate the matched
processes into groups.
A resource allocation policy
can then manage those groups.
18 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
19. בלמ"ס
ללא סיווג עסקי
Using Windows System Resource Manager
• Define Resource allocation policies
Resource allocation policies define how
processor and memory resources are allocated
to processes, users, or groups. In addition to the
five built-in resource allocation policies in
Windows System Resource Manager, you can
create custom policies to meet your needs.
19 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
20. בלמ"ס
ללא סיווג עסקי
Using Windows System Resource Manager
02 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
21. בלמ"ס
ללא סיווג עסקי
Using Windows System Resource Manager
• Define Conditions
Windows System Resource Manager can
automatically switch to a different managing
policy when one of six preconfigured events
occurs. When one of these events occurs, you
can configure the conditional policy to evaluate
additional system states and switch to another
policy if one of the states is found to be true.
21 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
22. בלמ"ס
ללא סיווג עסקי
Using Windows System Resource Manager
22 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
23. בלמ"ס
ללא סיווג עסקי
Utility Explorer
32 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
24. בלמ"ס
ללא סיווג עסקי
Resource Governor
• מאפשר לחלק את משאבי ה SQLבין Workloadsשונים
• בנוי מ-3 רכיבים עיקריים:
– :Resource Poolמייצג משאבים פיזיים של השרת. בעת התקנת השרת
נוצרים כברירת מחדל 2 :Pools
• – Internal Poolעבור התהליכים הפנימיים של .SQLצריכת המשאבים ב- Poolזה אינה
מוגבלת מכיון שכל תהליך המשוייך ל- poolזה מוגדר כקריטי לפעילות תקינה של ה-.SQL
• – Default poolמשמש עבור תהליכי משתמשים
– :Workload groupמנטר ומחלק את המשאבים בהתאם לפונקציית הסיווג
של התהליכים
– :Classificationעל מנת לחלק את המשאבים בין התהליכים השונים
בשרת משתמשים ב-classification function
42 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
25. בלמ"ס
ללא סיווג עסקי
Resource Governor
• ישנן 2 גישות עיקריות לשימוש ב-:Resource Governor
– Well Behaved Applicationsו- Unknown Applications
הנחת העבודה – אנחנו לא סומכים על המפתחים, כל האפליקציות משוייכות כברירת מחדל
ל poolשמשאביו מצומצמים ורק אפליקציות שנבדקו וטוייבו ע"י DBAעוברות ל- poolעם
משאבים רחבים יותר
יתרונות:
• אין אפליקציות ש"משתוללות" בשרת וגורמות לאיטיות ועומסים
• כל האפליקציות נבדקו וטוייבו
חסרונות:
• מצריך DBAצמוד לכל קבוצת פיתוח
• מכיון שפונקציית הסיווג מתבססת על פרמטרים כגון: login, hostname, program nameוכו',
במידה ואחד המפתחים ביצע שינוי באפליקציה ולא הודיע, ייתכן מצב בו נכתבה שאילתה
שיכולה להפיל את בסיס הנתונים ושוייכה ל Poolעם המשאבים הרחבים יותר
• כל מערכת חדשה מצריכה עדכון של פונקציית הסיווג – הרבה מאוד תחזוקה
52 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
26. בלמ"ס
ללא סיווג עסקי
Resource Governor
– Limited Applicationו- All Applications
הנחת העבודה – אנחנו סומכים על המפתחים, כל האפליקציות משוייכות כברירת מחדל לpool
שמשאביו רחבים יחסית ורק אפליקציות שאנחנו חושדים בהן עוברות ל- poolעם משאבים
מצומצמים יותר
יתרונות:
פחות תחזוקה של פונקציית הסיווג •
אין צורך בזמן DBAלכל מערכת חדשה •
חסרונות:
צריך לסמוך על המפתחים •
צריך לנטר ולדגום על בסיס קבוע שינויים ביצועים בשרת ה-SQL •
62 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
27. בלמ"ס
ללא סיווג עסקי
Active/Active Cluster best practices
הכנת כל דרישות הקדם מראש (דיסקים, רשת...) •
וידוא הרשאות ב-AD •
הרצת Validate a configuration wizardלפני התקנת ה-SQL •
אם מתקינים clusterעל גבי תשתית וירטואלית ( ,)hyper-vיש •
לקבע את הצמתים של ה- clusterבצורה כזו שלא ידלגו בין
המארחים של ה-Hyper-V
SSISלא נתמך ב-Active/Active Cluster •
SSRSלא נתמך ב-Active/Active Cluster •
הגדרת WSRMלמצב failoverכדי למנוע בעיות ביצועים •
הגדרת MSDTCלכל מופע של Cluster •
72 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
28. בלמ"ס
ללא סיווג עסקי
Active/Active Cluster best practices
לא לקחת כמובן מאליו את הודעות
!השגיאה
• A previous program installation created pending file operations on the
installation machine. You must restart the computer before running setup.
:www.sqlserver.co.il • מתוך
• The SQL Server registry keys from a prior installation cannot be modified.
To continue, see SQL Server Setup documentation about how to fix registry
keys
28 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
29. בלמ"ס
ללא סיווג עסקי
High-Availability Feature Comparison
Feature Failover Mirroring Mirroring Log Shipping Replication
Clustering (High Safety) (High Performance)
Instance-level Yes No No No No
protection
Duplicate copy No Yes Yes Yes Yes
of database
User error No No No Yes No
protection
Reporting No Yes Yes Yes Yes
capabilities
Automatic Yes Yes No No No
failover
Zero data loss Yes Yes No No No
Distance Yes No No No No
limitations
Requires Yes No No No No
special
Hardware
Protects against No Yes Yes Yes Yes
disk failure
29 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
30. בלמ"ס
ללא סיווג עסקי
High-Availability Feature Comparison
• יתרונות clusterלעומת פתרונות אחרים:
שקוף למשתמשי קצה
Failover אוטומטי
מגן גם על בסיסי הנתונים של ה-system
אין איבוד נתונים
•חסרונות
מורכב להקמה
זמן השבתה של 02 שניות + זמן recoveryלבסיסי הנתונים
אין הגנה כנגד שגיאות I/O
אין הגנה כנגד טעויות משתמשים
03 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
31. בלמ"ס
ללא סיווג עסקי
What's next (HADR in Denali)?
Multi-Database Failover - Availability Group
Multiple Secondaries
Active Secondaries
Fast Client Connection Redirection - using virtual name
Integrated HA Management
Windows Server Core
Automatic Page Repair
AlwaysOn Dashboard
31 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
32. בלמ"ס
ללא סיווג עסקי
What's next (HADR in Denali)?
Flexible Failover Policy
5 – Failover or restart on any qualified failure
4 – Failover or restart on moderate SQL Server errors
3 – Failover or restart on critical SQL Server errors
2 – Failover or restart on SQL Server unresponsive
1 – Failover or restart on SQL Server down
0 – No Automatic Failover or restart
Support for network attached storage (NAS) using SMB
Support for tempdb on local drive
32 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך
33. בלמ"ס
ללא סיווג עסקי
תודה על ההקשבה
וחג שבועות שמח!
שאלות?
33 סימוכין קניין רפאל - מערכות לחימה מתקדמות בע"מ תאריך