Pese painokura sisitimu yako, traffic inowedzera, vashandisi vazhinji vanoshandisa zvigadzirwa zvako, maseva anotanga kupindura zvishoma nezvishoma, nguva yekuderera inomanikidza bhizinesi rako kutambura wobva watanga kufunga nezve kuyera.
Pane nzira mbiri dzekutanga dzekuyera - vertical uye horizontal.
Vertical scaling inotarisira kuwedzera simba rehurongwa nekuwedzera kazhinji CPU, uye RAM kumaseva ako.
Mukupesana, kuyera kuyera kunotarisa pakudzokorora (kana cloning) maseva ako mudziva rezviwanikwa.
Zvimwe pane izvi:
Vertical scaling ndiyo yakanakisa sarudzo kune yakaderera-traffic sisitimu nekuti ndiyo nzira inosvikika yekubata kukura pasina kuunza kumwe kuoma. Iwe haufanirwe kuve nehanya nekutumira mazano eboka rezviwanikwa, kusimba kwedziva rezviwanikwa, kusagadzikana kweserver yako, cache yakagoverwa, zvichingodaro.
Nekudaro, kuyera kwakatwasuka kune zvakakomba zvinokanganisa
Horizontal scaling inobvisa matambudziko aya nekubatanidza maseva ako ekushandisa uye nekumisikidza chinhu senge Load balancer .
A load balancer inogovera traffic pamaseva ako uchishandisa chaiwo algorithms akadai se:
Kunyange zvakadaro, ine zvipingamupinyi zvakawanda:
Kuti midziyo miviri painternet itaurirane, masisitimu ari pasi anofanira kutevedzera mapuroteni chaiwo. Wese munhu akanzwa nezve OSI modhi, inotsanangura mitsara minomwe inoshandiswa nemakomputa kutaurirana pamusoro petiweki. Kunyangwe iyo internet yemazuvano yakavakirwa pane yakapfava TCP/IP protocol stack modhi, iyo OSI modhi inoshandiswa zvakanyanya, sezvo ichibatsira kuona uye kutaurirana mashandiro anoita network uye kubatsira kupatsanura uye kugadzirisa matambudziko etiweki.
Mazhinji maindasitiri ekuyera kuyera mhinduro anoshandisa mazwi L4 uye L7 apo L4 inoreva iyo yekufambisa layer muOSI modhi uye L7 inoreva iyo application layer.
Iyo L4 load balancer ichiri L2/L3 sezvo ichishandisa dhata kubva pazasi maseru senge IP kero uye nhamba yechiteshi.
Iyo yakachengeteka zvakanyanya uye inoita sezvo zvemukati data hazviitwe mukuita sarudzo dzekufambisa
Iyo imwechete TCP yekubatanidza inobata pakati pemutengi uye sevha, iyo inobatsira kudzivirira kudarika muganho uripo weTCP yekubatanidza pane inotakura mitoro.
Kune rimwe divi, iyo L7 load balancer inoshanda padanho rekushandisa muOSI modhi
Sarudzo dzakangwara dzinogona kuitwa zvichibva pane URL nzira, misoro, zvirimo
Caching
Load balancer chinhu chakakosha kana yakachinjika scaling inoshandiswa kubata yakakwirira-traffic masisitimu. Kune marudzi maviri makuru ezviyereso zvekutakura L4 uye L7.
L4 load balancer yakachengeteka zvakanyanya uye inoita nekuda kwekugumira pakuita sarudzo dzakangwara
L7 load balancer inoshanda nenzira yekupa hungwaru hwekuita sarudzo nekuda kwemutengo wekuita nekuchengetedzeka
Kusarudza rudzi rwakakodzera kunoenderana nezvinodiwa nehurongwa uye inofanirwa kutariswa zvakanyatsonaka nechiyero chinonzwisisika chekushandisa misimboti yekuchengetedza uye kubvisa mabhodhoro ekuita.
Yakatsikiswawo pano.