Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chris Adams Program Manager IIS Product Unit Microsoft Corporation Managing IIS 6.0 Servers in an Enterprise Environment: A Handful of Tips and Tricks.

Similar presentations


Presentation on theme: "Chris Adams Program Manager IIS Product Unit Microsoft Corporation Managing IIS 6.0 Servers in an Enterprise Environment: A Handful of Tips and Tricks."— Presentation transcript:

1 Chris Adams Program Manager IIS Product Unit Microsoft Corporation Managing IIS 6.0 Servers in an Enterprise Environment: A Handful of Tips and Tricks

2 Agenda A quick introduction… Understanding Complexities with Deployments Managing IIS 6.0 & applications in an Enterprise Preparing when things go wrong… Protection: Looking at disasters Summary…

3 A quick introduction… The day starts and ends with Preparation IT Administrators lifecycle events in IIS IT Administrators lifecycle events in IIS Deployments Deployments Managing Sites & Applications Managing Sites & Applications Troubleshooting & Diagnostics Troubleshooting & Diagnostics Preparing for the unknown: Disasters Preparing for the unknown: Disasters Prepare with understanding of Tools Prepare with understanding of Tools Deployment: Scripting Managing: Log Parser, Performance Monitor Troubleshooting: Event Tracing, Log Parser, Debug Diagnostics 1.0 Disasters: Xcopy, IIsCertDeploy, IIsBack

4 A quick introduction (2) Tools for IIS 6.0 enterprise management facts OS-related tools shipped on Windows Server 2003 CD OS-related tools shipped on Windows Server 2003 CD IIS 6.0 related tools shipped on the Windows Server 2003 CD IIS 6.0 related tools shipped on the Windows Server 2003 CD IIS 6.0 Resource Kit Tools IIS 6.0 Resource Kit Tools IIS Diagnostics Tools: IIS Diagnostics Tools: Today…learn how to use em right! (I hope!)

5 Understanding complexities with Deployments

6 Understanding Complexities with Deployments Why is it so hard? Moving IIS 6.0 configuration from server to servers Moving IIS 6.0 configuration from server to servers Effectively doing diffs between IIS 6.0 servers Effectively doing diffs between IIS 6.0 servers Moving content from server to server Moving content from server to server How do I solve these complexities? Understand what tools to use Understand what tools to use Understand your IIS 6.0 server requirements Understand your IIS 6.0 server requirements Model deployments (i.e. templatize them) Model deployments (i.e. templatize them)

7 Understanding Complexities with Deployments (2) Tools to use: Xcopy or Robocopy Xcopy or Robocopy IIsCnfg.vbs, AdsUtil.vbs & IIsExt.vbs IIsCnfg.vbs, AdsUtil.vbs & IIsExt.vbs IIsCertDeploy.vbs (only for SSL-enabled sites) IIsCertDeploy.vbs (only for SSL-enabled sites)XCopy\Robocopy Moves content from server to server Moves content from server to server Why use this method? Why use this method? Server Backups offer disk-based & files backup Server Backups offer disk-based & files backup Web Farms: Difficult because you have x-servers Web Farms: Difficult because you have x-servers Use Xcopy\Robocopy to move to Central Location Use Xcopy\Robocopy to move to Central Location

8 Understanding Complexities with Deployments (3) IIsCnfg.vbs Moves configuration from dev\staging environment Moves configuration from dev\staging environment /export /import – Understand offerings /export /import – Understand offerings Automation opportunities… Automation opportunities…AdsUtil.vbs First step: Add to System Path (not in %windir%\system32) First step: Add to System Path (not in %windir%\system32) Default: %systemroot%\inetpub\adminscripts Default: %systemroot%\inetpub\adminscripts

9 Understanding Complexities with Deployments (4) IIsExt.vbs: Used to enable dynamic content ISAPIs: Typically *.dlls ISAPIs: Typically *.dlls Do not require regsrv32 (like COM objects) Do not require regsrv32 (like COM objects) Requires Path for Deployment Requires Path for Deployment Application Permissions: Requirements Application Permissions: Requirements CGIs: CGIs: Typically *.exe or *.cgi Typically *.exe or *.cgi Base Threads for Execution Base Threads for Execution Security: Enable one-by-one, or per application Do not choose Allow all Unknown… Do not choose Allow all Unknown…

10 Understanding Complexities with Deployments (5) SSL-enabled sites & IIsCertDeploy.vbs SSL Background: Typical: IP:Port Bindings for SSL-enabled sites Typical: IP:Port Bindings for SSL-enabled sites Advanced: IP:Port:HostHeader Advanced: IP:Port:HostHeader Requires Service Pack 1 Requires Service Pack 1 Why is this important? Testing environments with no SSL are dangerous & problematic Testing environments with no SSL are dangerous & problematic

11 Single Server iiscertdeploy.vbs –e %pathtopfxfile% -I %metabasepath% -p pwdforfile iiscertdeploy.vbs –e %pathtopfxfile% -I %metabasepath% -p pwdforfile Understanding Complexities with Deployments (6) Why is this important? (cont.) Ex: Testing using IP address, not FQDN Ex: Testing using IP address, not FQDN Ex: 4443, not 443Using non-standard ports Ex: 4443, not 443Using non-standard ports Result: Failure to understand the end-users experience Moving Certificate from Test to Production

12 One Click Deployment demonstration demonstration

13 Managing IIS 6.0 & applications in an Enterprise

14 Use the right Tools Core OS Tools Core OS Tools Using Performance Monitor Using Performance Monitor Service Pack 1 Tracing Service Pack 1 Tracing Microsoft Operations Manager (MOM) 2005 Microsoft Operations Manager (MOM) 2005 Base lining the application Understanding the Applications usage Understanding the Applications usage Top request URIs per day Top request URIs per day Maximum Requests per time slot Maximum Requests per time slot

15 Managing IIS 6.0 & applications in an Enterprise (2) Using Log Parser to get this Top … URIs per day URIs per day Max Requests per time slot Max Requests per time slot REM ** Top URI Per Day SELECT TO_STRING(TO_LOCALTIME(TO_TIMESTAMP(date, time)), 'HH') AS Hours, COUNT(*) AS PercentHits COUNT(*) AS PercentHits INTO PercentHourlyHits.gif INTO PercentHourlyHits.gif FROM logs\ex*.log for more…

16 Managing IIS 6.0 & applications in an Enterprise (3) Why should you install Service Pack 1? Many features added… Many features added… Enable Metabase Auditing Enable Metabase Auditing Enable Static Compression Enable Static Compression Enable key Logging Fields Enable key Logging Fields Centralized W3C Logging Centralized W3C Logging Biggest: Enterprise Tracing events increased 10x to ~240 events What is tracing (um, how ETM works?)

17 Managing IIS 6.0 & applications in an Enterprise (5) How ETW works -

18 Managing IIS 6.0 & applications in an Enterprise (6) Primary purpose of Tracing – Diagnostics… Why do I use tracing to manage applications? Application Profiling Application Profiling Know each component used for the application Know each component used for the application Begin Request Read Metadata Authenticate Authorize Cached ISAPI Filter Determine Handler Request

19 Managing IIS 6.0 & applications in an Enterprise (6) Additional thoughts… Improve performance by using compression where appropriate Improve performance by using compression where appropriate Review Application Pool (i.e. worker processes) strategy Review Application Pool (i.e. worker processes) strategy Using time-based recycling – when? Using time-based recycling – when? Using request-based recycling Using request-based recycling Memory-based recycling… Memory-based recycling… Avoid downtime: Turn off recycling on configuration changes Avoid downtime: Turn off recycling on configuration changes

20 A few tricks…(or Tips) Enable Metabase Auditing Enable Metabase Auditing Enable Compression Enable Compression Enable Centralized Logging Enable Centralized Logging Enable Time-Taken, etc. Enable Time-Taken, etc. Enable LogEventOnRecycle Enable LogEventOnRecycle demonstration demonstration

21 Preparing when things go wrong…

22 Troubleshooting 101 Isolate the issues… Isolate the issues… Web Farm considerations Web Farm considerations Typical issues you deal with… (or will!) Application failures: Crash, Hang, or Memory Leaks Application failures: Crash, Hang, or Memory Leaks Server Errors: HTTP 500 Errors Server Errors: HTTP 500 Errors Common Tools used for Troubleshooting: Windows Server 2003 Service Pack 1 Tracing (Log Parser, IIS Request Viewer, DebugDiag, AuthDiag, SSLDiag)

23 Viewing Currently Executing Requests Using Tracing & IIS Request Viewer demonstration demonstration

24 Finding Permission Failures with AuthDiags AuthMon demonstration demonstration

25 Protection: Looking at Disasters

26 Often overlooked, rarely prepared for… Why overlooked? IT professionals often think they are covered with disk backups IT professionals often think they are covered with disk backups Misconception that System state backups include Metabase Misconception that System state backups include Metabase Creating turn-key solutions for backups & recovery Simplify: Create a single share to create single directory for capture Simplify: Create a single share to create single directory for capture Test, test, and test Test, test, and test

27 Protection: Looking at Disasters (2) Backing up IIS 6.0 & key data points What data to get… SSL Certificates (if necessary) SSL Certificates (if necessary) IIS 6.0 Metabase IIS 6.0 Metabase Content Content Get it done… Practice, practice, practice

28 Automating Backups in IIS 6.0 demonstration demonstration

29 Protection: Looking at Disasters (3) Restoring IIS 6.0 & key data points Benefit of central store Benefit of central store Turn-key restore script needs no fancy connections Turn-key restore script needs no fancy connections If central store not available, use tape backup to restore to another location (and update script!) If central store not available, use tape backup to restore to another location (and update script!) Make sure all scripts are hosted locally on server and in system path Make sure all scripts are hosted locally on server and in system path Get it done…Practice, practice, practice

30 Turn key (one-click) restores demonstration demonstration

31 Session Summary Use the right tools to deploy IIS 6.0 configuration, content, and dependencies Use application log data to find out how your application works Configure your server the right way at deployment, not afterwards Be prepared for failures and take appropriate action Always have a roll-back strategy – timing is everything!

32 References and Resources Drill-down webcasts on key topics discussed today: Automate, Automate, Automate: Scripting IIS &EventCategory=5&culture=en-US&CountryCode=US &EventCategory=5&culture=en-US&CountryCode=US Disaster Recovery and IIS 6.0: Metabase Backups in a Nutshell Culture=en-US Culture=en-US Culture=en-US IIS 6.0: IIsCnfg.vbs versus IIsBack.vbs IIS 6.0: IIsCnfg.vbs versus IIsBack.vbs Culture=en-US Culture=en-US Using Host Headers with SSL-enabled Websites Using Host Headers with SSL-enabled Websites &EventCategory=5&culture=en-US&CountryCode=US &EventCategory=5&culture=en-US&CountryCode=US

33 References and Resources (2) Drill-down webcasts on key topics discussed today: Using MOM Web Sites and Services Management Pack Using MOM Web Sites and Services Management Pack D= &EventCategory=5&culture=en-US&CountryCode=US D= &EventCategory=5&culture=en-US&CountryCode=US IIS 6.0 Service Pack Tracing: Inside and Out D= &EventCategory=5&culture=en-US&CountryCode=US D= &EventCategory=5&culture=en-US&CountryCode=US IIS Data Mining with Log Parser 2.x IIS Data Mining with Log Parser 2.x D= &EventCategory=3&culture=en-US&CountryCode=US D= &EventCategory=3&culture=en-US&CountryCode=US


Download ppt "Chris Adams Program Manager IIS Product Unit Microsoft Corporation Managing IIS 6.0 Servers in an Enterprise Environment: A Handful of Tips and Tricks."

Similar presentations


Ads by Google