colors in this template useful for testing projectors during setup

35
Bob Carver MCSE+I,MCT Bob Carver MCSE+I,MCT Senior Instructor Senior Instructor ARIS Corporation ARIS Corporation How to set up a How to set up a reliable web server reliable web server using Internet using Internet Information Server 5.0 Information Server 5.0 and Windows 2000 and Windows 2000

Upload: roger-ellis

Post on 18-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Colors In This Template Useful for testing projectors during setup

Bob Carver MCSE+I,MCTBob Carver MCSE+I,MCTSenior InstructorSenior InstructorARIS CorporationARIS Corporation

How to set up a reliable web How to set up a reliable web server using Internet server using Internet Information Server 5.0 and Information Server 5.0 and Windows 2000Windows 2000

Page 2: Colors In This Template Useful for testing projectors during setup

Session PrerequisitesSession Prerequisites

This session assumes that you This session assumes that you understand the fundamentals of:understand the fundamentals of: Basic knowledge of Internet Basic knowledge of Internet

Information ServerInformation Server

This is a level 200 sessionThis is a level 200 session

Page 3: Colors In This Template Useful for testing projectors during setup

What You Will Learn TodayWhat You Will Learn Today

Configuration options for process Configuration options for process management in IIS 5.0 and when to management in IIS 5.0 and when to use themuse them

How to configure your web server How to configure your web server to recover automaticallyto recover automatically

How to use logging and application How to use logging and application accounting to tune your web server accounting to tune your web server for optimum reliabilityfor optimum reliability

Page 4: Colors In This Template Useful for testing projectors during setup

How Apps Crash IIS 4.0How Apps Crash IIS 4.0

Web Service Failure!!!!

In Process(INETINFO)

Application

Application

Out of Process

Application 1

Out of Process

Application 2

Page 5: Colors In This Template Useful for testing projectors during setup

DemonstrationDemonstration

Running Applications In Running Applications In And Out Of Process In IIS And Out Of Process In IIS 4.04.0

Page 6: Colors In This Template Useful for testing projectors during setup

Enhancements and New Process Enhancements and New Process Management Options in IIS 5.0Management Options in IIS 5.0

Out of process no longer a big Out of process no longer a big performance penaltyperformance penalty

Only one good reason to run apps Only one good reason to run apps in processin process

A new option, pooled out of process A new option, pooled out of process allows IIS 5.0 to scaleallows IIS 5.0 to scale

Page 7: Colors In This Template Useful for testing projectors during setup

Pooled out of Process

Application 2

In Process(INETINFO

)

Application 1

Application 3

Application

Out of Process

Application 1

Application Out of Process

Application 2

Pooled Out Of ProcessPooled Out Of Process

Pooled out of Process

Application 1

Application 2

Application 3

Web Service Still Working!!!

Page 8: Colors In This Template Useful for testing projectors during setup

In processIn process Out of processOut of process Pooled out of Pooled out of

processprocess

Demonstration: Demonstration:

Configuring Process Configuring Process Management in IIS 5.0Management in IIS 5.0

Page 9: Colors In This Template Useful for testing projectors during setup

DLL Host

DLL Host

WAMWAM

Pooled out of Process

(DLL Host)

Application

Application

Application

WAMWAM

Application

WAMWAM

Application

In Process(INETINFO

)

Application

Application

WAMWAM

RPC

RPC RPC

RPC

What’s Changed Under the HoodWhat’s Changed Under the Hood

Page 10: Colors In This Template Useful for testing projectors during setup

0

100

200

300

400

500

600

120

040

060

080

010

00

# Applications

Co

mm

itte

d M

emo

ry

In-Process

Out-Of-ProcessPooled

Out-Of-ProcessIsolated

Memory ConsumptionMemory Consumption

Page 11: Colors In This Template Useful for testing projectors during setup

PerformancePerformance

0

50

100

150

200

250

300

350

# Applications

Req

uests

/ S

ec

In-Process

Out-Of-ProcessPooled

Out-Of-ProcessIsolated

Page 12: Colors In This Template Useful for testing projectors during setup

Defaults, Tips, and TricksDefaults, Tips, and Tricks

QuizQuiz When should an app run in process?When should an app run in process? How does IIS 5.0 handle applications How does IIS 5.0 handle applications

by default?by default?

The default gives you the best The default gives you the best protection/performance/scalability protection/performance/scalability tradeofftradeoff

Run mission critical apps out of Run mission critical apps out of process isolated to insulate them process isolated to insulate them from other appsfrom other apps

Page 13: Colors In This Template Useful for testing projectors during setup

Questions?Questions?

Page 14: Colors In This Template Useful for testing projectors during setup

What Options Do You Have If The What Options Do You Have If The Web Server Crashes?Web Server Crashes?

Issues with IIS 4.0Issues with IIS 4.0 Stopping all services in INETINFO not Stopping all services in INETINFO not

intuitiveintuitive No consistent way to force a shutdown No consistent way to force a shutdown

remotelyremotely Graceful shutdown takes too longGraceful shutdown takes too long Killing IIS not obvious to admins (not in Killing IIS not obvious to admins (not in

GUI, have to use Resource Kit)GUI, have to use Resource Kit) IIS doesn’t recover automatically from IIS doesn’t recover automatically from

crashescrashes

Page 15: Colors In This Template Useful for testing projectors during setup

New Restart Options In IIS 5.0New Restart Options In IIS 5.0 Reliable Restart: IIS automatically Reliable Restart: IIS automatically

recoversrecovers Restarts IIS if INETINFO crashesRestarts IIS if INETINFO crashes Graceful shutdown is faster in all casesGraceful shutdown is faster in all cases Graceful shutdown is tried first, then kill!Graceful shutdown is tried first, then kill!

Multiple configuration OptionsMultiple configuration Options MMC (GUI) support for novice adminsMMC (GUI) support for novice admins Command line support for experts, Command line support for experts,

scheduled restarts etc.scheduled restarts etc. Secure remote restartSecure remote restart

Page 16: Colors In This Template Useful for testing projectors during setup

DemonstrationDemonstration

How To Configure Reliable How To Configure Reliable Restart In IIS 5.0Restart In IIS 5.0

Page 17: Colors In This Template Useful for testing projectors during setup

Defaults, Tips, and TricksDefaults, Tips, and Tricks

Defaults to automatic restartDefaults to automatic restart Run nothing in processRun nothing in process Run most applications in poolRun most applications in pool If your application is mission If your application is mission

critical, run it out of processcritical, run it out of process Add IISRESET to scripts executed Add IISRESET to scripts executed

by monitoring softwareby monitoring software

Page 18: Colors In This Template Useful for testing projectors during setup

Questions?Questions?

Page 19: Colors In This Template Useful for testing projectors during setup

How To Make IIS 5.0 Work Smarter How To Make IIS 5.0 Work Smarter and More Reliably For Youand More Reliably For You

Logging in IIS 5.0Logging in IIS 5.0 How to turn it onHow to turn it on What to logWhat to log Where to find the logsWhere to find the logs What to look atWhat to look at

Page 20: Colors In This Template Useful for testing projectors during setup

DemonstrationDemonstration

How To Enable IIS How To Enable IIS Logging, And Retrieve Logging, And Retrieve The DataThe Data

Page 21: Colors In This Template Useful for testing projectors during setup

Optimizing Your Web ServerOptimizing Your Web Server

Application Accounting: A New Application Accounting: A New OptionOption Thread Gating: Giving threads to the Thread Gating: Giving threads to the

applications that need themapplications that need them Process Throttling: CPU Quotas to Process Throttling: CPU Quotas to

keep applications from hogging keep applications from hogging resourcesresources

Page 22: Colors In This Template Useful for testing projectors during setup

Thread GatingThread Gating

Takes idle threads from an Takes idle threads from an application that isn’t using them application that isn’t using them and gives them to an app that needs and gives them to an app that needs them.them.

Done automatically by IIS based on Done automatically by IIS based on a variety of factorsa variety of factors

Page 23: Colors In This Template Useful for testing projectors during setup

Process ThrottlingProcess Throttling

Keeps CGI and Out Of Process Keeps CGI and Out Of Process apps from hogging resourcesapps from hogging resources

Helpful on multi-site serversHelpful on multi-site servers Three phasesThree phases

100 % Log Event100 % Log Event 150% Reduce Thread Priority150% Reduce Thread Priority 200% Stop all Out of Process Apps200% Stop all Out of Process Apps

Enabled at the Web Site levelEnabled at the Web Site level In Process and Pools not affectedIn Process and Pools not affected

Page 24: Colors In This Template Useful for testing projectors during setup

DemonstrationDemonstration

How To Optimize IIS 5.0 For How To Optimize IIS 5.0 For Reliability Using Application Reliability Using Application AccountingAccounting

Page 25: Colors In This Template Useful for testing projectors during setup

Defaults, Tips, and TricksDefaults, Tips, and Tricks

Turn on process accounting logsTurn on process accounting logs Remember the limitations of Remember the limitations of

Process ThrottlingProcess Throttling Enabled at Site levelEnabled at Site level Only Out of Process can be throttledOnly Out of Process can be throttled %CPU usage over time can be tricky%CPU usage over time can be tricky

Review logs regularly – find Review logs regularly – find problems before impact youproblems before impact you

Page 26: Colors In This Template Useful for testing projectors during setup

Questions?Questions?

Page 27: Colors In This Template Useful for testing projectors during setup

ScenariosScenarios Small BusinessSmall Business

Remote admin requires less support staffRemote admin requires less support staff Reliable restart means less after-hours supportReliable restart means less after-hours support

Medium BusinessMedium Business Process pools provide better scalability with Process pools provide better scalability with

less hardwareless hardware Reliable restart may reduce the need for WLBSReliable restart may reduce the need for WLBS

Large BusinessLarge Business Thread Gating and Process Throttling enables Thread Gating and Process Throttling enables

faster and safer multi-site hostingfaster and safer multi-site hosting Process Accounting helps you find problematic Process Accounting helps you find problematic

applicationsapplications

Page 28: Colors In This Template Useful for testing projectors during setup

Case Studies Case Studies Lessons learned from the real worldLessons learned from the real world

They will be coming!They will be coming! Microsoft working with many large Microsoft working with many large

clients, and have many lessons clients, and have many lessons learned.learned.

Case studies will be coming, look for Case studies will be coming, look for them on www.microsoft.com/iisthem on www.microsoft.com/iis

Page 29: Colors In This Template Useful for testing projectors during setup

Other Resources Other Resources

IIS Resource KitIIS Resource Kit Web Stress Application (Homer)Web Stress Application (Homer)

NT Resource KitNT Resource Kit KillKill TListTList

Windows Load Balancing ServerWindows Load Balancing Server NT EnterpriseNT Enterprise Windows 2000 Advanced ServerWindows 2000 Advanced Server Windows 2000 Data CenterWindows 2000 Data Center

Page 30: Colors In This Template Useful for testing projectors during setup

Y2K Status & StrategyY2K Status & Strategy Windows NT 4 Service Pack 5 (8/12/99)Windows NT 4 Service Pack 5 (8/12/99)

English: 3 Known Y2K issues (NNTP, BIOS English: 3 Known Y2K issues (NNTP, BIOS Update, and Outlook Express)Update, and Outlook Express)

Non-English: Same issues as aboveNon-English: Same issues as above All versions compliant pending software All versions compliant pending software

updatesupdates See: See:

http://www.microsoft.com/technet/year2k/prohttp://www.microsoft.com/technet/year2k/product/product.aspduct/product.asp

Windows 2000 Advanced ServerWindows 2000 Advanced Server See the above site after releaseSee the above site after release

Page 31: Colors In This Template Useful for testing projectors during setup

SummarySummary

Process management and Process management and performance in IIS 4 and IIS 5performance in IIS 4 and IIS 5

New application protection options New application protection options in IIS 5in IIS 5

Reliable RestartReliable Restart LoggingLogging Application AccountingApplication Accounting

Page 32: Colors In This Template Useful for testing projectors during setup

Questions And AnswersQuestions And Answers

Page 33: Colors In This Template Useful for testing projectors during setup

For More InformationFor More Information

Refer to the TechNet website at Refer to the TechNet website at www.microsoft.com/technet/www.microsoft.com/technet/

MicrosoftMicrosoft®® Official Curriculum Official Curriculum Course #1557Course #1557 Course #1562Course #1562

Page 34: Colors In This Template Useful for testing projectors during setup

Session CreditsSession Credits

Authors: Bob Carver/Cathy BanksAuthors: Bob Carver/Cathy Banks Producer/Editor: Ken KubotaProducer/Editor: Ken Kubota Thanks to Our Microsoft Technical Field Thanks to Our Microsoft Technical Field

personnel who reviewed this session:personnel who reviewed this session: Cathy BanksCathy Banks Mark BermanMark Berman Kelly DuBoisKelly DuBois Scott SwigartScott Swigart

Page 35: Colors In This Template Useful for testing projectors during setup