Verkkopalvelin

Työtila

InastandardC/Smodecomputernetwork,thenetworkservercanworkintwodifferentmodes:iterativemodeandconcur-rentmode).Thecircularmethodisthatonlyoneserverprocesscanrunintheserveratatime.Whenmultipleclientsrequestservice,theserverprocessrespondsintheorderoftherequest;theconcurrentmethodcanrunmultipleserverprocessesintheserveratthesametime,andEachserverprocessrespondstoaspecificclientrequest.

Thesetwoservermodelshavetheirownadvantagesanddisadvantages.Whentheservicetakesalongtime,ifacyclicserverisused,theclientwillnotreceiveafastresponse,andtheclientrequestmayevenberejected.However,thiskindofserverconsumesfewsystemresourcesandisrelativelysimpletoimplement.Theconcurrentservercreatesachildprocessforeachrequest,whichcanensurethatmultipleclientrequestsareprocessedatthesametime.Theuseofthisservermodelgenerallydoesnotcausetherejectionofclientrequests,butiffrequentchildprocessesarecreated,theburdenontheserverwillbeincreased..Inactualnetworkapplications,theserverneedstoprocessmultipleclientrequestsatthesametime,soitusuallyadoptsaconcurrentmethod.

Toteutustekniikka

Usually,thewebservercanadoptthefollowingfourimplementationtechnologies:

1)"Instant Creation, Instant Destruction Strategia""eli palvelinYhdistä jokaiseen pyytävään asiakkaaseen ja luo aliprosessi jokaisen asiakkaan pyyntöä varten.

Aftertheconcurrentserverisstarted,thesystemdaemonmonitorswhetheraclientinitiatesaconnectionrequestonafixedport.Ifaclient'srequestisreceived,theserverdaemoncreatesachildprocesstohandletheclient'srequest,andthedaemoncontinuestomonitorconnectionrequestsfromotherclientsontheoriginalport.Afterthechildprocessfinishesservingtheclient,itclosestheconnection,releasestheresourcesitoccupied,andautomaticallyexits.

Obviously,thiskindofconcurrentserverhasthefollowingshortcomings:(1).Thesystemtimeisextended.Beforeprovidingservicestotheclientprocess,theserverparentprocessneedstocreateanewchildprocess,sotheclientprocessmustwaitatleastforthedelayofcreatingachildprocess.Forsomenetworkapplicationswithhighreal-timerequirements,suchatimedelaycannotbetolerated;(2)Thesourceoffailureislarge.Foreachclientprocessrequest,theserverparentprocessmustcreateanewchildprocess.Eachchildprocesstakesupalmostthesameresourcesastheparentprocess.Therefore,inmanysystems,thenumberofcreationprocessesislimited;(3)Theutilizationrateofthesourceislow.Thelackofaneffectiveinter-processcommunicationmechanismbetweentheparentprocessandthechildprocessmakestheparentprocessunabletoeffectivelycontrolthechildprocess.Atthesametime,thechildprocessterminatesitselfaftercompletingtheservicetotheclientprocessandcannotbereused.

2)Palvelin luo useita lapsiprosesseja etukäteen ja aliprosessejaprosessoi asiakaspyyntöjä. Tätä menetelmää kutsutaan "esiluomiseksi".

Theserverbasedonthe"pre-creation"technologysolvestheproblemTheclientprocesswaitsforthedelayproblem,buttherearealsothefollowingproblems:(1)Theserveralwaysmaintainsafixednumberofchildprocesses,soevenifthereisnoconnectionrequestfromtheclientprocess,thesystemwillmaintaintheseidleprocesses,causingdamagetothesystem.Wasteofresources;(2)Thecivilserveronlyprovidesafixednumberofchildprocesses.Ifthenumberofclientconnectionrequestsexceedsthenumberofchildprocesses,thentheclientprocessmustwaitfortheserviceterminationofotherclientprocesses,whichmaycausegreaterdelay;(3Ifachildprocessexitsabnormally,thenumberofclientprocessconnectionsthattheservercansupportatthesametimewillbereducedby1,whichwillweakentheserver’sconcurrentprocessingcapabilities.

Inordertoovercometheaboveproblems,youcanusedynamic"pre-Creation"technology,thatis,theserverparentprocesscreatesacertainnumberofchildprocessesbasedontheresourcestatusofthesystemorthenumberofuserrequests,andthenputsthemina"pool"toforma"processpool".Whenaclientrequestarrives,Insteadofcreatinganewprocesstoserveit,itselectsanidleprocessfromthe"pool"toserveit.Aftertheserviceiscompleted,theprocessenterstheidlestate.Ifthenumberofclientssimultaneouslyrequestingisgreaterthanthenumberofprocessesintheprocesspool,thesystemAccordingtothestateofsystemresources,thenumberofprocessesinthe"pool"canbeincreased,orclientrequestscanbequeuedorsimplydiscarded,dependingonthespecificsituation.Theuseofthistechnologyspeedsuptheserver'sresponsetimeandimprovesresourcesTheutilizationefficiencyofthiseffectivelypreventstheserverfromcrashingduetoexcessiveclientrequests.

3)TheserverusesthefunctionselecttoimplementI/Omultiplexingformultipleclientconnections;

Inadditiontomulti-processormulti-threadedimplementationofconcurrentservers,I/Omultiplexingtechnologycanalsobeused.Throughthistechnology,thesystemkernelbuffersI/Odata.WhencertainI/OWhenready,thesystemwillnotifytheapplicationthattheI/Oisreadableorwritable,sothattheapplicationcancompletethecorrespondingI/Oimmediately,insteadofwaitingforthesystemtocompletethecorrespondingI/Ooperation,sothattheapplicationdoesnothavetowaitI/Ooperationisblocked.

Comparedwithmulti-processormulti-thread,thebiggestadvantageofI/Omultiplexingtechnologyisthatthesystemoverheadissmall.Thesystemdoesnotneedtocreateprocessesandthreads,anddoesnotneedtomaintaintheseProcessesandthreads,therebygreatlyreducingtheoverheadofthesystem.

4)Thesuperserveractivatesthestrategyoftheauxiliaryserver.

Thismodeofserverrequiresmultipleservers,oneofwhich(Thesuperserverwaitsfortherequestfromtheclientonawell-knownport.Oncethesuperserverreceivestheclient'srequest,itimmediatelyactivatesaslaveserverandtransferstheuser'srequesttotheactivatedslaveserver.ThentheslaveserverandtheclientprogramKeeptheconnectionandcompletetheprocessingoftheclient'srequest,andthesuperservercontinuestomonitortheclient'srequestontheoriginalport.

Inthisservermodel,eachslaveserverisstillaconcurrentserver,sotheconcurrencyofthesystemissignificantlyimproved.However,theuseofthisservermodelrequiresanincreaseinthenumberofservers,whichincreasesthecostofthesystemandisusuallyusedforsomeaccessArelativelylargenumberofwebservers.

Koostumus ja jako

Palvelinohjelmisto

Thedefinitionofserversoftwareisasmentionedabove,andtheserversoftwareworksinaclient-serverorbrowser-serverway,Therearemanyformsofservers,commonlyusedinclude:

Tiedostopalvelin-kutenNovell'sNetWare

Tietokantapalvelin - kuten Oracledatabaseserver, MySQL, PostgreSQL, MicrosoftSQLServer jne.

Network Server

p>

Mailserver-Sendmail, Postfix, Qmail, MicrosoftExchange, LotusDomino jne.

Verkkopalvelin-kutenApache,thttpd,MicrosoftIIS jne.

FTP-palvelin-Pureftpd,Proftpd,WU-ftpd,Serv-U,VSFTP jne.

Sovelluspalvelin-kutenBea'sWebLogic,JBoss,Sun'sGlassFish

Välityspalvelin-kutenSquidcache

Computernameconversionserver-suchasMicrosoft'sWINSserver

Palvelinlaitteisto

Mostserversusecomponentredundancytechnology,RAIDtechnology,memoryerrorcorrectiontechnologyandmanagementsoftware.High-endserversusemulti-processorsandsupportasymmetricalprocessorstructurewithmorethandualCPUs.Whenselectingserverhardware,inadditiontoconsideringthegradeandspecificfunctionpositioning,youalsoneedtofocusonunderstandingthemainparametersandcharacteristicsoftheserver,includingprocessorarchitecture,scalability,serverstructure,I/0capabilities,andfailurerecoverycapabilities.Servertypescanbedividedaccordingtomultiplestandards.

1.Jaa sovellustason mukaan tai mittakaavassa

●Alkutason palvelin: Alimman pään palvelin, käytetään pääasiassa toimisto- ja tulostuspalveluihin.

●Työryhmätason palvelin: sopii pienikokoisiin verkkoihin, sopii verkko-, posti- ja muiden palvelujen tarjoamiseen pienille ja keskikokoisille yrityksille.

●Osastotason palvelimet: keskitason palvelimet, sopivat keskikokoisiin tietokeskuksiin, verkkosivustot ja muut sovellukset.

●Enterprise-luokan palvelin: Huipputason palvelin, jossa on supertiedonkäsittelyominaisuudet, sopii suuren verkon tietokantapalvelimelle.

2.Jaapalvelinrakenteen mukaan

●Desktopserver:alsoknownastowerserver,thisisthemosttraditionalstructurewithbetterexpansionsex.

●Telineeseen asennettu palvelin:Telineeseen asennettu palvelin on asennettu 19 tuuman vakiokaappiin. Korkeuden mukaan siellä on 1U(1U=1,75 tuumaa), 2U, 4U ja 6U.

●Bladeserver: Se on korkean käytettävyyden, korkeatiheyksinen, edullinen palvelinalusta, joka on suunniteltu erityissovellusaloille ja suuritiheyksisille tietokoneympäristöille. Jokainen "blade" on itse asiassa järjestelmän emolevy.

● Kaappityyppinen palvelin: Runko on kotelotyyppinen, ja palvelimeen on asennettava useita moduulikomponentteja.

3.Dividedaccordingtohardwaretype

●Dedicatedserver:aspeciallydesignedhigh-levelserverwithaspecialoperatingsystem(suchasUNIX,MVS,VMS,etc.)),whichismainlyusedfordatabaseservicesandInternetbusiness.Generally,professionalcompaniesprovideafullsetofsoftwareandhardwaresystemsandfullservice.

●PCserver:AserverwithIntelorMotoroladedicatedprocessorsasthecore,compatiblewithavarietyofnetworkoperatingsystemsandnetworkapplicationsoftware,anditsperformancecanreachthelevelofmid-rangeRISCservers.

Sana tarkoittaa syrjintää

Sometimes,wewillseeanotherconceptofwebserverwhichisdifferentfromwebserver.Thesetwodefinitionscancauseconfusion.Theformerreferstothecomputerusedforthewebsite,andthelatterreferstotheprogramthatincludessoftwaresuchasApache,whichrunsonacomputertomanagewebpagecomponentsandrespondtowebbrowserrequests.

Turvatoimet

(1)Makeabackupoftheserversystemfortimelyrestoration.

(2)Closeunnecessaryserviceportsandonlyopentherequiredports.

(3)Securitycheckforabnormalprocess,installandupdateserveroperatingsystemintime.

(4)Asenna palomuuriohjelmisto ja virustorjuntaohjelmisto järjestelmään.

(5)Openthelogservicetocheckthewhereaboutsofhackers.

(6)Implementationofencryptionandauthenticationsecuritytechnology.

Epäsuora vaikutus

Themajorsearchenginesarechoosingsomewebsiteswithbetteruserexperiencetomakebetterrankings.ThePVvalueofthewebsitedirectlyaffectstherankingofthewebsite.So,ifyouchooseaproductfromsuchahigh-qualityserverrenter,everyvisitorwillvisityourwebsiteataveryfastspeed,andthenaturalPVvaluewillbehigh.Thentheexperienceonyourwebsitewillnaturallybebetter.Ifeveryvisitorislikethis,thefriendlinessofthesearchenginewillgraduallyimprove.Thennaturallygivebetterweight.Therefore,high-qualitynetworkhostingspaceisthebasisforimprovingcustomerexperience.

Related Articles
TOP