01 - ssrs2008 - architecture
TRANSCRIPT
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 1/39
SQL Server 2008
Reporting Services
Architecture
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 2/39
Agenda
• Feature Overview
• Architecture
•
Components• Deployment Scenarios
• Performance
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 3/39
Traditional Reporting Challenges
• Expensive and complex server-side solutions
• Proprietary report formats
• Limits to scalability
• Difficulties
– Integrating with internal applications
– Embedding in line-of-business applications
– Automating delivery to a large internal or externalaudience
– Extending with additional features
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 4/39
SQL Server 2008 Reporting Services
• Delivers enterprise, Web-enabled reportingfunctionality
• Queries a wide variety of data sources
• Publishes reports in various formats• Supports pull- or push-driven report delivery
• Manages security on content and tasks centrally
•Scales to support thousands of users
• Enables extensions to core functionality
• Delivers ad hoc reporting capabilities
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 5/39
What is SSRS?
• Server based reporting platform
• Framework comprising services, tools and APIs toimplement, deploy and manage reporting
solutions• Leverages SQL Server, Windows Server and .NET
framework infrastructure
– Security
– Scalability
– Deployment
– Configuration
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 6/39
Feature Overview - Reports
• Report from variety of data sources
• Multiple report layouts (table, matrix, tablix)
• Ad hoc reporting
•Interactivity (subreports and drillthrough)
• Multiple presentation formats
• Custom controls and report items
• Navigation
• Aggregations
• Graphical Elements
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 7/39
Feature Overview – Deployment and
Administration
• Server based report storage, processing andmanagement
• SharePoint Integration
• Graphical Configuration• Report Manager
• Integration with SQL Management Studio and
Configuration Manager• Command line utilities
• Role Based Security
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 8/39
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 9/39
Feature Overview – Programming and
Extensibility
• RDL
• SOAP API (Web Services)
• URL Access
•WMI Provider
• Extensible – Delivery
– Data Processing
– Rendering – Security
– Report Processing
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 10/39
Architecture: Native Mode
Report
Sources
DeliveryChannels
Security
Services
OutputFormats
Report Server
Data Processing
Rendering
Security
Delivery
Report Processing
Programmatic Interfaces:
XML Web Service and URL Access
Report ManagerReport Viewer
MicrosoftOffice
CustomApplications
Report Server Databases
Browser Model Designer Report Builder
Report Builder – Query generation
Drill-through Report generation
Report Designer
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 11/39
Architecture: SharePoint Integrated
Mode
Programmatic Interfaces:
XML Web Service and URL Access
Report ManagerReport Viewer
MicrosoftOffice
CustomApplications
Browser Model Designer Report Builder Report Designer
ReportSources
OutputFormats
Report Server
Data Processing
Rendering SecurityDelivery
Report Processing
Report Server Databases
Report Builder – Query generationDrill-through Report generation
SharePoint
SharePointContent Database
Collaboration
Document Mgmt
Report Server Proxy Endpoint
ConfigDatabase
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 12/39
Components: Report Server
• Implemented as an ASP.NET Web service
• Accessed by administrators to manage SSRS
– Report Manager or SQL Server Management Studio
– RSS scripts or programmatic interfaces embedded in
applications
• Accessed by users to render reports by using
– URL access in Report Manager or embedded in portals – Programmatic interfaces embedded in applications
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 13/39
Components: Report Manager
• Implemented as an ASP.NET Web application
• Launched by administrators to configure
– Report Server properties
– Report execution properties
– Security
• Launched by users to
– Explore and view reports – Subscribe to report delivery
– Launch Report Builder
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 14/39
Components: Miscellaneous
• Report Builder 1.0 – Delivers ad hoc reporting functionality
• Report Designer / Report Builder 2.0 –
Enables the design of interactive, complex reports• Model Designer
– Supports the development and deployment of reportmodels used in Report Builder
•
Report Server Command-Prompt Utilities – Includes configuration utilities
– Includes the RS script host to perform scriptedoperations
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 15/39
Service Architecture
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 16/39
Service Architecture Changes
• One service architecture – Easier to deploy, configure and manage
• Does not depend on IIS – Report Server tools provide required IIS capabilities
–Do not need IIS on your database servers
• Shares internal components with SQL Server – Network interfaces are shared with SQL Server
– Report Server service hosts ASP.NET in SQL CLR
• Does not change deployment topologies – Supports SOAP, URL Access and Report Manager
– Upgrades are supported
• Design Goal: Don’t break “anything”!
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 17/39
Networking Capabilities
• Reporting Services is not a general purpose webserver!!
• Report Server supports HTTP and SSL – Specific IP address, host headers, multiple ports
– SSL certificates and usage – Security modes
• NTLM, Kerberos, Negotiate, Basic, Custom
• Tools support is provided for common settings –
Configuration tool is updated – WMI API Support for setting URLs, SSL bindings
• RS supports a W3C compliant HTTP request log – Can be analyzed using standard IIS tools
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 18/39
Report Server & IIS Coexistence
• Report Server & IIS 6+ use HTTP.SYS – Single network stack built into Windows
– RS & IIS can share a single port
– Exception: Windows XP 32-bit due to IIS 5.1
• HTTP.SYS sends requests to Report Server – RS makes explicit URL Reservations for is Virtual Directories
– IIS gets all requests not covered by explicit URLReservations
•
SPN conflicts are possible – Solved by running RS under the Network Service account
– Alternately, configure host headers and specific SPNs
• IIS is not required for RS to function
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 19/39
URL Reservations
• URL Reservations (“URLs”) replace IIS Web Sites
– Used to direct requests to a particular service
– Define the protocol, URL String, port, and virtual directory
•
Multiple URL Reservations are allowed – Independently specified for Report Server, Report
Manager
– Recommend using identical URLs for both
• Virtual Directory is simplified
– In IIS, Virtual Directories have many settings
– In RS 2008, Virtual Directory is just a name
– Only one virtual directory name is allowed for RS or RM
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 20/39
URL Reservation Hierarchy
Name URL Reservation Meaning
All Assigned
(Strong Wild card)
http://+:80/vdir Get all requests on port 80 for the vdir.
http://computername/vdir
http://myserver.com/vdir
http://192.268.0.1/vdir
Specific http://myserver.com:80/vdir Only get requests that explicitly ask for
“myserver.com” on port 80 for the vdir.http://myserver.com/vdir
All Unassigned
(Weak Wild Card)
http://*:80/vdir Get any request NOT handled by
someone else
http://yourserver.com/vdir
• IIS behaves like All Unassigned reservations
• RS makes All Assigned reservations by default
• Recommend making All Assigned URL reservations
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 21/39
Deployment Differences
• Some IIS functionality is not provided
– Anonymous and Digest authentication
– Client certificates
• ISAPIs are not supported
– Use ASP.NET HTTP Modules instead
– Most impact to Single Sign-On (SSO) solutions
– ISA server is the recommended solution
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 22/39
REPORTING SERVICESCONFIGURATION
DEMO
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 23/39
Deployment Scenarios
• Local Catalog
• Remote Catalog
• Scale-out Deployment
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 24/39
Local Catalog
User
Report
Manager
Report Server
SMTP
Client
Report Author
Report Designer
BI Developer Studio /
Report DesignerClient
Report ServerCatalog
MSSQL
HTTP Listener
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 25/39
Remote Catalog
User
Report ServerCatalog
SMTP
IIS
Report Manager
Report Server
MSSQL
User
Report ServerCatalog
SMTP
HTTP Listener
Report Manager
Report Server
MSSQL
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 26/39
Scale-out Deployment
User
Scale-out - Virtual Report Server
MSRS
SMTP
HTTP Listener
Report Manager
Report Server
Report Server Catalog
MSSQL
MSRS HTTP Listener
Report Manager
Report Server
Report Server Catalog
MSSQL
Failover
Cluster
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 27/39
Connections Used in a Reporting
Services Deployment
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 28/39
Deploying RS 2008 at a Glance
Usage Scenario Support Statement
Applications built for RS 2005 Continue to work
Applications built for RS 2000 • RS 2000 SOAP APIs are not supported
• URL Access will work
RS Database hosted in SQL 2008 SupportedRS Database hosted in SQL 2005 Supported
RS Database hosted in SQL 2000 Not supported
SharePoint integration New RS 2008 SharePoint Add-in is provided
SharePoint v2 WebParts Supported
Single Server deployment Supported
Multi-Server deployment Supported - RS on computer 1 and RSDB on
computer 2
Scale-out deployment Supported
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 29/39
Memory Management
• Server infrastructure for process memory monitoring – Dynamic, self-managing with memory pressure
– Reduces throughput in memory pressure situations
• File system cache –
Used to adapt to memory pressure – Used when processing receives memory events from server
• Administrator is able to set targets (Min, Max) – Minimum threshold defines the amount of memory the server
thinks ‘belongs’ to it
–The memory is used only if a request needs it
– Maximum threshold defines the not to exceed value
• Adapts to other processes consuming memory
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 30/39
Memory Pressure Response
• Low
• Medium
– Memory allocation for all components reduced
– Larger reductions to background process
• High
– Memory allocation further reduced
– Memory requests denied
– In memory data moved to disk
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 31/39
Memory Configuration
• WorkingSetMaximum – Default = machine memory
– no new memory allocations are granted
• WorkingSetMinimum – Default = 60% of WorkingSetMaximum
• MaximumThreshold – % of Max defines boundary between high and medium
– Default = 90%
• MemorySafetyNet – % of Max defines boundary between low and medium
– Default = 80%
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 32/39
Configuration Files
• <install>\Reporting Services\ReportServer
• RSReportServer.config
– Settings for Report Manager, WS and background
• RSSrvPolicy.config – CAS for server extensions
• ReportingServicesService.config
– Trace and logging levels for the service
• Web.config
– Web service
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 33/39
Configuration Files
• <install>\Reporting Services\ReportManager
• RSMgrPolicy.config – CAS for Report Manager
• Web.config –
Report Manager• Other
– RSReportDesigner.config• BIDS report designer
• <drive>:\Program Files \Microsoft Visual Studio 8 \Common7 \IDE
\PrivateAssemblies. – RSPreviewPolicy.config
• CAS policy for server extensions during preview
• <drive>:\Program Files \Microsoft SQL Server \100 \Tools\ReportDesigner
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 34/39
Logging
• Report Server Execution Log – Database
• Report Server Service Trace Log – \Microsoft SQL Server\<Instance Name>\Reporting Services\LogFiles
• Report Server HTTP Log – Location same as above
•
Windows Application Event Log
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 35/39
Query Execution Log Data
• http://www.codeplex.com/
• Create a table
• Copy data from RS instance to new table
• Query data (sample reports provided)
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 36/39
Performance Options
• Performance Counters
– SSRS 2008 Web Service
– SSRS 2008 Windows Service
– Report Server: Service
– .NET CLR Data and .NET CLR Memory
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 37/39
Rendering Reports
• On demand report rendering
– Improves time to first page (one page at a time)
– Configure large reports for pagination
• Fastest formats
– CSV, XML, HTML
• Slowest
– PDF (CPU), Excel (RAM)
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 38/39
CONFIGURATION FILES ANDMEMORY MANAGEMENT
DEMO
8/13/2019 01 - SSRS2008 - Architecture
http://slidepdf.com/reader/full/01-ssrs2008-architecture 39/39
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.