I-Toxiproxy, isakhelo sokulinganisa iimeko zenethiwekhi kwiindawo zokuvavanya

Ivenkile, ephuhlisa awona maqonga makhulu kwaye adumileyo e-e-commerce kwiwebhu, dIo mva nje ibhengeze ukuba iqalise inguqulelo entsha yeseva engummeli «Toxiproxy 2.3» eyilelwe ukulinganisa ukusilela kunye nokusilela kuthungelwano kunye nenkqubo yokuvavanya imeko yezicelo xa iimeko ezinjalo zisenzeka.

Inkqubo imele ukubonelela nge-API ukuguqula ngokuguquguqukayo iimpawu zejelo lonxibelelwano, elinokusetyenziswa ukudibanisa i-Toxiproxy kunye neenkqubo zovavanyo lweyunithi, ngaphezu kokuba nenkxaso yamaqonga okudibanisa okuqhubekayo kunye neendawo zophuhliso.

Malunga neToxiproxy

Esi sikhokelo yenzelwe ngokukodwa ukusebenza kwiindawo zovavanyo, I-CI kunye nophuhliso, kwaye ixhasa ukunyangwa okuqinisekileyo koqhagamshelo, kodwa ngenkxaso yesiphithiphithi esingaqhelekanga kunye nokwenza ngokwezifiso.

Ngokuyinene, I-Toxiproxy ibekwe njengesixhobo ukuba bonke abo bafuna yenza iimvavanyo zedemo kwizicelo ezingenawo amanqaku okusilela. I-Toxiproxy isetyenziswe ngempumelelo kulo lonke uphuhliso kunye neendawo zokuvavanya kwi-Shopify ukususela ngo-Oktobha ka-2014.

Ukusetyenziswa kwe-toxiproxy kubandakanya iinxalenye ezimbini. I-proxy ye-TCP ebhalwe kwi-Go (yintoni le ndawo yokugcina) kunye nomxhasi onxibelelana nommeli nge-HTTP. Oku kuqwalasela usetyenziso ukwenzela ukuba lonke uqhagamshelo lovavanyo ludlule kwi-Toxiproxy kwaye emva koko lunokukhohlisa isimo salo nge-HTTP.

Ngamanye amazwi, ummeli iqaliswa phakathi kwesicelo esivavanywayo kunye nenkonzo yenethiwekhi esisebenzisana nayo, emva koko ungalinganisa ukwenzeka kokulibaziseka okuthile xa ufumana impendulo evela kumncedisi okanye uthumela isicelo, utshintshe i-bandwidth, ulinganisa ukwala ukwamkela unxibelelwano, ukuphazamisa indlela eqhelekileyo yokusekwa okanye ukuvalwa koqhagamshelo, ukuseka kwakhona unxibelelwano olusekiweyo, gqwetha. imixholo yeepakethe.

Ukulawula ukusebenza kweseva yommeli kwizicelo, iilayibrari zabaxumi beRuby, Go, Python, C # /.NET, PHP, JavaScript / Node.js, Java, Haskell, Rust kunye ne-Elixir zinikezelwe, ezikuvumela ukuba utshintshe inethiwekhi iimeko zokusebenzisana kubhabho kwaye uvavanye ngoko nangoko isiphumo.

Ukutshintsha iimpawu zejelo lonxibelelwano ngaphandle kokwenza utshintsho kwikhowudi, i-toxiproxy-cli utility ekhethekileyo ingasetyenziselwa (i-Toxiproxy API imele ukuba isetyenziswe kwiimvavanyo zeyunithi kwaye i-utility ingaba luncedo kwiimvavanyo ezisebenzisanayo).

Yintoni entsha kwi-Toxiproxy 2.3?

Ngokumalunga neenguqu ezibandakanyiweyo kwinguqulelo entsha ekhutshwe, kukhankanyiwe ukuba kukho ukubandakanywa komlawuli wesiphelo somthengi we-HTTPS.

Kanye nokwahlulwa kwabaqhubi bovavanyo oluqhelekileyo kwiifayile ezahlukeneyo, ukuphunyezwa kwe-client.Populate API.

Ukongeza koku, inkxaso ye-armv7 kunye ne-armv6 iqonga kunye nokukwazi ukutshintsha inqanaba lokubhalisa kwiseva likwagxininisiwe.

Faka iToxiproxy kwiLinux

Kwabo banomdla wokukwazi ukufaka esi sikhokelo ukuze bakwazi ukwenza iimvavanyo zabo, banokukwenza oku silandela la manyathelo esabelana ngawo ngezantsi.

Ukuba ungumsebenzisi we Debian, Ubuntu okanye naluphi na olunye usasazo olusekwe kwezi, Unokwenza ufakelo ngokuvula i-terminal (ungasebenzisa indlela emfutshane ye-keyboard Ctrl + Alt + T) kwaye kuyo uya kuchwetheza:
wget https://github.com/Shopify/toxiproxy/releases/download/v2.3.0/toxiproxy_2.3.0_linux_amd64.deb

Kwaye siyaqhubeka nokwenza ufakelo nge:
sudo apt install ./toxiproxy_2.3.0_linux_amd64.deb

Kwimeko yabo bangabo abasebenzisi bonikezelo ngenkxaso yeepakethe zeRPM, njengeFedora, i-openSuse, i-RHEL, phakathi kwezinye, iphakheji yokukhuphela yile ilandelayo:
wget https://github.com/Shopify/toxiproxy/releases/download/v2.3.0/toxiproxy_2.3.0_linux_amd64.rpm

Kwaye ufaka iphakheji ngokuchwetheza:
sudo rpm -i toxiproxy_2.3.0_linux_amd64.rpm

Nje ukuba ufakelo lwenziwe, ungaqala inkonzo ngokwenza lo myalelo ulandelayo kwi-terminal:
sudo service toxiproxy start

Ekugqibeleni ukuba eUnomdla wokwazi ngakumbi ngayo, Kuya kufuneka uyazi ukuba ikhowudi ye-Toxiproxy ibhalwe kwi-Go kwaye inelayisenisi ye-MIT kwaye unokujongana nencwadana yokusebenzisa esi sikhokelo kwi. ukulandela ikhonkco.


Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Inoxanduva lwedatha: I-AB Internet Networks 2008 SL
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.