Dab Tsi Yog "pub Tawm Cov Ntaub Ntawv Tso Cai SR" Ntawm Lub Hosting Thiab Yuav Ua Li Cas Xaiv Cov Nqi Xav Tau

Cov txheej txheem:

Dab Tsi Yog "pub Tawm Cov Ntaub Ntawv Tso Cai SR" Ntawm Lub Hosting Thiab Yuav Ua Li Cas Xaiv Cov Nqi Xav Tau
Dab Tsi Yog "pub Tawm Cov Ntaub Ntawv Tso Cai SR" Ntawm Lub Hosting Thiab Yuav Ua Li Cas Xaiv Cov Nqi Xav Tau

Video: Dab Tsi Yog "pub Tawm Cov Ntaub Ntawv Tso Cai SR" Ntawm Lub Hosting Thiab Yuav Ua Li Cas Xaiv Cov Nqi Xav Tau

Video: Dab Tsi Yog
Video: Cov ua YouTube tshiab thaib xav tau subscribe saib ntawm no muaj kev tawm rau koj 2024, Hlis ntuj nqeg
Anonim

Txhua tus kev tsim tawm lub vev xaib sai dua lossis tom qab txiav txim siab los tuav nws lub xaib thiab pib kawm qhov muab ntawm cov muab kev pabcuam. Cov phiaj xwm phiaj xwm suav nrog ntau qhov sib txawv, ib qho yog "peev xwm suav sau suav (CP)". Cia peb sim saib seb nws yog dab tsi thiab nws cuam tshuam dab tsi.

Dab tsi yog "pub tawm cov ntaub ntawv tso cai SR" ntawm lub hosting thiab yuav ua li cas xaiv cov nqi xav tau
Dab tsi yog "pub tawm cov ntaub ntawv tso cai SR" ntawm lub hosting thiab yuav ua li cas xaiv cov nqi xav tau

Dab tsi yog CP thiab CPU?

Yog li, koj ua tiav ntawm koj lub xaib thiab npaj mus rau kauj ruam tom ntej - hloov nws los ntawm koj lub local server mus rau hosting. Thaum xaiv cov phiaj xwm nyiaj se, koj tau pom cov kab lus tsis meej: "Tso cai thauj 65 CP ib hnub." Yuav ntsuas tus nqi no li cas? Thiab tseem ceeb tshaj, yog qhov siab tshaj plaws thauj khoom ntawm 65 CP - ntau heev lossis me ntsis?

CP (cpu ntsiab lus) yog tus nqi uas qhia lub sijhawm siv ntawm lub tseev tsim ntawm kev ua cov haujlwm. Feem ntau, ob qhov kev txwv yog qhia nyob rau hauv lub hosting: thauj khoom ntawm lub hauv paus kev lag luam (CPU - Kev Ua Hauv Chaw Nruab Nrab) ntawm lub web server thiab database server (MySQL).

Web server CPU thauj khoom

CP qhia cov sijhawm ntau npaum li cas, hauv feeb, siv kev siv tag nrho cov txheej txheem. Piv txwv, qhov no txhais tau tias lub sijhawm ua khoom yog 0.2 feeb (i.e. 12 vib nas this). Cov ntaub ntawv ntawm txhua tus neeg tau txais thaum lub sijhawm teev thiab ntxiv rau hauv cov ntaub ntawv. Yog tias tus naj npawb tau txais ntau dua qhov tso cai tus nqi uas tus neeg zov me nyuam tsim, tom qab lub sijhawm tom ntej (teev) tag nrho cov txheej txheem yuav ua haujlwm nrog txo qis. Txhawm rau kom paub qhov pom zoo tshaj tus nqi, koj yuav tsum faib cov xwm txheej uas tau tso cai los ntawm 24. Yog li, yog tias qhov no rau ntawm lub hosting, ces nws hloov tawm 65/24 = ib teev. Qhov no txhais tau tias yog lub sijhawm ua tiav tag nrho ntawm cov txheej txheem ntawm txhua tus neeg siv khoom ntau dua 2 feeb. 43 sec., Ib teev tom ntej no qhov muaj feem thib yuav tau qis.

Cov nqi no yog ntsuas los ntawm Cov Txheej Txheem Sau cov nyiaj txiag hauv Linux OS; cov ntaub ntawv yog tso tawm rau ntawm lub hosting tswj vaj huam sib luag (tsis yog kom tsis meej pem nrog lub xaib tswj vaj huam sib luag).

MySQL neeg rau zaub mov CPU load

Hauv qhov no, CP ntsuas nws tsis yog hauv feeb, tab sis nyob hauv vib nas this. Cov kab lus "pub thauj khoom ntawm 2500 CPs rau MySQL ib hnub" txhais tau tias kev tso cai thauj khoom tag nrho hauv ib hnub yog 41 feeb. 40 sec., Tab sis tsis ntau tshaj 1 min 44 sec. nyob rau ntawm ib teev.

CP nyob zoo li cas?

Tus nqi CP yog nyob ntawm ntau yam yog vim li cas: lub ncauj lus thiab kev xaib ntawm lub vev xaib, nws kev teeb tsa, kev npaj muaj, thiab lwm yam. Qhov ntau ntawm cov khoom siv hauv qhov chaw yog nyob rau hauv kev xav tau ntawm cov neeg siv, nws siab dua nws cov tsheb khiav. Koj tsis tuaj yeem cia li kwv yees lub nra uas lub vev xaib yuav tsim nyob rau ntawm lub server, koj tsuas tuaj yeem sau npe tus nqi twv ua ntej, thiab tsuas yog tom qab kev tshawb fawb ntxaws ntawm nws cov nplooj ntawv.

Ntau npaum li cas workload yuav tsum novice web programmer xaiv?

Feem ntau, qhov tsawg kawg nkaus uas tau muab los ntawm cov kev npaj yooj yim hosting yog qhov txaus rau thawj lub vev xaib. Tom qab ntsuas tas, cov nplooj ntawv ntawm lub vev xaib yuav tshwm sim hauv cov ntawv tshawb fawb txiaj ntsig; tus naj npawb ntawm cov neeg siv yuav maj mam nce, uas txhais tau tias kev thauj khoom ntawm lub tshuab luam yuav nce. Txij ntawm no, koj yuav tsum tau ua ntu zus los saib xyuas cov xwm txheej thauj khoom zoo li qub, feem ntau hais tawm ntawm nplooj ntawv tseem ceeb ntawm cov tswj hwm vaj huam sib luag hauv daim ntawv ntawm daim duab. Yog tias qhov ntsuas pib ze rau qhov tseem ceeb, nws yuav tsum hloov txoj kev npaj se nyiaj, lossis nce qhov kev txwv ntau ntxiv (nyob ntawm cov xwm txheej txiav txim siab los ntawm tus kws zov me nyuam).

Pom zoo: